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:
parent
9884cbc086
commit
e17aa8deb6
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user