Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
},
"outputs": [],
"source": [
"print(model.predict([100.0]))"
"print(model.predict(np.array([100.0])))"
]
},
{
Expand Down Expand Up @@ -432,8 +432,8 @@
"model.compile(loss='mean_squared_error', optimizer=tf.keras.optimizers.Adam(0.1))\n",
"model.fit(celsius_q, fahrenheit_a, epochs=500, verbose=False)\n",
"print(\"Finished training the model\")\n",
"print(model.predict([100.0]))\n",
"print(\"Model predicts that 100 degrees Celsius is: {} degrees Fahrenheit\".format(model.predict([100.0])))\n",
"print(model.predict(np.array([100.0])))\n",
"print(\"Model predicts that 100 degrees Celsius is: {} degrees Fahrenheit\".format(model.predict(np.array([100.0]))))\n",
"print(\"These are the l0 variables: {}\".format(l0.get_weights()))\n",
"print(\"These are the l1 variables: {}\".format(l1.get_weights()))\n",
"print(\"These are the l2 variables: {}\".format(l2.get_weights()))"
Expand Down