looping record test code
parent
4188585488
commit
d4454b6434
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue