mirror of
https://github.com/sjwhitworth/golearn.git
synced 2025-05-01 22:18:10 +08:00
commit
0c10896ff5
3
.gitignore
vendored
3
.gitignore
vendored
@ -11,3 +11,6 @@
|
|||||||
*.a
|
*.a
|
||||||
*.so
|
*.so
|
||||||
*.dll
|
*.dll
|
||||||
|
|
||||||
|
# go test coverprofiles
|
||||||
|
*.coverprofile
|
||||||
|
@ -55,5 +55,6 @@ func TestThreadFindAndWrite(T *testing.T) {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
os.Remove("hello.db")
|
||||||
})
|
})
|
||||||
}
|
}
|
@ -33,7 +33,7 @@ func TestKnnClassifier(t *testing.T) {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
Convey("When predicting the label for our first vector", func() {
|
Convey("When predicting the label for our second vector", func() {
|
||||||
result2 := base.GetClass(predictions, 1)
|
result2 := base.GetClass(predictions, 1)
|
||||||
Convey("The result should be 'red", func() {
|
Convey("The result should be 'red", func() {
|
||||||
So(result2, ShouldEqual, "red")
|
So(result2, ShouldEqual, "red")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user