looping record test code

This commit is contained in:
Malar Kannan
2017-11-02 13:14:59 +05:30
parent 4188585488
commit d4454b6434

View File

@@ -16,8 +16,9 @@ def predict_recording_with(m,sample_size=15):
inp = create_test_pair(spec1,spec2,sample_size)
return m.predict([inp[:, 0], inp[:, 1]])
predict_recording_with(model)
while(True):
print(predict_recording_with(model))
sunflower_data,sunflower_result = get_word_pairs_data('sweater',15)
print(np.argmax(model.predict([sunflower_data[:, 0], sunflower_data[:, 1]]),axis=1))
print(sunflower_result)
# sunflower_data,sunflower_result = get_word_pairs_data('sweater',15)
# print(np.argmax(model.predict([sunflower_data[:, 0], sunflower_data[:, 1]]),axis=1))
# print(sunflower_result)