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

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.
50 B
50 B
1 | 0 | 12 | 0 | blue |
---|---|---|---|---|
2 | 0 | 0 | 645 | red |
3 | 9 | 213 | 0 | blue |
4 | 21 | 0 | 987 | red |