Skip to content

Commit 9fac462

Browse files
author
Github Actions
committed
Ravin Kohli: [ADD] scalers from autosklearn (#372)
1 parent 1a20da1 commit 9fac462

31 files changed

+375
-323
lines changed
Binary file not shown.
Binary file not shown.
Loading
Loading
Loading
Loading

development/_sources/examples/20_basics/example_image_classification.rst.txt

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,24 +85,25 @@ Image Classification
8585
Pipeline Random Config:
8686
________________________________________
8787
Configuration(values={
88-
'image_augmenter:GaussianBlur:sigma_min': 2.5825628129058305,
89-
'image_augmenter:GaussianBlur:sigma_offset': 0.4548687619380444,
90-
'image_augmenter:GaussianBlur:use_augmenter': True,
91-
'image_augmenter:GaussianNoise:sigma_offset': 2.065404323877688,
92-
'image_augmenter:GaussianNoise:use_augmenter': True,
93-
'image_augmenter:RandomAffine:use_augmenter': False,
88+
'image_augmenter:GaussianBlur:use_augmenter': False,
89+
'image_augmenter:GaussianNoise:use_augmenter': False,
90+
'image_augmenter:RandomAffine:rotate': 171,
91+
'image_augmenter:RandomAffine:scale_offset': 0.16968859827986923,
92+
'image_augmenter:RandomAffine:shear': 42,
93+
'image_augmenter:RandomAffine:translate_percent_offset': 0.0006590163048096454,
94+
'image_augmenter:RandomAffine:use_augmenter': True,
9495
'image_augmenter:RandomCutout:use_augmenter': False,
95-
'image_augmenter:Resize:use_augmenter': False,
96-
'image_augmenter:ZeroPadAndCrop:percent': 0.0806044230263594,
97-
'normalizer:__choice__': 'ImageNormalizer',
96+
'image_augmenter:Resize:use_augmenter': True,
97+
'image_augmenter:ZeroPadAndCrop:percent': 0.058124084899998096,
98+
'normalizer:__choice__': 'NoNormalizer',
9899
})
99100

100101
Fitting the pipeline...
101102
________________________________________
102103
ImageClassificationPipeline
103104
________________________________________
104105
0-) normalizer:
105-
ImageNormalizer
106+
NoNormalizer
106107

107108
1-) preprocessing:
108109
EarlyPreprocessing
@@ -174,7 +175,7 @@ Image Classification
174175
175176
.. rst-class:: sphx-glr-timing
176177

177-
**Total running time of the script:** ( 0 minutes 6.799 seconds)
178+
**Total running time of the script:** ( 0 minutes 5.506 seconds)
178179

179180

180181
.. _sphx_glr_download_examples_20_basics_example_image_classification.py:

development/_sources/examples/20_basics/example_tabular_classification.rst.txt

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Search for an ensemble of machine learning algorithms
134134
.. code-block:: none
135135
136136
137-
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7f94a2ebb6d0>
137+
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7f5f46714070>
138138
139139
140140
@@ -165,26 +165,33 @@ Print the final ensemble performance
165165

166166
.. code-block:: none
167167
168-
{'accuracy': 0.861271676300578}
169-
| | Preprocessing | Estimator | Weight |
170-
|---:|:-------------------------------------------------------------------------------------|:-------------------------------------------------------------------|---------:|
171-
| 0 | None | CBLearner | 0.24 |
172-
| 1 | None | KNNLearner | 0.16 |
173-
| 2 | SimpleImputer,Variance Threshold,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.14 |
174-
| 3 | SimpleImputer,Variance Threshold,OneHotEncoder,MinMaxScaler,PowerTransformer | embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.12 |
175-
| 4 | SimpleImputer,Variance Threshold,OneHotEncoder,Normalizer,PowerTransformer | embedding,ResNetBackbone,FullyConnectedHead,nn.Sequential | 0.1 |
176-
| 5 | None | SVMLearner | 0.08 |
177-
| 6 | SimpleImputer,Variance Threshold,NoEncoder,NoScaler,TruncSVD | no embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.06 |
178-
| 7 | None | RFLearner | 0.06 |
179-
| 8 | None | ETLearner | 0.02 |
180-
| 9 | SimpleImputer,Variance Threshold,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
168+
{'accuracy': 0.8497109826589595}
169+
| | Preprocessing | Estimator | Weight |
170+
|---:|:--------------------------------------------------------------------------------------|:-------------------------------------------------------------------|---------:|
171+
| 0 | SimpleImputer,Variance Threshold,NoEncoder,PowerTransformer,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.14 |
172+
| 1 | SimpleImputer,Variance Threshold,NoEncoder,MinMaxScaler,KitchenSink | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.12 |
173+
| 2 | None | CBLearner | 0.12 |
174+
| 3 | None | SVMLearner | 0.12 |
175+
| 4 | None | RFLearner | 0.08 |
176+
| 5 | SimpleImputer,Variance Threshold,NoEncoder,MinMaxScaler,NoFeaturePreprocessing | no embedding,MLPBackbone,FullyConnectedHead,nn.Sequential | 0.06 |
177+
| 6 | None | KNNLearner | 0.06 |
178+
| 7 | SimpleImputer,Variance Threshold,OneHotEncoder,QuantileTransformer,PolynomialFeatures | embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
179+
| 8 | SimpleImputer,Variance Threshold,OneHotEncoder,MinMaxScaler,PolynomialFeatures | embedding,MLPBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
180+
| 9 | SimpleImputer,Variance Threshold,OneHotEncoder,NoScaler,PolynomialFeatures | no embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
181+
| 10 | None | LGBMLearner | 0.04 |
182+
| 11 | None | ETLearner | 0.04 |
183+
| 12 | SimpleImputer,Variance Threshold,OneHotEncoder,NoScaler,PolynomialFeatures | embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
184+
| 13 | SimpleImputer,Variance Threshold,OneHotEncoder,QuantileTransformer,PolynomialFeatures | no embedding,ResNetBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
185+
| 14 | SimpleImputer,Variance Threshold,NoEncoder,PowerTransformer,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
186+
| 15 | SimpleImputer,Variance Threshold,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
187+
| 16 | SimpleImputer,Variance Threshold,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
181188
autoPyTorch results:
182189
Dataset name: Australian
183190
Optimisation Metric: accuracy
184191
Best validation score: 0.8713450292397661
185-
Number of target algorithm runs: 29
186-
Number of successful target algorithm runs: 26
187-
Number of crashed target algorithm runs: 2
192+
Number of target algorithm runs: 26
193+
Number of successful target algorithm runs: 24
194+
Number of crashed target algorithm runs: 1
188195
Number of target algorithms that exceeded the time limit: 1
189196
Number of target algorithms that exceeded the memory limit: 0
190197
@@ -195,7 +202,7 @@ Print the final ensemble performance
195202
196203
.. rst-class:: sphx-glr-timing
197204

198-
**Total running time of the script:** ( 5 minutes 23.687 seconds)
205+
**Total running time of the script:** ( 5 minutes 22.134 seconds)
199206

200207

201208
.. _sphx_glr_download_examples_20_basics_example_tabular_classification.py:

development/_sources/examples/20_basics/example_tabular_regression.rst.txt

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Search for an ensemble of machine learning algorithms
125125
.. code-block:: none
126126
127127
128-
<autoPyTorch.api.tabular_regression.TabularRegressionTask object at 0x7f953db27760>
128+
<autoPyTorch.api.tabular_regression.TabularRegressionTask object at 0x7f5fe1484d90>
129129
130130
131131
@@ -159,20 +159,21 @@ Print the final ensemble performance
159159

160160
.. code-block:: none
161161
162-
{'r2': 0.9407884171054208}
163-
| | Preprocessing | Estimator | Weight |
164-
|---:|:-------------------------------------------------------------------------------------|:----------------------------------------------------------------|---------:|
165-
| 0 | None | CBLearner | 0.44 |
166-
| 1 | SimpleImputer,Variance Threshold,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.42 |
167-
| 2 | SimpleImputer,Variance Threshold,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.1 |
168-
| 3 | None | LGBMLearner | 0.04 |
162+
{'r2': 0.9408102126984811}
163+
| | Preprocessing | Estimator | Weight |
164+
|---:|:-------------------------------------------------------------------------------------|:-------------------------------------------------------------------|---------:|
165+
| 0 | None | CBLearner | 0.44 |
166+
| 1 | SimpleImputer,Variance Threshold,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.44 |
167+
| 2 | SimpleImputer,Variance Threshold,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.06 |
168+
| 3 | SimpleImputer,Variance Threshold,NoEncoder,RobustScaler,NoFeaturePreprocessing | no embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
169+
| 4 | SimpleImputer,Variance Threshold,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
169170
autoPyTorch results:
170-
Dataset name: 1b326a77-898e-11ec-87f5-056c45306849
171+
Dataset name: 41e1340b-8997-11ec-881e-d58abe4e22c6
171172
Optimisation Metric: r2
172173
Best validation score: 0.8670098636440993
173-
Number of target algorithm runs: 28
174-
Number of successful target algorithm runs: 24
175-
Number of crashed target algorithm runs: 3
174+
Number of target algorithm runs: 24
175+
Number of successful target algorithm runs: 23
176+
Number of crashed target algorithm runs: 0
176177
Number of target algorithms that exceeded the time limit: 1
177178
Number of target algorithms that exceeded the memory limit: 0
178179
@@ -183,7 +184,7 @@ Print the final ensemble performance
183184
184185
.. rst-class:: sphx-glr-timing
185186

186-
**Total running time of the script:** ( 5 minutes 30.214 seconds)
187+
**Total running time of the script:** ( 5 minutes 30.224 seconds)
187188

188189

189190
.. _sphx_glr_download_examples_20_basics_example_tabular_regression.py:

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

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

66
Computation times
77
=================
8-
**11:00.701** total execution time for **examples_20_basics** files:
8+
**10:57.864** total execution time for **examples_20_basics** files:
99

1010
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
11-
| :ref:`sphx_glr_examples_20_basics_example_tabular_regression.py` (``example_tabular_regression.py``) | 05:30.214 | 0.0 MB |
11+
| :ref:`sphx_glr_examples_20_basics_example_tabular_regression.py` (``example_tabular_regression.py``) | 05:30.224 | 0.0 MB |
1212
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
13-
| :ref:`sphx_glr_examples_20_basics_example_tabular_classification.py` (``example_tabular_classification.py``) | 05:23.687 | 0.0 MB |
13+
| :ref:`sphx_glr_examples_20_basics_example_tabular_classification.py` (``example_tabular_classification.py``) | 05:22.134 | 0.0 MB |
1414
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
15-
| :ref:`sphx_glr_examples_20_basics_example_image_classification.py` (``example_image_classification.py``) | 00:06.799 | 0.0 MB |
15+
| :ref:`sphx_glr_examples_20_basics_example_image_classification.py` (``example_image_classification.py``) | 00:05.506 | 0.0 MB |
1616
+--------------------------------------------------------------------------------------------------------------+-----------+--------+

0 commit comments

Comments
 (0)