".github/vscode:/vscode.git/clone" did not exist on "dde4b02c18d7695bb23ad0eef3d14e006a52c0a1"
Unverified Commit 8fad7677 authored by Stafford Williams's avatar Stafford Williams Committed by GitHub
Browse files

python2 compatibility

parent d089975f
...@@ -402,6 +402,8 @@ ...@@ -402,6 +402,8 @@
}, },
"cell_type": "code", "cell_type": "code",
"source": [ "source": [
"from __future__ import print_function # python2 print compatibility",
"\n",
"# Display training progress by printing a single dot for each completed epoch\n", "# Display training progress by printing a single dot for each completed epoch\n",
"class PrintDot(keras.callbacks.Callback):\n", "class PrintDot(keras.callbacks.Callback):\n",
" def on_epoch_end(self, epoch, logs):\n", " def on_epoch_end(self, epoch, logs):\n",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment