looping record test code

master
Malar Kannan 2017-11-02 13:14:59 +05:30
parent 4188585488
commit d4454b6434
1 changed files with 5 additions and 4 deletions

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)