I am getting an error for the execution of the following statement:
accuracy_np(probs, y)
The Error is:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-75-98448a3af0e1> in <module>()
----> 1 accuracy_np(probs, y)
NameError: name 'accuracy_np' is not defined
That function should be defined in fastai/metrics.py. Maybe your local git repository is out of date? Try running git pull in your fastai directory to pull the latest changes.
You could also copy/paste this function from github into your notebook, althought this is a one time solution
Moreover I replaced probs with log_preds where ever it gave axis error. Just wanted to run through it once. Will now go through each line step by step to understand if that is the right thing to do.