Skip to content

Commit

Permalink
Deployed 80c3bc1 to dev with MkDocs 1.6.1 and mike 2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 7, 2025
1 parent b7ac563 commit fede0fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions dev/guides/integration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,8 @@ <h2 id="scikit-learn">Scikit-Learn<a class="anchor-link" href="#scikit-learn">¶
</div>
</clipboard-copy>
</div>
<div class="highlight-ipynb hl-python"><pre><span></span><span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Iterable</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span>
<div class="highlight-ipynb hl-python"><pre><span></span><span class="kn">from</span> <span class="nn">collections.abc</span> <span class="kn">import</span> <span class="n">Iterable</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Optional</span>

<span class="kn">from</span> <span class="nn">sklearn.base</span> <span class="kn">import</span> <span class="n">BaseEstimator</span><span class="p">,</span> <span class="n">TransformerMixin</span>
<span class="kn">from</span> <span class="nn">sklearn.linear_model</span> <span class="kn">import</span> <span class="n">LinearRegression</span>
Expand Down Expand Up @@ -1545,7 +1546,7 @@ <h2 id="scikit-learn">Scikit-Learn<a class="anchor-link" href="#scikit-learn">¶

<span class="k">def</span> <span class="nf">get_feature_names_out</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span> <span class="n">input_features</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">Iterable</span><span class="p">[</span><span class="nb">str</span><span class="p">]]</span> <span class="o">=</span> <span class="kc">None</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]:</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">list</span><span class="p">[</span><span class="nb">str</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">"""</span>
<span class="sd"> Expose model spec column names to scikit learn to allow column transforms later in the pipeline.</span>
<span class="sd"> """</span>
Expand All @@ -1567,7 +1568,8 @@ <h2 id="scikit-learn">Scikit-Learn<a class="anchor-link" href="#scikit-learn">¶
<span class="c1"># Note: You could optionally serialize `pipe_fit` here.</span>
<span class="c1"># Then: Use the pipe to predict outcomes for new data.</span>
</pre></div>
<div class="clipboard-copy-txt" id="cell-2">from typing import Iterable, List, Optional
<div class="clipboard-copy-txt" id="cell-2">from collections.abc import Iterable
from typing import Optional

from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.linear_model import LinearRegression
Expand Down Expand Up @@ -1607,7 +1609,7 @@ <h2 id="scikit-learn">Scikit-Learn<a class="anchor-link" href="#scikit-learn">¶

def get_feature_names_out(
self, input_features: Optional[Iterable[str]] = None
) -&gt; List[str]:
) -&gt; list[str]:
"""
Expose model spec column names to scikit learn to allow column transforms later in the pipeline.
"""
Expand Down
2 changes: 1 addition & 1 deletion dev/search/search_index.json

Large diffs are not rendered by default.

Binary file modified dev/sitemap.xml.gz
Binary file not shown.

0 comments on commit fede0fc

Please sign in to comment.