Upgrade model training to fastai v2 #215
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The goal of this PR is to figure out how to upgrade the model training code in
2_FastAI_StarterScript.ipynb
to use fastai v2 (without fastaudio) and attain equivalent performance. After multiple attempts, I settled on the approach of writing two notebooks in parallel:fastai-migration-notes-v1.ipynb
: This is mostly code copied from2_FastAI_StarterScript.ipynb
, but with additional exploration on my part (e.g. to confirm certain config values). I also output the data in this notebook so I can compare and contrast with the equivalent code in the second notebook.fastai-migration-notes-v2.ipynb
: This notebook demonstrates model training using fastai v2 without fastaudio. I was able to get an accuracy on the validation set (20%) up to 94.9%, which is slightly higher than the 93.7% achieved in the original2_FastAI_StarterScript.ipynb
notebook. While I don't know how much we can rely on these performance gains, my goal was to achieve similar (or greater) performance to make sure I hadn't introduced a regression. I believe this goal was met.Fixes #214