1
0
mirror of https://github.com/sjwhitworth/golearn.git synced 2025-05-01 22:18:10 +08:00

6 Commits

Author SHA1 Message Date
Thiago Cardoso
ec04f14a72 Added package documentation 2014-07-23 20:02:22 -03: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