Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
6dcbd98d
"vscode:/vscode.git/clone" did not exist on "885f12a81fd232ebaa31fd26afd4f5483e2a39c8"
Commit
6dcbd98d
authored
Aug 18, 2018
by
dinsane
Browse files
Update plt.grid args to avoid warning message
parent
5aee67b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
samples/core/tutorials/keras/basic_classification.ipynb
samples/core/tutorials/keras/basic_classification.ipynb
+4
-4
No files found.
samples/core/tutorials/keras/basic_classification.ipynb
View file @
6dcbd98d
...
...
@@ -416,7 +416,7 @@
"plt.figure()\n",
"plt.imshow(train_images[0])\n",
"plt.colorbar()\n",
"plt.grid(
'off'
)"
"plt.grid(
False
)"
],
"execution_count": 0,
"outputs": []
...
...
@@ -479,7 +479,7 @@
" plt.subplot(5,5,i+1)\n",
" plt.xticks([])\n",
" plt.yticks([])\n",
" plt.grid(
'off'
)\n",
" plt.grid(
False
)\n",
" plt.imshow(train_images[i], cmap=plt.cm.binary)\n",
" plt.xlabel(class_names[train_labels[i]])"
],
...
...
@@ -756,7 +756,7 @@
"source": [
"def plot_image(i, predictions_array, true_label, img):\n",
" predictions_array, true_label, img = predictions_array[i], true_label[i], img[i]\n",
" plt.grid(
'off'
)\n",
" plt.grid(
False
)\n",
" plt.xticks([])\n",
" plt.yticks([])\n",
" \n",
...
...
@@ -775,7 +775,7 @@
"\n",
"def plot_value_array(i, predictions_array, true_label):\n",
" predictions_array, true_label = predictions_array[i], true_label[i]\n",
" plt.grid(
'off'
)\n",
" plt.grid(
False
)\n",
" plt.xticks([])\n",
" plt.yticks([])\n",
" thisplot = plt.bar(range(10), predictions_array, color=\"#777777\")\n",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment