Training a Text Classifier

What is the latest version of fastai?


2.2.7

Yeah I have 2.3.0 on databricks - I have no idea why I keep getting the error:
IndexError: index 3 is out of bounds for dimension 0 with size 3

From my understanding it’s from an earlier version of the library - but it seems that I am using the latest one. Really confusing!

Is it OK to have three values in the moms? Try with two

learn.fit_one_cycle(1, 1e-2, moms=(0.8,0.7))

The problem isn’t with the momentum.

Since your code has different bugs and the bits you’ve posted are incompatible (different names, arguments, etc.), could you please upload a minimal .ipynb notebook here or to Colab (no need for the data itself)? The lines of code you’ve posted are standard and I can’t reproduce the problem, so there’s probably a mistake somewhere else in your program.

Try restarting the notebook.