What was ps argument changed to in tabular_learner?

A few weeks before I ran my tabular_learner with argument ‘ps’ for the dropout as I learned from Zachary’s videos. I ran the code just now and it says that it doesn’t understand ‘ps’. Does anyone know what it was changed to? I saw that there was a big change in fastai2 code recently.
The exact error is: ‘init() got an unexpected keyword argument ‘ps’’
In the

1 Like

You need to pass a config like this:

config = tabular_config(embed_p=0.3,ps=[0.002,0.02])
learn = tabular_learner(dls, metrics=accuracy, config=config)
1 Like