tfbook icon indicating copy to clipboard operation
tfbook copied to clipboard

Chapter 1 - Introduction - Prediction input

Open bkraszewski opened this issue 7 months ago • 0 comments

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

bkraszewski avatar Jul 04 '24 08:07 bkraszewski