You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><p><strong>models</strong> (<em>List</em><em>[</em><em>Any</em><em>]</em><em>, </em><em>optional</em>) – List of trained models that implement a predict method.
518
+
If None, RandomForestRegressors will be created when fit is called.</p></li>
519
+
<li><p><strong>num_task</strong> (<em>int</em><em>, </em><em>default=1</em>) – Number of properties to predict.</p></li>
<spanclass="sig-name descname"><spanclass="pre">fit</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">X_train</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">y_train</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/torch_molecule/generator/graph_ga/oracle.html#Oracle.fit"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#torch_molecule.generator.graph_ga.oracle.Oracle.fit" title="Link to this definition">¶</a></dt>
526
+
<dd><p>Fit the underlying models with training data.</p>
<li><p><strong>X_train</strong> (<em>List</em><em>[</em><em>str</em><em>] or </em><em>List</em><em>[</em><em>RDKit.Mol</em><em>]</em>) – Training molecules as SMILES strings or RDKit Mol objects.</p></li>
531
+
<li><p><strong>y_train</strong> (<em>np.ndarray</em>) – Training labels with shape (n_samples, num_task).</p></li>
<h2>Modeling Molecules as Sequences with Transformer-based Generators<aclass="headerlink" href="#modeling-molecules-as-sequences-with-transformer-based-generators" title="Link to this heading">¶</a></h2>
@@ -668,6 +707,10 @@ <h2>Modeling Molecules as Sequences with Transformer-based Generators<a class="h
<li><aclass="reference internal" href="#modeling-molecules-as-sequences-with-transformer-based-generators">Modeling Molecules as Sequences with Transformer-based Generators</a><ul>
<liclass="toctree-l2"><aclass="reference internal" href="api/generator.html#modeling-molecules-as-graphs-with-heuristic-based-generators">Modeling Molecules as Graphs with Heuristic-based Generators</a><ul>
<liclass="toctree-l2"><aclass="reference internal" href="api/generator.html#modeling-molecules-as-sequences-with-transformer-based-generators">Modeling Molecules as Sequences with Transformer-based Generators</a><ul>
0 commit comments