Skip to content

Commit

Permalink
agg
Browse files Browse the repository at this point in the history
  • Loading branch information
Le-Zheng committed May 28, 2019
1 parent 17a024f commit ab108f4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
4 changes: 1 addition & 3 deletions keras/3.5-classifying-movie-reviews.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,7 @@
"train_loss = np.array(model.get_train_summary('Loss'))\n",
"val_loss = np.array(model.get_validation_summary('Loss'))\n",
"\n",
"import matplotlib\n",
"matplotlib.use('Agg')\n",
"from matplotlib import pyplot as plt\n",
"import matplotlib.pyplot as plt\n",
"plt.plot(train_loss[:,0],train_loss[:,1],label='train loss')\n",
"plt.plot(val_loss[:,0],val_loss[:,1],label='validation loss',color='green')\n",
"plt.title('Training and validation loss')\n",
Expand Down
4 changes: 1 addition & 3 deletions keras/3.6-classifying-newswires.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,7 @@
"train_loss = np.array(model.get_train_summary('Loss'))\n",
"val_loss = np.array(model.get_validation_summary('Loss'))\n",
"\n",
"import matplotlib\n",
"matplotlib.use('Agg')\n",
"from matplotlib import pyplot as plt\n",
"import matplotlib.pyplot as plt\n",
"plt.plot(train_loss[:,0],train_loss[:,1],label='train loss')\n",
"plt.plot(val_loss[:,0],val_loss[:,1],label='validation loss',color='green')\n",
"plt.title('Training and validation loss')\n",
Expand Down
4 changes: 1 addition & 3 deletions keras/3.7-predicting-house-prices.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -666,9 +666,7 @@
}
],
"source": [
"import matplotlib\n",
"matplotlib.use('Agg')\n",
"from matplotlib import pyplot as plt\n",
"import matplotlib.pyplot as plt\n",
"plt.plot(average_mae_history[:,0],average_mae_history[:,1])\n",
"plt.xlabel('Steps')\n",
"plt.ylabel('Validation MAE')\n",
Expand Down
4 changes: 1 addition & 3 deletions keras/4.4-overfitting-and-underfitting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,7 @@
},
"outputs": [],
"source": [
"import matplotlib\n",
"matplotlib.use('Agg')\n",
"from matplotlib import pyplot as plt\n",
"import matplotlib.pyplot as plt\n",
"original_val_loss = np.array(original_model.get_validation_summary(\"Loss\"))"
]
},
Expand Down
4 changes: 1 addition & 3 deletions keras/6.2-understanding-recurrent-neural-networks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,7 @@
"train_loss = np.array(model.get_train_summary('Loss'))\n",
"val_loss = np.array(model.get_validation_summary('Loss'))\n",
"\n",
"import matplotlib\n",
"matplotlib.use('Agg')\n",
"from matplotlib import pyplot as plt\n",
"import matplotlib.pyplot as plt\n",
"plt.plot(train_loss[:,0],train_loss[:,1],label='train loss')\n",
"plt.plot(val_loss[:,0],val_loss[:,1],label='validation loss',color='green')\n",
"plt.xlabel('Steps')\n",
Expand Down

0 comments on commit ab108f4

Please sign in to comment.