nfmcclure / tensorflow_cookbook

Code for Tensorflow Machine Learning Cookbook
https://www.packtpub.com/big-data-and-business-intelligence/tensorflow-machine-learning-cookbook-second-edition
MIT License
6.23k stars 2.41k forks source link

Chapter 11 Keras example #154

Open mehdiborji opened 5 years ago

mehdiborji commented 5 years ago

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.