Learner, Metrics, and Basic Callbacks | fastai
https://docs.fast.ai/learner.html07.11.2021 · It needs to be one of fastai's if you want to use Learn.predict or Learn.get_preds, ... . model (inp). detach + 1 #applying model + activation dec = 2 * out #decodes from loss function full_dec = dec-1 #decodes from _Add1 test_eq (learn. predict ... You can also use the maximum of all predictions instead of an average by setting use ...
Inference Learner | fastai
fastai1.fast.ai › tutorialJan 05, 2021 · Then we can predict with the usual method, here we can specify how many words we want the model to predict. learn . predict ( 'This is a simple test of' , n_words = 20 ) 'This is a simple test of the critique made out of the concerns on the consequences of it and the called Sub Cooper comparisons'