1
0
mirror of https://github.com/sjwhitworth/golearn.git synced 2025-05-01 22:18:10 +08:00

Merge pull request #74 from amitkgupta/master

Tiny improvements
This commit is contained in:
Richard Townsend 2014-08-21 16:36:05 +01:00
commit 0c10896ff5
3 changed files with 6 additions and 2 deletions

3
.gitignore vendored
View File

@ -11,3 +11,6 @@
*.a *.a
*.so *.so
*.dll *.dll
# go test coverprofiles
*.coverprofile

View File

@ -55,5 +55,6 @@ func TestThreadFindAndWrite(T *testing.T) {
}) })
}) })
}) })
os.Remove("hello.db")
}) })
} }

View File

@ -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")