@@ -34,8 +34,8 @@ def __init__(
3434 max_models_on_disc = 50 ,
3535 seed = 1 ,
3636 memory_limit = 3072 ,
37- include = None ,
38- exclude = None ,
37+ include : Optional [ Dict [ str , List [ str ]] = None ,
38+ exclude : Optional [ Dict [ str , List [ str ]] = None ,
3939 resampling_strategy = 'holdout' ,
4040 resampling_strategy_arguments = None ,
4141 tmp_folder = None ,
@@ -97,24 +97,63 @@ def __init__(
9797 Memory limit in MB for the machine learning algorithm.
9898 `auto-sklearn` will stop fitting the machine learning algorithm if
9999 it tries to allocate more than ``memory_limit`` MB.
100-
101- **Important notes:**
102-
100+
101+ **Important notes:**
102+
103103 * If ``None`` is provided, no memory limit is set.
104- * In case of multi-processing, ``memory_limit`` will be *per job*, so the total usage is
104+ * In case of multi-processing, ``memory_limit`` will be *per job*, so the total usage is
105105 ``n_jobs x memory_limit``.
106106 * The memory limit also applies to the ensemble creation process.
107107
108- include : dict, optional (None)
109- If None, all possible algorithms are used. Otherwise specifies
110- set of algorithms for each added component is used. Include and
111- exclude are incompatible if used together on the same component
108+ include : Optional[Dict[str, List[str]]] = None
109+ If None, all possible algorithms are used.
110+
111+ Otherwise, specifies a step and the components that are available to be used.
112+ See ``/pipeline/components/<step>/*`` for available components.
113+
114+ Incompatible with parameter ``exclude``.
115+
116+ **Possible Steps**:
117+
118+ * ``"data_preprocessor"``
119+ * ``"balancing"``
120+ * ``"feature_preprocessor"``
121+ * ``"classifier"`` - Only for when when using ``AutoSklearnClasssifier``
122+ * ``"regressor"`` - Only for when when using ``AutoSklearnRegressor``
123+
124+ **Example**:
125+
126+ .. code-block:: python
127+
128+ include = {
129+ 'classifier': ["random_forest"],
130+ 'feature_preprocessor': ["no_preprocessing"]
131+ }
132+
133+ exclude : Optional[Dict[str, List[str]]] = None
134+ If None, all possible algorithms are used.
135+
136+ Otherwise, specifies a step and the components that are available to be used.
137+ See ``/pipeline/components/<step>/*`` for available components.
138+
139+ Incompatible with parameter ``include``.
140+
141+ **Possible Steps**:
142+
143+ * ``"data_preprocessor"``
144+ * ``"balancing"``
145+ * ``"feature_preprocessor"``
146+ * ``"classifier"`` - Only for when when using ``AutoSklearnClasssifier``
147+ * ``"regressor"`` - Only for when when using ``AutoSklearnRegressor``
148+
149+ **Example**:
150+
151+ .. code-block:: python
112152
113- exclude : dict, optional (None)
114- If None, all possible algorithms are used. Otherwise specifies
115- set of algorithms for each added component is not used.
116- Incompatible with include. Include and exclude are incompatible
117- if used together on the same component
153+ exclude = {
154+ 'classifier': ["random_forest"],
155+ 'feature_preprocessor': ["no_preprocessing"]
156+ }
118157
119158 resampling_strategy : string or object, optional ('holdout')
120159 how to to handle overfitting, might need 'resampling_strategy_arguments'
0 commit comments