Do git pull of fastai library. Updates may sort out some errors.
git pullconda env update
conda update --all - interrupt kernel
- reduce batch size
- RESTART kernel!
- forum post
- "TTA used to return the average of the augmentations as a prediction. Now it returns the set so you can do with them as you please."
log_preds,y = learn.TTA()
probs = np.exp(log_preds)
accuracy(log_preds,y), metrics.log_loss(y, probs)log_preds,y = learn.TTA()
preds = np.mean(np.exp(log_preds),0)- try increasing the batch size
Note from Jeremy:
Immediately after you get the error, type %debug in a cell to enter the debugger. Then use the standard python debugger commands to follow your code to see what’s happening.