Skip to content

Commit

Permalink
deploy: e254d1e
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Jul 17, 2024
1 parent 02a8ff8 commit cda2108
Show file tree
Hide file tree
Showing 5 changed files with 669 additions and 617 deletions.
4 changes: 2 additions & 2 deletions api_classes/model/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2298,7 +2298,7 @@ <h3 id="sageworks.api.model.Model.to_endpoint" class="doc doc-heading">
</span><span id="__span-1-24"><a id="__codelineno-1-24" name="__codelineno-1-24" href="#__codelineno-1-24"></a> <span class="s1">&#39;version&#39;</span><span class="p">:</span> <span class="mi">1</span><span class="p">}</span>
</span></code></pre></div>
<p><strong>Use a specific Scikit-Learn Model</strong></p>
<p><div class="language-py highlight"><span class="filename">featureset_to_sklearn_model.py</span><pre><span></span><code><span id="__span-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a><span class="kn">from</span> <span class="nn">sageworks.api.feature_set</span> <span class="kn">import</span> <span class="n">FeatureSet</span>
<p><div class="language-py highlight"><span class="filename">featureset_to_knn.py</span><pre><span></span><code><span id="__span-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a><span class="kn">from</span> <span class="nn">sageworks.api.feature_set</span> <span class="kn">import</span> <span class="n">FeatureSet</span>
</span><span id="__span-2-2"><a id="__codelineno-2-2" name="__codelineno-2-2" href="#__codelineno-2-2"></a><span class="kn">from</span> <span class="nn">pprint</span> <span class="kn">import</span> <span class="n">pprint</span>
</span><span id="__span-2-3"><a id="__codelineno-2-3" name="__codelineno-2-3" href="#__codelineno-2-3"></a>
</span><span id="__span-2-4"><a id="__codelineno-2-4" name="__codelineno-2-4" href="#__codelineno-2-4"></a><span class="c1"># Grab a FeatureSet</span>
Expand All @@ -2319,7 +2319,7 @@ <h3 id="sageworks.api.model.Model.to_endpoint" class="doc doc-heading">
</span><span id="__span-2-19"><a id="__codelineno-2-19" name="__codelineno-2-19" href="#__codelineno-2-19"></a><span class="n">pprint</span><span class="p">(</span><span class="n">my_model</span><span class="o">.</span><span class="n">details</span><span class="p">())</span>
</span></code></pre></div>
<strong>Another Scikit-Learn Example</strong></p>
<div class="language-py highlight"><span class="filename">featureset_to_sklearn_model_2.py</span><pre><span></span><code><span id="__span-3-1"><a id="__codelineno-3-1" name="__codelineno-3-1" href="#__codelineno-3-1"></a><span class="kn">from</span> <span class="nn">sageworks.api.feature_set</span> <span class="kn">import</span> <span class="n">FeatureSet</span>
<div class="language-py highlight"><span class="filename">featureset_to_rfc.py</span><pre><span></span><code><span id="__span-3-1"><a id="__codelineno-3-1" name="__codelineno-3-1" href="#__codelineno-3-1"></a><span class="kn">from</span> <span class="nn">sageworks.api.feature_set</span> <span class="kn">import</span> <span class="n">FeatureSet</span>
</span><span id="__span-3-2"><a id="__codelineno-3-2" name="__codelineno-3-2" href="#__codelineno-3-2"></a><span class="kn">from</span> <span class="nn">pprint</span> <span class="kn">import</span> <span class="n">pprint</span>
</span><span id="__span-3-3"><a id="__codelineno-3-3" name="__codelineno-3-3" href="#__codelineno-3-3"></a>
</span><span id="__span-3-4"><a id="__codelineno-3-4" name="__codelineno-3-4" href="#__codelineno-3-4"></a><span class="c1"># Grab a FeatureSet</span>
Expand Down
2 changes: 1 addition & 1 deletion core_classes/artifacts/model_core/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6865,7 +6865,7 @@ <h2 id="sageworks.core.artifacts.model_core.ModelType" class="doc doc-heading">
</span><span id="__span-0-26"><a id="__codelineno-0-26" name="__codelineno-0-26"></a>
</span><span id="__span-0-27"><a id="__codelineno-0-27" name="__codelineno-0-27"></a> <span class="n">CLASSIFIER</span> <span class="o">=</span> <span class="s2">&quot;classifier&quot;</span>
</span><span id="__span-0-28"><a id="__codelineno-0-28" name="__codelineno-0-28"></a> <span class="n">REGRESSOR</span> <span class="o">=</span> <span class="s2">&quot;regressor&quot;</span>
</span><span id="__span-0-29"><a id="__codelineno-0-29" name="__codelineno-0-29"></a> <span class="n">UNSUPERVISED</span> <span class="o">=</span> <span class="s2">&quot;unsupervised&quot;</span>
</span><span id="__span-0-29"><a id="__codelineno-0-29" name="__codelineno-0-29"></a> <span class="n">CLUSTERER</span> <span class="o">=</span> <span class="s2">&quot;clusterer&quot;</span>
</span><span id="__span-0-30"><a id="__codelineno-0-30" name="__codelineno-0-30"></a> <span class="n">TRANSFORMER</span> <span class="o">=</span> <span class="s2">&quot;transformer&quot;</span>
</span><span id="__span-0-31"><a id="__codelineno-0-31" name="__codelineno-0-31"></a> <span class="n">QUANTILE_REGRESSOR</span> <span class="o">=</span> <span class="s2">&quot;quantile_regressor&quot;</span>
</span><span id="__span-0-32"><a id="__codelineno-0-32" name="__codelineno-0-32"></a> <span class="n">UNKNOWN</span> <span class="o">=</span> <span class="s2">&quot;unknown&quot;</span>
Expand Down
Loading

0 comments on commit cda2108

Please sign in to comment.