Skip to content

Commit 203b3bd

Browse files
author
Github Actions
committed
Eddie Bergman: Fix: MLPRegressor tests (#1367)
1 parent c65b0fa commit 203b3bd

File tree

65 files changed

+3729
-3211
lines changed

Some content is hidden

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

65 files changed

+3729
-3211
lines changed
Binary file not shown.
Binary file not shown.
Loading
Loading
Loading
Loading
Loading
Loading

development/_sources/examples/20_basic/example_classification.rst.txt

Lines changed: 259 additions & 148 deletions
Large diffs are not rendered by default.

development/_sources/examples/20_basic/example_multilabel_classification.rst.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ View the models found by auto-sklearn
155155
156156
rank ensemble_weight type cost duration
157157
model_id
158-
2 1 1.0 random_forest 0.447294 4.579435
158+
2 1 1.0 random_forest 0.447294 3.615119
159159
160160
161161
@@ -183,11 +183,11 @@ Print the final ensemble constructed by auto-sklearn
183183
.. code-block:: none
184184
185185
{ 2: { 'balancing': Balancing(random_state=1),
186-
'classifier': <autosklearn.pipeline.components.classification.ClassifierChoice object at 0x7f8344032f10>,
186+
'classifier': <autosklearn.pipeline.components.classification.ClassifierChoice object at 0x7fdfac2599a0>,
187187
'cost': 0.4472941828699525,
188-
'data_preprocessor': <autosklearn.pipeline.components.data_preprocessing.DataPreprocessorChoice object at 0x7f83428e22b0>,
188+
'data_preprocessor': <autosklearn.pipeline.components.data_preprocessing.DataPreprocessorChoice object at 0x7fdfaccdf070>,
189189
'ensemble_weight': 1.0,
190-
'feature_preprocessor': <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoice object at 0x7f8344032c10>,
190+
'feature_preprocessor': <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoice object at 0x7fdfac259250>,
191191
'model_id': 2,
192192
'rank': 1,
193193
'sklearn_classifier': RandomForestClassifier(max_features=15, n_estimators=512, n_jobs=1,
@@ -264,7 +264,7 @@ Get the Score of the final ensemble
264264
265265
.. rst-class:: sphx-glr-timing
266266

267-
**Total running time of the script:** ( 0 minutes 18.439 seconds)
267+
**Total running time of the script:** ( 0 minutes 34.280 seconds)
268268

269269

270270
.. _sphx_glr_download_examples_20_basic_example_multilabel_classification.py:

development/_sources/examples/20_basic/example_multioutput_regression.rst.txt

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,9 @@ View the models found by auto-sklearn
123123

124124
.. code-block:: none
125125
126-
rank ensemble_weight type cost duration
127-
model_id
128-
16 1 0.94 gaussian_process 0.000009 18.825621
129-
14 2 0.06 gaussian_process 0.000073 3.463700
126+
rank ensemble_weight type cost duration
127+
model_id
128+
12 1 1.0 gaussian_process 0.000005 2.62024
130129
131130
132131
@@ -153,25 +152,14 @@ Print the final ensemble constructed by auto-sklearn
153152

154153
.. code-block:: none
155154
156-
{ 14: { 'cost': 7.294978049132705e-05,
157-
'data_preprocessor': <autosklearn.pipeline.components.data_preprocessing.DataPreprocessorChoice object at 0x7f833fa19d00>,
158-
'ensemble_weight': 0.06,
159-
'feature_preprocessor': <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoice object at 0x7f83441fd070>,
160-
'model_id': 14,
161-
'rank': 2,
162-
'regressor': <autosklearn.pipeline.components.regression.RegressorChoice object at 0x7f83441fd0a0>,
163-
'sklearn_regressor': GaussianProcessRegressor(alpha=0.0001892420474677165,
164-
kernel=RBF(length_scale=[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]),
165-
n_restarts_optimizer=10, normalize_y=True,
166-
random_state=1)},
167-
16: { 'cost': 8.604209460028045e-06,
168-
'data_preprocessor': <autosklearn.pipeline.components.data_preprocessing.DataPreprocessorChoice object at 0x7f8344334670>,
169-
'ensemble_weight': 0.94,
170-
'feature_preprocessor': <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoice object at 0x7f833fc612e0>,
171-
'model_id': 16,
155+
{ 12: { 'cost': 5.194507913142132e-06,
156+
'data_preprocessor': <autosklearn.pipeline.components.data_preprocessing.DataPreprocessorChoice object at 0x7fdfab0429a0>,
157+
'ensemble_weight': 1.0,
158+
'feature_preprocessor': <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoice object at 0x7fdfab042700>,
159+
'model_id': 12,
172160
'rank': 1,
173-
'regressor': <autosklearn.pipeline.components.regression.RegressorChoice object at 0x7f833fc616a0>,
174-
'sklearn_regressor': GaussianProcessRegressor(alpha=6.883531961818898e-12,
161+
'regressor': <autosklearn.pipeline.components.regression.RegressorChoice object at 0x7fdfab042a00>,
162+
'sklearn_regressor': GaussianProcessRegressor(alpha=6.212085562385133e-06,
175163
kernel=RBF(length_scale=[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]),
176164
n_restarts_optimizer=10, normalize_y=True,
177165
random_state=1)}}
@@ -202,7 +190,7 @@ Get the Score of the final ensemble
202190

203191
.. code-block:: none
204192
205-
R2 score: 0.9999851720273112
193+
R2 score: 0.9999981665106872
206194
207195
208196
@@ -425,7 +413,7 @@ Get the configuration space
425413
426414
.. rst-class:: sphx-glr-timing
427415

428-
**Total running time of the script:** ( 1 minutes 58.336 seconds)
416+
**Total running time of the script:** ( 1 minutes 59.863 seconds)
429417

430418

431419
.. _sphx_glr_download_examples_20_basic_example_multioutput_regression.py:

development/_sources/examples/20_basic/example_regression.rst.txt

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ View the models found by auto-sklearn
123123
124124
rank ensemble_weight type cost duration
125125
model_id
126-
25 1 0.46 sgd 0.436679 0.782460
127-
6 2 0.32 ard_regression 0.455042 0.800511
128-
27 3 0.14 ard_regression 0.462249 0.788985
129-
11 4 0.02 random_forest 0.507400 10.530246
130-
7 5 0.06 gradient_boosting 0.518673 1.700823
126+
25 1 0.46 sgd 0.436679 0.680917
127+
6 2 0.32 ard_regression 0.455042 0.699064
128+
27 3 0.14 ard_regression 0.462249 0.680735
129+
11 4 0.02 random_forest 0.507400 10.409721
130+
7 5 0.06 gradient_boosting 0.518673 1.241716
131131
132132
133133
@@ -155,58 +155,58 @@ Print the final ensemble constructed by auto-sklearn
155155
.. code-block:: none
156156
157157
{ 6: { 'cost': 0.4550418898836528,
158-
'data_preprocessor': <autosklearn.pipeline.components.data_preprocessing.DataPreprocessorChoice object at 0x7f8344014640>,
158+
'data_preprocessor': <autosklearn.pipeline.components.data_preprocessing.DataPreprocessorChoice object at 0x7fdfafb4fdf0>,
159159
'ensemble_weight': 0.32,
160-
'feature_preprocessor': <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoice object at 0x7f834408d1f0>,
160+
'feature_preprocessor': <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoice object at 0x7fdfb03f3850>,
161161
'model_id': 6,
162162
'rank': 2,
163-
'regressor': <autosklearn.pipeline.components.regression.RegressorChoice object at 0x7f834408dbe0>,
163+
'regressor': <autosklearn.pipeline.components.regression.RegressorChoice object at 0x7fdfb03f3250>,
164164
'sklearn_regressor': ARDRegression(alpha_1=0.0003701926442639788, alpha_2=2.2118001735899097e-07,
165165
copy_X=False, lambda_1=1.2037591637980971e-06,
166166
lambda_2=4.358378124977852e-09,
167167
threshold_lambda=1136.5286041327277, tol=0.021944240404849075)},
168168
7: { 'cost': 0.5186726734789994,
169-
'data_preprocessor': <autosklearn.pipeline.components.data_preprocessing.DataPreprocessorChoice object at 0x7f833fc839d0>,
169+
'data_preprocessor': <autosklearn.pipeline.components.data_preprocessing.DataPreprocessorChoice object at 0x7fdfac2ae520>,
170170
'ensemble_weight': 0.06,
171-
'feature_preprocessor': <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoice object at 0x7f8344108970>,
171+
'feature_preprocessor': <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoice object at 0x7fdfafd356d0>,
172172
'model_id': 7,
173173
'rank': 5,
174-
'regressor': <autosklearn.pipeline.components.regression.RegressorChoice object at 0x7f835733d940>,
174+
'regressor': <autosklearn.pipeline.components.regression.RegressorChoice object at 0x7fdfafd35400>,
175175
'sklearn_regressor': HistGradientBoostingRegressor(l2_regularization=1.8428972335335263e-10,
176176
learning_rate=0.012607824914758717, max_iter=512,
177177
max_leaf_nodes=10, min_samples_leaf=8,
178178
n_iter_no_change=0, random_state=1,
179179
validation_fraction=None, warm_start=True)},
180180
11: { 'cost': 0.5073997164657239,
181-
'data_preprocessor': <autosklearn.pipeline.components.data_preprocessing.DataPreprocessorChoice object at 0x7f834416e8b0>,
181+
'data_preprocessor': <autosklearn.pipeline.components.data_preprocessing.DataPreprocessorChoice object at 0x7fdfafab06d0>,
182182
'ensemble_weight': 0.02,
183-
'feature_preprocessor': <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoice object at 0x7f833fe9b7f0>,
183+
'feature_preprocessor': <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoice object at 0x7fdfacd2aa00>,
184184
'model_id': 11,
185185
'rank': 4,
186-
'regressor': <autosklearn.pipeline.components.regression.RegressorChoice object at 0x7f833fe9b8e0>,
186+
'regressor': <autosklearn.pipeline.components.regression.RegressorChoice object at 0x7fdfacd2adf0>,
187187
'sklearn_regressor': RandomForestRegressor(bootstrap=False, criterion='mae',
188188
max_features=0.6277363920171745, min_samples_leaf=6,
189189
min_samples_split=15, n_estimators=512, n_jobs=1,
190190
random_state=1, warm_start=True)},
191191
25: { 'cost': 0.43667876507897496,
192-
'data_preprocessor': <autosklearn.pipeline.components.data_preprocessing.DataPreprocessorChoice object at 0x7f83440427f0>,
192+
'data_preprocessor': <autosklearn.pipeline.components.data_preprocessing.DataPreprocessorChoice object at 0x7fdfacd21b20>,
193193
'ensemble_weight': 0.46,
194-
'feature_preprocessor': <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoice object at 0x7f834266e4c0>,
194+
'feature_preprocessor': <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoice object at 0x7fdfacd21c70>,
195195
'model_id': 25,
196196
'rank': 1,
197-
'regressor': <autosklearn.pipeline.components.regression.RegressorChoice object at 0x7f834266e5e0>,
197+
'regressor': <autosklearn.pipeline.components.regression.RegressorChoice object at 0x7fdfacd218e0>,
198198
'sklearn_regressor': SGDRegressor(alpha=0.0006517033225329654, epsilon=0.012150149892783745,
199199
eta0=0.016444224834275295, l1_ratio=1.7462342366289323e-09,
200200
loss='epsilon_insensitive', max_iter=16, penalty='elasticnet',
201201
power_t=0.21521743568582094, random_state=1,
202202
tol=0.002431731981071206, warm_start=True)},
203203
27: { 'cost': 0.4622486119001967,
204-
'data_preprocessor': <autosklearn.pipeline.components.data_preprocessing.DataPreprocessorChoice object at 0x7f83442101f0>,
204+
'data_preprocessor': <autosklearn.pipeline.components.data_preprocessing.DataPreprocessorChoice object at 0x7fdfb07beca0>,
205205
'ensemble_weight': 0.14,
206-
'feature_preprocessor': <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoice object at 0x7f83426df640>,
206+
'feature_preprocessor': <autosklearn.pipeline.components.feature_preprocessing.FeaturePreprocessorChoice object at 0x7fdfab184910>,
207207
'model_id': 27,
208208
'rank': 3,
209-
'regressor': <autosklearn.pipeline.components.regression.RegressorChoice object at 0x7f83426df0a0>,
209+
'regressor': <autosklearn.pipeline.components.regression.RegressorChoice object at 0x7fdfab1849d0>,
210210
'sklearn_regressor': ARDRegression(alpha_1=2.7664515192592053e-05, alpha_2=9.504988116581138e-07,
211211
copy_X=False, lambda_1=6.50650698230178e-09,
212212
lambda_2=4.238533890074848e-07,
@@ -290,7 +290,7 @@ the true value).
290290

291291
.. rst-class:: sphx-glr-timing
292292

293-
**Total running time of the script:** ( 2 minutes 1.625 seconds)
293+
**Total running time of the script:** ( 1 minutes 53.928 seconds)
294294

295295

296296
.. _sphx_glr_download_examples_20_basic_example_regression.py:

development/_sources/examples/20_basic/sg_execution_times.rst.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
Computation times
77
=================
8-
**06:23.041** total execution time for **examples_20_basic** files:
8+
**06:30.491** total execution time for **examples_20_basic** files:
99

1010
+-------------------------------------------------------------------------------------------------------------------+-----------+--------+
11-
| :ref:`sphx_glr_examples_20_basic_example_classification.py` (``example_classification.py``) | 02:04.642 | 0.0 MB |
11+
| :ref:`sphx_glr_examples_20_basic_example_classification.py` (``example_classification.py``) | 02:02.421 | 0.0 MB |
1212
+-------------------------------------------------------------------------------------------------------------------+-----------+--------+
13-
| :ref:`sphx_glr_examples_20_basic_example_regression.py` (``example_regression.py``) | 02:01.625 | 0.0 MB |
13+
| :ref:`sphx_glr_examples_20_basic_example_multioutput_regression.py` (``example_multioutput_regression.py``) | 01:59.863 | 0.0 MB |
1414
+-------------------------------------------------------------------------------------------------------------------+-----------+--------+
15-
| :ref:`sphx_glr_examples_20_basic_example_multioutput_regression.py` (``example_multioutput_regression.py``) | 01:58.336 | 0.0 MB |
15+
| :ref:`sphx_glr_examples_20_basic_example_regression.py` (``example_regression.py``) | 01:53.928 | 0.0 MB |
1616
+-------------------------------------------------------------------------------------------------------------------+-----------+--------+
17-
| :ref:`sphx_glr_examples_20_basic_example_multilabel_classification.py` (``example_multilabel_classification.py``) | 00:18.439 | 0.0 MB |
17+
| :ref:`sphx_glr_examples_20_basic_example_multilabel_classification.py` (``example_multilabel_classification.py``) | 00:34.280 | 0.0 MB |
1818
+-------------------------------------------------------------------------------------------------------------------+-----------+--------+

0 commit comments

Comments
 (0)