@@ -34,8 +34,8 @@ def __init__(
34
34
max_models_on_disc = 50 ,
35
35
seed = 1 ,
36
36
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 ,
39
39
resampling_strategy = 'holdout' ,
40
40
resampling_strategy_arguments = None ,
41
41
tmp_folder = None ,
@@ -97,24 +97,63 @@ def __init__(
97
97
Memory limit in MB for the machine learning algorithm.
98
98
`auto-sklearn` will stop fitting the machine learning algorithm if
99
99
it tries to allocate more than ``memory_limit`` MB.
100
-
101
- **Important notes:**
102
-
100
+
101
+ **Important notes:**
102
+
103
103
* 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
105
105
``n_jobs x memory_limit``.
106
106
* The memory limit also applies to the ensemble creation process.
107
107
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 included in search.
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 excluded from search.
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
112
152
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
+ }
118
157
119
158
resampling_strategy : string or object, optional ('holdout')
120
159
how to to handle overfitting, might need 'resampling_strategy_arguments'
0 commit comments