mirror of
https://github.com/sjwhitworth/golearn.git
synced 2025-04-28 13:48:56 +08:00

Refactored the algorithm to use base.Instances. Rewrote the Fit method to pre-calculate priors and conditional probabilities.
49 B
49 B
1 | 12 | 3 | 0 | blue |
---|---|---|---|---|
2 | 98 | 6 | 0 | blue |
3 | 561 | 0 | 6 | red |
4 | 121 | 0 | 98 | red |