Skip to content

Commit

Permalink
Minor changes to SVM
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Jul 21, 2016
1 parent 255614a commit 863c159
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion svm.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ func calculateSVM(group string) error {
if err != nil {
panic(err)
}
fmt.Println(string(outCmd))

// os.Remove(tempFileTrain + ".scaled")
// os.Remove(tempFileTest + ".scaled")
Expand Down
2 changes: 1 addition & 1 deletion svm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package main
// assert.Equal(t, calculateSVM("testdb"), nil)
// }
//
// func BenchmarkClassify(b *testing.B) {
// func BenchmarkClassifySVM(b *testing.B) {
// jsonTest := `{"username": "zack", "group": "testdb", "wifi-fingerprint": [{"rssi": -45, "mac": "80:37:73:ba:f7:d8"}, {"rssi": -58, "mac": "80:37:73:ba:f7:dc"}, {"rssi": -61, "mac": "a0:63:91:2b:9e:65"}, {"rssi": -68, "mac": "a0:63:91:2b:9e:64"}, {"rssi": -70, "mac": "70:73:cb:bd:9f:b5"}, {"rssi": -75, "mac": "d4:05:98:57:b3:10"}, {"rssi": -75, "mac": "00:23:69:d4:47:9f"}, {"rssi": -76, "mac": "30:46:9a:a0:28:c4"}, {"rssi": -81, "mac": "2c:b0:5d:36:e3:b8"}, {"rssi": -82, "mac": "00:1a:1e:46:cd:10"}, {"rssi": -82, "mac": "20:aa:4b:b8:31:c8"}, {"rssi": -83, "mac": "e8:ed:05:55:21:10"}, {"rssi": -83, "mac": "ec:1a:59:4a:9c:ed"}, {"rssi": -88, "mac": "b8:3e:59:78:35:99"}, {"rssi": -84, "mac": "e0:46:9a:6d:02:ea"}, {"rssi": -84, "mac": "00:1a:1e:46:cd:11"}, {"rssi": -84, "mac": "f8:35:dd:0a:da:be"}, {"rssi": -84, "mac": "b4:75:0e:03:cd:69"}], "location": "zakhome floor 2 office", "time": 1439596533831, "password": "frusciante_0128"}`
// res := Fingerprint{}
// json.Unmarshal([]byte(jsonTest), &res)
Expand Down

0 comments on commit 863c159

Please sign in to comment.