I have a Keras-related problem:
code:
new_model.predict(x_test[0:1])
output:
array([[0.03558755, 0.03124422, 0.12950344, 0.29694492, 0.08063059,
0.13757695, 0.18792078, 0.01830993, 0.07450092, 0.0077808 ]],
dtype=float32)
code:
new_model.predict_classes(x_test[0:1])
output:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-5-2ab62853e974> in <module>()
1 # Output the prediction result.
----> 2 new_model.predict_classes(x_test[0:1])
NameError: name 'new_model' is not defined
But in my guidebook the output is array([3])
?
If you can please help to correct it. Thank you!