I’m trying to get the IMDB code working, but it’s throwing an error that I think might be related to this thread.
I’ve tried a few values, but I can’t get the model to actually fit, any guidance on what the new attributes should be?
m3 = md2.get_model(opt_fn, 1500, bptt, emb_sz=em_sz, n_hid=nh, n_layers=nl,
dropouti=0.4, wdrop=0.5, dropoute=0.05, dropouth=0.3)
TypeError Traceback (most recent call last)
in ()
1 m3 = md2.get_model(opt_fn, 1500, bptt, emb_sz=em_sz, n_hid=nh, n_layers=nl,
----> 2 dropouti=0.4, wdrop=0.5, dropoute=0.05, dropouth=0.3)
~/fastai/courses/dl1/fastai/nlp.py in get_model(self, opt_fn, max_sl, bptt, emb_sz, n_hid, n_layers, **kwargs)
391 def get_model(self, opt_fn, max_sl, bptt, emb_sz, n_hid, n_layers, **kwargs):
392 m = get_rnn_classifer(max_sl, bptt, self.bs, self.c, self.nt,
–> 393 emb_sz=emb_sz, n_hid=n_hid, n_layers=n_layers, pad_token=self.pad_idx, **kwargs)
394 return self.to_model(m, opt_fn)
395
TypeError: get_rnn_classifer() missing 2 required positional arguments: ‘layers’ and ‘drops’