1
0
mirror of https://github.com/sjwhitworth/golearn.git synced 2025-04-26 13:49:14 +08:00

fix bug of tree.Fit( testData ).

change testData to trainData
This commit is contained in:
Yi-Hsien Chen 2017-03-23 11:42:07 -05:00 committed by GitHub
parent 9884cbc086
commit e17aa8deb6

View File

@ -112,7 +112,7 @@ func main() {
// Consider two randomly-chosen attributes
tree = trees.NewRandomTree(2)
err = tree.Fit(testData)
err = tree.Fit(trainData)
if err != nil {
panic(err)
}