Skip to content

Commit e24dcce

Browse files
author
Github Actions
committed
Ravin Kohli: [ADD] feature preprocessors from autosklearn (#378)
1 parent be4dd8f commit e24dcce

31 files changed

+332
-347
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: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,16 @@ Image Classification
8585
Pipeline Random Config:
8686
________________________________________
8787
Configuration(values={
88-
'image_augmenter:GaussianBlur:use_augmenter': False,
89-
'image_augmenter:GaussianNoise:sigma_offset': 2.016605350658349,
88+
'image_augmenter:GaussianBlur:sigma_min': 0.10327976032627761,
89+
'image_augmenter:GaussianBlur:sigma_offset': 0.45340318994125184,
90+
'image_augmenter:GaussianBlur:use_augmenter': True,
91+
'image_augmenter:GaussianNoise:sigma_offset': 0.643177287015827,
9092
'image_augmenter:GaussianNoise:use_augmenter': True,
9193
'image_augmenter:RandomAffine:use_augmenter': False,
92-
'image_augmenter:RandomCutout:p': 0.7728298341875102,
94+
'image_augmenter:RandomCutout:p': 0.58899963145322,
9395
'image_augmenter:RandomCutout:use_augmenter': True,
94-
'image_augmenter:Resize:use_augmenter': False,
95-
'image_augmenter:ZeroPadAndCrop:percent': 0.4990785598329858,
96+
'image_augmenter:Resize:use_augmenter': True,
97+
'image_augmenter:ZeroPadAndCrop:percent': 0.062191847988016136,
9698
'normalizer:__choice__': 'ImageNormalizer',
9799
})
98100

@@ -173,7 +175,7 @@ Image Classification
173175
174176
.. rst-class:: sphx-glr-timing
175177

176-
**Total running time of the script:** ( 0 minutes 8.510 seconds)
178+
**Total running time of the script:** ( 0 minutes 8.858 seconds)
177179

178180

179181
.. _sphx_glr_download_examples_20_basics_example_image_classification.py:

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

Lines changed: 17 additions & 14 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 0x7f444a4d0d90>
137+
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fdd8a34d640>
138138
139139
140140
@@ -168,22 +168,25 @@ Print the final ensemble performance
168168
{'accuracy': 0.861271676300578}
169169
| | Preprocessing | Estimator | Weight |
170170
|---:|:-------------------------------------------------------------------------------------------------|:----------------------------------------------------------------|---------:|
171-
| 0 | None | CBLearner | 0.66 |
172-
| 1 | SimpleImputer,Variance Threshold,NoCoalescer,NoEncoder,StandardScaler,TruncSVD | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.16 |
173-
| 2 | SimpleImputer,Variance Threshold,MinorityCoalescer,OneHotEncoder,StandardScaler,KernelPCA | embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.06 |
174-
| 3 | SimpleImputer,Variance Threshold,MinorityCoalescer,OneHotEncoder,Normalizer,Nystroem | no embedding,ResNetBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
175-
| 4 | SimpleImputer,Variance Threshold,NoCoalescer,OneHotEncoder,Normalizer,TruncSVD | embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
176-
| 5 | SimpleImputer,Variance Threshold,MinorityCoalescer,OneHotEncoder,StandardScaler,KernelPCA | embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
177-
| 6 | None | RFLearner | 0.02 |
178-
| 7 | SimpleImputer,Variance Threshold,NoCoalescer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
171+
| 0 | SimpleImputer,Variance Threshold,MinorityCoalescer,OneHotEncoder,QuantileTransformer,KitchenSink | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.24 |
172+
| 1 | SimpleImputer,Variance Threshold,NoCoalescer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.16 |
173+
| 2 | SimpleImputer,Variance Threshold,MinorityCoalescer,OneHotEncoder,NoScaler,KitchenSink | embedding,ResNetBackbone,FullyConnectedHead,nn.Sequential | 0.14 |
174+
| 3 | None | CBLearner | 0.1 |
175+
| 4 | None | SVMLearner | 0.08 |
176+
| 5 | SimpleImputer,Variance Threshold,MinorityCoalescer,OneHotEncoder,NoScaler,KitchenSink | embedding,ResNetBackbone,FullyConnectedHead,nn.Sequential | 0.06 |
177+
| 6 | SimpleImputer,Variance Threshold,MinorityCoalescer,OneHotEncoder,NoScaler,KitchenSink | embedding,ResNetBackbone,FullyConnectedHead,nn.Sequential | 0.06 |
178+
| 7 | SimpleImputer,Variance Threshold,NoCoalescer,OneHotEncoder,StandardScaler,SRC | embedding,MLPBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
179+
| 8 | None | LGBMLearner | 0.04 |
180+
| 9 | None | RFLearner | 0.04 |
181+
| 10 | None | KNNLearner | 0.04 |
179182
autoPyTorch results:
180183
Dataset name: Australian
181184
Optimisation Metric: accuracy
182185
Best validation score: 0.8713450292397661
183-
Number of target algorithm runs: 23
184-
Number of successful target algorithm runs: 20
185-
Number of crashed target algorithm runs: 2
186-
Number of target algorithms that exceeded the time limit: 1
186+
Number of target algorithm runs: 20
187+
Number of successful target algorithm runs: 18
188+
Number of crashed target algorithm runs: 0
189+
Number of target algorithms that exceeded the time limit: 2
187190
Number of target algorithms that exceeded the memory limit: 0
188191
189192
@@ -193,7 +196,7 @@ Print the final ensemble performance
193196
194197
.. rst-class:: sphx-glr-timing
195198

196-
**Total running time of the script:** ( 5 minutes 31.215 seconds)
199+
**Total running time of the script:** ( 5 minutes 27.922 seconds)
197200

198201

199202
.. _sphx_glr_download_examples_20_basics_example_tabular_classification.py:

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

Lines changed: 13 additions & 12 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 0x7f44e625f430>
128+
<autoPyTorch.api.tabular_regression.TabularRegressionTask object at 0x7fde27812430>
129129
130130
131131
@@ -159,21 +159,22 @@ Print the final ensemble performance
159159

160160
.. code-block:: none
161161
162-
{'r2': 0.9407884171054208}
162+
{'r2': 0.9412847640085195}
163163
| | Preprocessing | Estimator | Weight |
164164
|---:|:-------------------------------------------------------------------------------------------------|:----------------------------------------------------------------|---------:|
165-
| 0 | None | CBLearner | 0.44 |
166-
| 1 | SimpleImputer,Variance Threshold,NoCoalescer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.42 |
165+
| 0 | None | CBLearner | 0.46 |
166+
| 1 | SimpleImputer,Variance Threshold,NoCoalescer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.4 |
167167
| 2 | SimpleImputer,Variance Threshold,NoCoalescer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.1 |
168-
| 3 | None | LGBMLearner | 0.04 |
168+
| 3 | None | LGBMLearner | 0.02 |
169+
| 4 | SimpleImputer,Variance Threshold,NoCoalescer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
169170
autoPyTorch results:
170-
Dataset name: 6c9e9506-9a70-11ec-87d5-474e93987d34
171+
Dataset name: 0da2f587-9ae4-11ec-87e6-b1d9b8f13636
171172
Optimisation Metric: r2
172-
Best validation score: 0.8670098636440993
173-
Number of target algorithm runs: 24
174-
Number of successful target algorithm runs: 23
175-
Number of crashed target algorithm runs: 0
176-
Number of target algorithms that exceeded the time limit: 1
173+
Best validation score: 0.8669094525651709
174+
Number of target algorithm runs: 22
175+
Number of successful target algorithm runs: 17
176+
Number of crashed target algorithm runs: 3
177+
Number of target algorithms that exceeded the time limit: 2
177178
Number of target algorithms that exceeded the memory limit: 0
178179
179180
@@ -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 33.512 seconds)
187+
**Total running time of the script:** ( 5 minutes 49.239 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:13.237** total execution time for **examples_20_basics** files:
8+
**11:26.018** 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:33.512 | 0.0 MB |
11+
| :ref:`sphx_glr_examples_20_basics_example_tabular_regression.py` (``example_tabular_regression.py``) | 05:49.239 | 0.0 MB |
1212
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
13-
| :ref:`sphx_glr_examples_20_basics_example_tabular_classification.py` (``example_tabular_classification.py``) | 05:31.215 | 0.0 MB |
13+
| :ref:`sphx_glr_examples_20_basics_example_tabular_classification.py` (``example_tabular_classification.py``) | 05:27.922 | 0.0 MB |
1414
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
15-
| :ref:`sphx_glr_examples_20_basics_example_image_classification.py` (``example_image_classification.py``) | 00:08.510 | 0.0 MB |
15+
| :ref:`sphx_glr_examples_20_basics_example_image_classification.py` (``example_image_classification.py``) | 00:08.858 | 0.0 MB |
1616
+--------------------------------------------------------------------------------------------------------------+-----------+--------+

0 commit comments

Comments
 (0)