Skip to content

Commit c1d727d

Browse files
authored
Update CategoricalNaiveBayes.py
1 parent a45f843 commit c1d727d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Classifiers/Naive Bayes/Categorical/CategoricalNaiveBayes.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ def Classifier(Evidence):
4747

4848

4949
#Read data from file
50-
data = DataReader.Read('data4.txt');
51-
Classes = data[0];
52-
Features = data[1];
53-
P = data[2];
50+
Classes, Features, P = DataReader.Read('data4.txt');
5451

5552
#Run classifier with the evidence list
56-
Classifier(['Tall','Slim']);
53+
Classifier(['Tall', 'Slim']);

0 commit comments

Comments
 (0)