Yaser Azfar
ae8d7f7baa
adds error checking for err variable that were being left unchecked
2019-12-27 12:10:38 +13:00
Richard Townsend
fc110aab48
Fix bad import, reformat
2017-09-10 20:35:34 +01:00
Richard Townsend
44e4c4fbef
Naive: serialiation implemented, tests pass
2017-09-10 20:10:53 +01:00
Amit Kumar Gupta
9f67f73330
Convert some tests to goconvey, and improve assertions along the way
2014-08-22 13:39:29 +00:00
Richard Townsend
882b780637
naive: tests pass
2014-08-03 15:17:42 +01:00
Thiago Cardoso
94ef107fc8
Removed class prior pre-calculation
...
Since the number of instances in each class are stored, there is no need
to keep the pre-calculated priors.
2014-06-08 00:01:42 -03:00
Thiago Cardoso
90458d92ed
Added Predict function
...
Added predict function along with its test. Current interface is the
same of the KNN example. In other words, only the class string is
returned from the PredictOne function.
2014-05-20 22:59:03 -03:00
Thiago Cardoso
86b18fe1c9
Finished Fit test for simple cases
...
Added the logCondProb tests for a simple test case with two classes.
2014-05-20 21:41:57 -03:00
Thiago Cardoso
45e229be12
Refactoring for base.Instances
...
Refactored the algorithm to use base.Instances. Rewrote the Fit method
to pre-calculate priors and conditional probabilities.
2014-05-18 23:23:51 -03:00
Thiago Cardoso
0035dd184e
Bernoulli Naive Bayes: first draft
...
This is the first draft of the bernoulli naive bayes implementation. It
is missing the Fit function tests and the Predict function.
2014-05-11 21:00:28 -03:00