Skip to content

Commit ebe72ed

Browse files
authored
Update Multinomial_naive_bayes.py
1 parent 8239299 commit ebe72ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Multinomial_naive_bayes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def word_probs():
3838

3939
def predict():
4040
# Defining the list of path where all the test data files are stored.
41-
filePaths = (list(paths.list_files("enron1/test/ham")) + list(paths.list_files("enron4/test/ham")) + list(paths.list_files("hw1/test/ham"))
42-
+ list(paths.list_files("enron1/test/spam")) + list(paths.list_files("enron4/test/spam")) + list(paths.list_files("hw1/test/spam")))
41+
filePaths = (list(paths.list_files("Datasets/enron1/test/ham")) + list(paths.list_files("Datasets/enron4/test/ham")) + list(paths.list_files("Datasets/hw1/test/ham"))
42+
+ list(paths.list_files("Datasets/enron1/test/spam")) + list(paths.list_files("Datasets/enron4/test/spam")) + list(paths.list_files("Datasets/hw1/test/spam")))
4343

4444
# Creating a test dataset using BOW_test method of Bag_of_words.py file.
4545
test_data, true_y = BOW_test(filePaths)

0 commit comments

Comments
 (0)