how to resolve TypeError: language_model_learner() missing 1 required positional argument: 'arch' in python
how to resolve TypeError: language_model_learner() missing 1 required positional argument: 'arch' in python
嗨,我被打动了,请帮我解决这个问题
我遇到了这个错误
TypeError: language_model_learner() missing 1 required positional argument: 'arch'
我正在学习本教程:- https://www.analyticsvidhya.com/blog/2018/11/tutorial-text-classification-ulmfit-fastai-library/
https://docs.fast.ai/text.learner.html#language_model_learner
您需要定义架构,如下所示:
language_model_learner(data, AWD_LSTM, drop_mult=0.5)
嗨,我被打动了,请帮我解决这个问题
我遇到了这个错误
TypeError: language_model_learner() missing 1 required positional argument: 'arch'
我正在学习本教程:- https://www.analyticsvidhya.com/blog/2018/11/tutorial-text-classification-ulmfit-fastai-library/
https://docs.fast.ai/text.learner.html#language_model_learner
您需要定义架构,如下所示:
language_model_learner(data, AWD_LSTM, drop_mult=0.5)