mirror of
https://github.com/sjwhitworth/golearn.git
synced 2025-04-30 13:48:57 +08:00
commit
0c10896ff5
3
.gitignore
vendored
3
.gitignore
vendored
@ -11,3 +11,6 @@
|
||||
*.a
|
||||
*.so
|
||||
*.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)
|
||||
Convey("The result should be 'red", func() {
|
||||
So(result2, ShouldEqual, "red")
|
||||
|
Loading…
x
Reference in New Issue
Block a user