In this example:
06_Using_TensorFlow_with_Keras.py
I noticed Keras library is not explicitly imported, as such lines like from keras.utils import to_categorical won't run unless keras.utils is changed to tensorflow.keras.utils; same issue for the line model = keras.Sequential()
As a side: the model.fit(...) line for first example is missing in the book.
In this example: 06_Using_TensorFlow_with_Keras.py I noticed Keras library is not explicitly imported, as such lines like
from keras.utils import to_categorical
won't run unlesskeras.utils
is changed totensorflow.keras.utils
; same issue for the linemodel = keras.Sequential()
As a side: the
model.fit(...)
line for first example is missing in the book.