Skip to content

Commit

Permalink
deploy: bbc3b95
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Nov 27, 2024
1 parent afdddd8 commit df7600b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
15 changes: 8 additions & 7 deletions api_classes/feature_set/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3269,8 +3269,8 @@ <h2 id="sageworks.api.feature_set.FeatureSet" class="doc doc-heading">
<div class="language-python highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="n">my_features</span> <span class="o">=</span> <span class="n">FeatureSet</span><span class="p">(</span><span class="n">name</span><span class="p">)</span>
</span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class="n">my_features</span><span class="o">.</span><span class="n">details</span><span class="p">()</span>
</span><span id="__span-0-3"><a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a><span class="n">my_features</span><span class="o">.</span><span class="n">to_model</span><span class="p">(</span>
</span><span id="__span-0-4"><a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a> <span class="n">ModelType</span><span class="o">.</span><span class="n">REGRESSOR</span><span class="p">,</span>
</span><span id="__span-0-5"><a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a> <span class="n">name</span><span class="o">=</span><span class="s2">&quot;abalone-regression&quot;</span><span class="p">,</span>
</span><span id="__span-0-4"><a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a> <span class="n">name</span><span class="o">=</span><span class="s2">&quot;abalone-regression&quot;</span><span class="p">,</span>
</span><span id="__span-0-5"><a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a> <span class="n">model_type</span><span class="o">=</span><span class="n">ModelType</span><span class="o">.</span><span class="n">REGRESSOR</span><span class="p">,</span>
</span><span id="__span-0-6"><a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a> <span class="n">target_column</span><span class="o">=</span><span class="s2">&quot;class_number_of_rings&quot;</span>
</span><span id="__span-0-7"><a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a> <span class="n">feature_list</span><span class="o">=</span><span class="p">[</span><span class="s2">&quot;my&quot;</span><span class="p">,</span> <span class="s2">&quot;best&quot;</span><span class="p">,</span> <span class="s2">&quot;features&quot;</span><span class="p">])</span>
</span><span id="__span-0-8"><a id="__codelineno-0-8" name="__codelineno-0-8" href="#__codelineno-0-8"></a><span class="p">)</span>
Expand Down Expand Up @@ -3407,8 +3407,8 @@ <h2 id="sageworks.api.feature_set.FeatureSet" class="doc doc-heading">
</span><span id="__span-0-22"><a id="__codelineno-0-22" name="__codelineno-0-22"></a><span class="sd"> my_features = FeatureSet(name)</span>
</span><span id="__span-0-23"><a id="__codelineno-0-23" name="__codelineno-0-23"></a><span class="sd"> my_features.details()</span>
</span><span id="__span-0-24"><a id="__codelineno-0-24" name="__codelineno-0-24"></a><span class="sd"> my_features.to_model(</span>
</span><span id="__span-0-25"><a id="__codelineno-0-25" name="__codelineno-0-25"></a><span class="sd"> ModelType.REGRESSOR,</span>
</span><span id="__span-0-26"><a id="__codelineno-0-26" name="__codelineno-0-26"></a><span class="sd"> name=&quot;abalone-regression&quot;,</span>
</span><span id="__span-0-25"><a id="__codelineno-0-25" name="__codelineno-0-25"></a><span class="sd"> name=&quot;abalone-regression&quot;,</span>
</span><span id="__span-0-26"><a id="__codelineno-0-26" name="__codelineno-0-26"></a><span class="sd"> model_type=ModelType.REGRESSOR,</span>
</span><span id="__span-0-27"><a id="__codelineno-0-27" name="__codelineno-0-27"></a><span class="sd"> target_column=&quot;class_number_of_rings&quot;</span>
</span><span id="__span-0-28"><a id="__codelineno-0-28" name="__codelineno-0-28"></a><span class="sd"> feature_list=[&quot;my&quot;, &quot;best&quot;, &quot;features&quot;])</span>
</span><span id="__span-0-29"><a id="__codelineno-0-29" name="__codelineno-0-29"></a><span class="sd"> )</span>
Expand Down Expand Up @@ -4074,9 +4074,10 @@ <h3 id="sageworks.api.feature_set.FeatureSet.to_model" class="doc doc-heading">
</span><span id="__span-5-8"><a id="__codelineno-5-8" name="__codelineno-5-8" href="#__codelineno-5-8"></a><span class="c1"># Create a Model from the FeatureSet</span>
</span><span id="__span-5-9"><a id="__codelineno-5-9" name="__codelineno-5-9" href="#__codelineno-5-9"></a><span class="c1"># Note: ModelTypes can be CLASSIFIER, REGRESSOR, </span>
</span><span id="__span-5-10"><a id="__codelineno-5-10" name="__codelineno-5-10" href="#__codelineno-5-10"></a><span class="c1"># UNSUPERVISED, or TRANSFORMER</span>
</span><span id="__span-5-11"><a id="__codelineno-5-11" name="__codelineno-5-11" href="#__codelineno-5-11"></a><span class="n">my_model</span> <span class="o">=</span> <span class="n">my_features</span><span class="o">.</span><span class="n">to_model</span><span class="p">(</span><span class="n">model_type</span><span class="o">=</span><span class="n">ModelType</span><span class="o">.</span><span class="n">REGRESSOR</span><span class="p">,</span>
</span><span id="__span-5-12"><a id="__codelineno-5-12" name="__codelineno-5-12" href="#__codelineno-5-12"></a> <span class="n">target_column</span><span class="o">=</span><span class="s2">&quot;iq_score&quot;</span><span class="p">)</span>
</span><span id="__span-5-13"><a id="__codelineno-5-13" name="__codelineno-5-13" href="#__codelineno-5-13"></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><span id="__span-5-11"><a id="__codelineno-5-11" name="__codelineno-5-11" href="#__codelineno-5-11"></a><span class="n">my_model</span> <span class="o">=</span> <span class="n">my_features</span><span class="o">.</span><span class="n">to_model</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s2">&quot;test-model&quot;</span><span class="p">,</span>
</span><span id="__span-5-12"><a id="__codelineno-5-12" name="__codelineno-5-12" href="#__codelineno-5-12"></a> <span class="n">model_type</span><span class="o">=</span><span class="n">ModelType</span><span class="o">.</span><span class="n">REGRESSOR</span><span class="p">,</span>
</span><span id="__span-5-13"><a id="__codelineno-5-13" name="__codelineno-5-13" href="#__codelineno-5-13"></a> <span class="n">target_column</span><span class="o">=</span><span class="s2">&quot;iq_score&quot;</span><span class="p">)</span>
</span><span id="__span-5-14"><a id="__codelineno-5-14" name="__codelineno-5-14" href="#__codelineno-5-14"></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>
<p><strong>Output</strong></p>
<div class="language-python highlight"><pre><span></span><code><span id="__span-6-1"><a id="__codelineno-6-1" name="__codelineno-6-1" href="#__codelineno-6-1"></a><span class="p">{</span><span class="s1">&#39;approval_status&#39;</span><span class="p">:</span> <span class="s1">&#39;Approved&#39;</span><span class="p">,</span>
Expand Down
7 changes: 4 additions & 3 deletions api_classes/model/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3607,9 +3607,10 @@ <h3 id="sageworks.api.model.Model.to_endpoint" class="doc doc-heading">
</span><span id="__span-0-7"><a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a>
</span><span id="__span-0-8"><a id="__codelineno-0-8" name="__codelineno-0-8" href="#__codelineno-0-8"></a><span class="c1"># Create a Model from the FeatureSet</span>
</span><span id="__span-0-9"><a id="__codelineno-0-9" name="__codelineno-0-9" href="#__codelineno-0-9"></a><span class="c1"># Note: ModelTypes can be CLASSIFIER, REGRESSOR (XGBoost is default)</span>
</span><span id="__span-0-10"><a id="__codelineno-0-10" name="__codelineno-0-10" href="#__codelineno-0-10"></a><span class="n">my_model</span> <span class="o">=</span> <span class="n">my_features</span><span class="o">.</span><span class="n">to_model</span><span class="p">(</span><span class="n">model_type</span><span class="o">=</span><span class="n">ModelType</span><span class="o">.</span><span class="n">REGRESSOR</span><span class="p">,</span>
</span><span id="__span-0-11"><a id="__codelineno-0-11" name="__codelineno-0-11" href="#__codelineno-0-11"></a> <span class="n">target_column</span><span class="o">=</span><span class="s2">&quot;iq_score&quot;</span><span class="p">)</span>
</span><span id="__span-0-12"><a id="__codelineno-0-12" name="__codelineno-0-12" href="#__codelineno-0-12"></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><span id="__span-0-10"><a id="__codelineno-0-10" name="__codelineno-0-10" href="#__codelineno-0-10"></a><span class="n">my_model</span> <span class="o">=</span> <span class="n">my_features</span><span class="o">.</span><span class="n">to_model</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s2">&quot;test-model&quot;</span><span class="p">,</span>
</span><span id="__span-0-11"><a id="__codelineno-0-11" name="__codelineno-0-11" href="#__codelineno-0-11"></a> <span class="n">model_type</span><span class="o">=</span><span class="n">ModelType</span><span class="o">.</span><span class="n">REGRESSOR</span><span class="p">,</span>
</span><span id="__span-0-12"><a id="__codelineno-0-12" name="__codelineno-0-12" href="#__codelineno-0-12"></a> <span class="n">target_column</span><span class="o">=</span><span class="s2">&quot;iq_score&quot;</span><span class="p">)</span>
</span><span id="__span-0-13"><a id="__codelineno-0-13" name="__codelineno-0-13" href="#__codelineno-0-13"></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>
<p><strong>Output</strong></p>
<div class="language-py highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a><span class="p">{</span><span class="s1">&#39;approval_status&#39;</span><span class="p">:</span> <span class="s1">&#39;Approved&#39;</span><span class="p">,</span>
Expand Down
4 changes: 2 additions & 2 deletions api_classes/overview/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3119,8 +3119,8 @@ <h2 id="example-ml-pipline">Example ML Pipline</h2>
</span><span id="__span-0-12"><a id="__codelineno-0-12" name="__codelineno-0-12" href="#__codelineno-0-12"></a><span class="c1"># Create the abalone_regression Model</span>
</span><span id="__span-0-13"><a id="__codelineno-0-13" name="__codelineno-0-13" href="#__codelineno-0-13"></a><span class="n">fs</span> <span class="o">=</span> <span class="n">FeatureSet</span><span class="p">(</span><span class="s2">&quot;abalone_features&quot;</span><span class="p">)</span>
</span><span id="__span-0-14"><a id="__codelineno-0-14" name="__codelineno-0-14" href="#__codelineno-0-14"></a><span class="n">fs</span><span class="o">.</span><span class="n">to_model</span><span class="p">(</span>
</span><span id="__span-0-15"><a id="__codelineno-0-15" name="__codelineno-0-15" href="#__codelineno-0-15"></a> <span class="n">ModelType</span><span class="o">.</span><span class="n">REGRESSOR</span><span class="p">,</span>
</span><span id="__span-0-16"><a id="__codelineno-0-16" name="__codelineno-0-16" href="#__codelineno-0-16"></a> <span class="n">name</span><span class="o">=</span><span class="s2">&quot;abalone-regression&quot;</span><span class="p">,</span>
</span><span id="__span-0-15"><a id="__codelineno-0-15" name="__codelineno-0-15" href="#__codelineno-0-15"></a> <span class="n">name</span><span class="o">=</span><span class="s2">&quot;abalone-regression&quot;</span><span class="p">,</span>
</span><span id="__span-0-16"><a id="__codelineno-0-16" name="__codelineno-0-16" href="#__codelineno-0-16"></a> <span class="n">model_type</span><span class="o">=</span><span class="n">ModelType</span><span class="o">.</span><span class="n">REGRESSOR</span><span class="p">,</span>
</span><span id="__span-0-17"><a id="__codelineno-0-17" name="__codelineno-0-17" href="#__codelineno-0-17"></a> <span class="n">target_column</span><span class="o">=</span><span class="s2">&quot;class_number_of_rings&quot;</span><span class="p">,</span>
</span><span id="__span-0-18"><a id="__codelineno-0-18" name="__codelineno-0-18" href="#__codelineno-0-18"></a> <span class="n">tags</span><span class="o">=</span><span class="p">[</span><span class="s2">&quot;abalone&quot;</span><span class="p">,</span> <span class="s2">&quot;regression&quot;</span><span class="p">],</span>
</span><span id="__span-0-19"><a id="__codelineno-0-19" name="__codelineno-0-19" href="#__codelineno-0-19"></a> <span class="n">description</span><span class="o">=</span><span class="s2">&quot;Abalone Regression Model&quot;</span><span class="p">,</span>
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

0 comments on commit df7600b

Please sign in to comment.