nfmcclure / tensorflow_cookbook

Code for Tensorflow Machine Learning Cookbook

Home Page:https://www.packtpub.com/big-data-and-business-intelligence/tensorflow-machine-learning-cookbook-second-edition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chapter 11 Keras example

mehdiborji opened this issue · comments

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.