Skip to content

Instantly share code, notes, and snippets.

@Tan-Moy
Created December 17, 2017 15:21
Show Gist options
  • Save Tan-Moy/0d4a7b3f1b35a3f1d74c09465420d215 to your computer and use it in GitHub Desktop.
Save Tan-Moy/0d4a7b3f1b35a3f1d74c09465420d215 to your computer and use it in GitHub Desktop.
#plot the cost
fig, ax = plt.subplots()
ax.plot(np.arange(iters), cost, 'r')
ax.set_xlabel('Iterations')
ax.set_ylabel('Cost')
ax.set_title('Error vs. Training Epoch')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment