File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ #Code has some logical error.
2
+
3
+
1
4
from os import name
2
5
from Bag_of_words import y , ham , spam
3
6
from Bernoulli import bernoulli , bernoulli_test
@@ -49,8 +52,8 @@ def numerator_values():
49
52
50
53
def predict ():
51
54
# Defining the list of path where all the test data files are stored.
52
- filePaths = (list (paths .list_files ("enron1/test/ham" )) + list (paths .list_files ("enron4/test/ham" )) + list (paths .list_files ("hw1/test/ham" ))
53
- + list (paths .list_files ("enron1/test/spam" )) + list (paths .list_files ("enron4/test/spam" )) + list (paths .list_files ("hw1/test/spam" )))
55
+ 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" ))
56
+ + list (paths .list_files ("Datasets/ enron1/test/spam" )) + list (paths .list_files ("Datasets/ enron4/test/spam" )) + list (paths .list_files ("Datasets/ hw1/test/spam" )))
54
57
55
58
# Creating a test dataset using BOW_test method of Bag_of_words.py file.
56
59
test_data , true_y = bernoulli_test (filePaths )
You can’t perform that action at this time.
0 commit comments