Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update overview_nn.py #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
Update overview_nn.py
adding fix for plt.plot(history.history['acc']) --> KeyError: 'acc'
ddl-aambekar authored Jul 9, 2020
commit 082f1bfc4e920a030eaadcf050dd1816324a222d
4 changes: 2 additions & 2 deletions src/models/overview_nn.py
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@
import matplotlib.pyplot as plt

# Plot training & validation accuracy values
plt.plot(history.history['acc'])
plt.plot(history.history['accuracy'])
plt.title('Model accuracy')
plt.ylabel('Accuracy')
plt.xlabel('Epoch')
@@ -109,4 +109,4 @@
import json
with open('dominostats.json', 'w') as f:
f.write(json.dumps({"Precision": prec_mean, "Recall": rec_mean}))
print("Saved metrics to dominostats.json. You should be able to see these on the Jobs Dashboard.")
print("Saved metrics to dominostats.json. You should be able to see these on the Jobs Dashboard.")