mirror of
https://github.com/sjwhitworth/golearn.git
synced 2025-04-28 13:48:56 +08:00
Merge pull request #160 from FrozenKP/master
fix bug of tree.Fit( testData ) in example.
This commit is contained in:
commit
6292a917ee
@ -112,7 +112,7 @@ func main() {
|
|||||||
|
|
||||||
// Consider two randomly-chosen attributes
|
// Consider two randomly-chosen attributes
|
||||||
tree = trees.NewRandomTree(2)
|
tree = trees.NewRandomTree(2)
|
||||||
err = tree.Fit(testData)
|
err = tree.Fit(trainData)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user