FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

MachineLearning/ML_Assignment2 at master · darshilgit/MachineLearning · GitHub

Repository navigation

Latest commit

 

History

History
{\rtf1\ansi\ansicpg1252\cocoartf1671
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0

\f0\fs24 \cf0 Name: Darshil Parikh
\
ID: 1001557968\

\
Instructions:
\
----->Python3 program file:\
          naive_bayesian.py\
\
----->Python program written in Python3 and needs following imports:\
	import re\
	import os\
	from os.path import join\
	from os import listdir\
	from nltk.corpus import stopwords\
	from nltk.tokenize import word_tokenize\
	from collections import defaultdict\
	import math\
\
----->To run:\
          python naive_bayesian.py\

\
----->The output lists Accuracy.\
\
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0
\cf0 ----->References used:\
	https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/naive_bayes.py\
	http://carrefax.com/new-blog/2017/11/8/using-nltk-to-remove-stopwords-from-a-text-file\
	https://machinelearningmastery.com/prepare-text-data-machine-learning-scikit-learn/\
	https://github.com/gokriznastic/20-newsgroups-text_classification/blob/master/	Multinomial%20Naive%20Bayes-%20BOW%20with%20TF.ipynb}

Back | FazBrowse Home | New Git URL