We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 253af59 commit 0f52b69Copy full SHA for 0f52b69
test/cnn_test.py
@@ -41,11 +41,11 @@ def test_train_set_1(self):
41
mod = cnn.load_model(name)
42
result = mod.classify_image("photos/DSC86.jpg")
43
print("result: " + str(result))
44
- self.assertTrue(result[0][0] == "kiwi" and result[0][1] == 1.0)
+ self.assertTrue(result[0][0] == "kiwi" and result[0][1] > 0.9)
45
46
cnn = cnn_manager.CNNManager.get_instance()
47
- #cnn.delete_model(name)
48
- #self.assertTrue(cnn.get_models().get(name) is None)
+ cnn.delete_model(name)
+ self.assertTrue(cnn.get_models().get(name) is None)
49
50
"""
51
def test_train_set_2(self):
0 commit comments