Skip to content

Commit 0c188cb

Browse files
author
Github Actions
committed
Eddie Bergman: Update docstrings of include and exclude parameters of the estimators (#1332)
1 parent bac8fda commit 0c188cb

File tree

71 files changed

+1624
-1973
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1624
-1973
lines changed
Binary file not shown.
Binary file not shown.
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

development/_modules/autosklearn/estimators.html

Lines changed: 54 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ <h1>Source code for autosklearn.estimators</h1><div class="highlight"><pre>
146146
<span class="n">max_models_on_disc</span><span class="o">=</span><span class="mi">50</span><span class="p">,</span>
147147
<span class="n">seed</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span>
148148
<span class="n">memory_limit</span><span class="o">=</span><span class="mi">3072</span><span class="p">,</span>
149-
<span class="n">include</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
150-
<span class="n">exclude</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
149+
<span class="n">include</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">Dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">List</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>
150+
<span class="n">exclude</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">Dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">List</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>
151151
<span class="n">resampling_strategy</span><span class="o">=</span><span class="s1">&#39;holdout&#39;</span><span class="p">,</span>
152152
<span class="n">resampling_strategy_arguments</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
153153
<span class="n">tmp_folder</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
@@ -209,24 +209,63 @@ <h1>Source code for autosklearn.estimators</h1><div class="highlight"><pre>
209209
<span class="sd"> Memory limit in MB for the machine learning algorithm.</span>
210210
<span class="sd"> `auto-sklearn` will stop fitting the machine learning algorithm if</span>
211211
<span class="sd"> it tries to allocate more than ``memory_limit`` MB.</span>
212-
<span class="sd"> </span>
213-
<span class="sd"> **Important notes:** </span>
214-
<span class="sd"> </span>
212+
213+
<span class="sd"> **Important notes:**</span>
214+
215215
<span class="sd"> * If ``None`` is provided, no memory limit is set.</span>
216-
<span class="sd"> * In case of multi-processing, ``memory_limit`` will be *per job*, so the total usage is </span>
216+
<span class="sd"> * In case of multi-processing, ``memory_limit`` will be *per job*, so the total usage is</span>
217217
<span class="sd"> ``n_jobs x memory_limit``.</span>
218218
<span class="sd"> * The memory limit also applies to the ensemble creation process.</span>
219219

220-
<span class="sd"> include : dict, optional (None)</span>
221-
<span class="sd"> If None, all possible algorithms are used. Otherwise specifies</span>
222-
<span class="sd"> set of algorithms for each added component is used. Include and </span>
223-
<span class="sd"> exclude are incompatible if used together on the same component</span>
220+
<span class="sd"> include : Optional[Dict[str, List[str]]] = None</span>
221+
<span class="sd"> If None, all possible algorithms are used.</span>
222+
223+
<span class="sd"> Otherwise, specifies a step and the components that are included in search.</span>
224+
<span class="sd"> See ``/pipeline/components/&lt;step&gt;/*`` for available components.</span>
225+
226+
<span class="sd"> Incompatible with parameter ``exclude``.</span>
227+
228+
<span class="sd"> **Possible Steps**:</span>
229+
230+
<span class="sd"> * ``&quot;data_preprocessor&quot;``</span>
231+
<span class="sd"> * ``&quot;balancing&quot;``</span>
232+
<span class="sd"> * ``&quot;feature_preprocessor&quot;``</span>
233+
<span class="sd"> * ``&quot;classifier&quot;`` - Only for when when using ``AutoSklearnClasssifier``</span>
234+
<span class="sd"> * ``&quot;regressor&quot;`` - Only for when when using ``AutoSklearnRegressor``</span>
235+
236+
<span class="sd"> **Example**:</span>
237+
238+
<span class="sd"> .. code-block:: python</span>
239+
240+
<span class="sd"> include = {</span>
241+
<span class="sd"> &#39;classifier&#39;: [&quot;random_forest&quot;],</span>
242+
<span class="sd"> &#39;feature_preprocessor&#39;: [&quot;no_preprocessing&quot;]</span>
243+
<span class="sd"> }</span>
244+
245+
<span class="sd"> exclude : Optional[Dict[str, List[str]]] = None</span>
246+
<span class="sd"> If None, all possible algorithms are used.</span>
247+
248+
<span class="sd"> Otherwise, specifies a step and the components that are excluded from search.</span>
249+
<span class="sd"> See ``/pipeline/components/&lt;step&gt;/*`` for available components.</span>
250+
251+
<span class="sd"> Incompatible with parameter ``include``.</span>
252+
253+
<span class="sd"> **Possible Steps**:</span>
254+
255+
<span class="sd"> * ``&quot;data_preprocessor&quot;``</span>
256+
<span class="sd"> * ``&quot;balancing&quot;``</span>
257+
<span class="sd"> * ``&quot;feature_preprocessor&quot;``</span>
258+
<span class="sd"> * ``&quot;classifier&quot;`` - Only for when when using ``AutoSklearnClasssifier``</span>
259+
<span class="sd"> * ``&quot;regressor&quot;`` - Only for when when using ``AutoSklearnRegressor``</span>
260+
261+
<span class="sd"> **Example**:</span>
262+
263+
<span class="sd"> .. code-block:: python</span>
224264

225-
<span class="sd"> exclude : dict, optional (None)</span>
226-
<span class="sd"> If None, all possible algorithms are used. Otherwise specifies</span>
227-
<span class="sd"> set of algorithms for each added component is not used.</span>
228-
<span class="sd"> Incompatible with include. Include and exclude are incompatible</span>
229-
<span class="sd"> if used together on the same component</span>
265+
<span class="sd"> exclude = {</span>
266+
<span class="sd"> &#39;classifier&#39;: [&quot;random_forest&quot;],</span>
267+
<span class="sd"> &#39;feature_preprocessor&#39;: [&quot;no_preprocessing&quot;]</span>
268+
<span class="sd"> }</span>
230269

231270
<span class="sd"> resampling_strategy : string or object, optional (&#39;holdout&#39;)</span>
232271
<span class="sd"> how to to handle overfitting, might need &#39;resampling_strategy_arguments&#39;</span>

0 commit comments

Comments
 (0)