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 Exercise2-Answer.ipynb #195

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"\n",
"class myCallback(tf.keras.callbacks.Callback):\n",
" def on_epoch_end(self, epoch, logs={}):\n",
" if(logs.get('accuracy')>0.99):\n",
" if((logs.get('acc') is not None) and (logs.get('acc')>0.99)):\n",
" print(\"\\nReached 99% accuracy so cancelling training!\")\n",
" self.model.stop_training = True\n",
"\n",
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# dlaicourse
# 'acc' or 'accuracy'
Notebooks for learning deep learning
# I see a lot of confusion relation to using 'acc' or 'accuracy' here.
# Apparently tf 2.5.0 supports 'acc' while tf 2.6.0 supports 'accuracy'
# Since the jupyter notebooks used in the course run on 2.5.0, dated 19-09-2021, clearly 'acc' will help you run the right code there!