code> <code>TransLearner</code><a href="https://github.com/aikindergarten/fasthugs/tree/master/fasthugs/learner.py#L84" class="source_link" style="float:right">[source]</a></h3><blockquote><p><code>TransLearner</code>(<strong><code>dls</code></strong>, <strong><code>model</code></strong>:<code>PreTrainedModel</code>, <strong><code>predict_with_generate</code></strong>:<code>bool</code>=<em><code>False</code></em>, <strong><code>loss_func</code></strong>=<em><code>None</code></em>, <strong><code>opt_func</co