tfbook
tfbook copied to clipboard
Chapter 1 - Introduction - Prediction input
Hello,
Thank you for your book; it's really inspiring!
Important note to the current readers: due to changes in TensorFlow and Keras, it's now expected to pass a 2d array when making a prediction.
So, if you have an issue running a sample from the book, update predict line to:
print(model.predict(np.array([[10.0]])))
Cheers