Skip to content

Instantly share code, notes, and snippets.

@CaptainAshis
Created September 10, 2018 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CaptainAshis/5b30af5eda0c1cd284dec0ddff1d0867 to your computer and use it in GitHub Desktop.
Save CaptainAshis/5b30af5eda0c1cd284dec0ddff1d0867 to your computer and use it in GitHub Desktop.
tta_predict fastai
log_preds, y = learn.TTA()
probs = np.mean(np.exp(log_preds),0)
accuracy_np(probs, y), metrics.log_loss(y, probs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment