ed_html">
<p>First of all, you obviously need to implement the methods <code>__len__</code> and <code>__getitem__</code>, as indicated by the pytorch docs. Then the most needed things would be:</p>
<ul>
<li><code>c</code> attribute: it's used in most functions that directly create a <a href="/basic_train.html#Learner"><code>Learner</code></a> (<a href="/tabular.data.html#tabular_learner"><code>tabular_learner</code></a>, <a href="/text.learner.html#text_classifier_learner"><code>text_classifier_learner</cod