Skip to content

Commit cddf25e

Browse files
author
Github Actions
committed
Ravin Kohli: [FIX] Remove redundant categorical imputation (#375)
1 parent 9fac462 commit cddf25e

31 files changed

Lines changed: 341 additions & 361 deletions
Binary file not shown.
Binary file not shown.
3.02 KB
Loading
-309 Bytes
Loading
-136 Bytes
Loading
-443 Bytes
Loading

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ Image Classification
8787
Configuration(values={
8888
'image_augmenter:GaussianBlur:use_augmenter': False,
8989
'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,
90+
'image_augmenter:RandomAffine:rotate': 341,
91+
'image_augmenter:RandomAffine:scale_offset': 0.395298372732557,
92+
'image_augmenter:RandomAffine:shear': 23,
93+
'image_augmenter:RandomAffine:translate_percent_offset': 0.30691858738922473,
9494
'image_augmenter:RandomAffine:use_augmenter': True,
9595
'image_augmenter:RandomCutout:use_augmenter': False,
9696
'image_augmenter:Resize:use_augmenter': True,
97-
'image_augmenter:ZeroPadAndCrop:percent': 0.058124084899998096,
97+
'image_augmenter:ZeroPadAndCrop:percent': 0.1233844931832313,
9898
'normalizer:__choice__': 'NoNormalizer',
9999
})
100100

@@ -175,7 +175,7 @@ Image Classification
175175
176176
.. rst-class:: sphx-glr-timing
177177

178-
**Total running time of the script:** ( 0 minutes 5.506 seconds)
178+
**Total running time of the script:** ( 0 minutes 5.581 seconds)
179179

180180

181181
.. _sphx_glr_download_examples_20_basics_example_image_classification.py:

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

Lines changed: 21 additions & 25 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 0x7f5f46714070>
137+
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7f6d20d85100>
138138
139139
140140
@@ -166,33 +166,29 @@ Print the final ensemble performance
166166
.. code-block:: none
167167
168168
{'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 |
169+
| | Preprocessing | Estimator | Weight |
170+
|---:|:-------------------------------------------------------------------------------------|:-------------------------------------------------------------------|---------:|
171+
| 0 | SimpleImputer,Variance Threshold,NoEncoder,MinMaxScaler,Nystroem | no embedding,ResNetBackbone,FullyConnectedHead,nn.Sequential | 0.18 |
172+
| 1 | SimpleImputer,Variance Threshold,NoEncoder,NoScaler,KitchenSink | no embedding,MLPBackbone,FullyConnectedHead,nn.Sequential | 0.16 |
173+
| 2 | SimpleImputer,Variance Threshold,NoEncoder,NoScaler,KitchenSink | no embedding,MLPBackbone,FullyConnectedHead,nn.Sequential | 0.12 |
174+
| 3 | None | CBLearner | 0.12 |
175+
| 4 | None | SVMLearner | 0.1 |
176+
| 5 | None | RFLearner | 0.06 |
177+
| 6 | None | KNNLearner | 0.06 |
178+
| 7 | SimpleImputer,Variance Threshold,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.06 |
179+
| 8 | SimpleImputer,Variance Threshold,NoEncoder,StandardScaler,PolynomialFeatures | no embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
180+
| 9 | None | LGBMLearner | 0.04 |
181+
| 10 | SimpleImputer,Variance Threshold,OneHotEncoder,RobustScaler,KernelPCA | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
182+
| 11 | SimpleImputer,Variance Threshold,OneHotEncoder,QuantileTransformer,KitchenSink | embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
183+
| 12 | None | ETLearner | 0.02 |
188184
autoPyTorch results:
189185
Dataset name: Australian
190186
Optimisation Metric: accuracy
191187
Best validation score: 0.8713450292397661
192-
Number of target algorithm runs: 26
193-
Number of successful target algorithm runs: 24
194-
Number of crashed target algorithm runs: 1
195-
Number of target algorithms that exceeded the time limit: 1
188+
Number of target algorithm runs: 24
189+
Number of successful target algorithm runs: 22
190+
Number of crashed target algorithm runs: 0
191+
Number of target algorithms that exceeded the time limit: 2
196192
Number of target algorithms that exceeded the memory limit: 0
197193
198194
@@ -202,7 +198,7 @@ Print the final ensemble performance
202198
203199
.. rst-class:: sphx-glr-timing
204200

205-
**Total running time of the script:** ( 5 minutes 22.134 seconds)
201+
**Total running time of the script:** ( 5 minutes 26.257 seconds)
206202

207203

208204
.. _sphx_glr_download_examples_20_basics_example_tabular_classification.py:

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

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

160160
.. code-block:: none
161161
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 |
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 |
170169
autoPyTorch results:
171-
Dataset name: 41e1340b-8997-11ec-881e-d58abe4e22c6
170+
Dataset name: 9c684c0d-89ce-11ec-8818-a1cc4bcb5e23
172171
Optimisation Metric: r2
173172
Best validation score: 0.8670098636440993
174-
Number of target algorithm runs: 24
175-
Number of successful target algorithm runs: 23
173+
Number of target algorithm runs: 29
174+
Number of successful target algorithm runs: 29
176175
Number of crashed target algorithm runs: 0
177-
Number of target algorithms that exceeded the time limit: 1
176+
Number of target algorithms that exceeded the time limit: 0
178177
Number of target algorithms that exceeded the memory limit: 0
179178
180179
@@ -184,7 +183,7 @@ Print the final ensemble performance
184183
185184
.. rst-class:: sphx-glr-timing
186185

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

189188

190189
.. _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-
**10:57.864** total execution time for **examples_20_basics** files:
8+
**11:02.317** 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.224 | 0.0 MB |
11+
| :ref:`sphx_glr_examples_20_basics_example_tabular_regression.py` (``example_tabular_regression.py``) | 05:30.478 | 0.0 MB |
1212
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
13-
| :ref:`sphx_glr_examples_20_basics_example_tabular_classification.py` (``example_tabular_classification.py``) | 05:22.134 | 0.0 MB |
13+
| :ref:`sphx_glr_examples_20_basics_example_tabular_classification.py` (``example_tabular_classification.py``) | 05:26.257 | 0.0 MB |
1414
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
15-
| :ref:`sphx_glr_examples_20_basics_example_image_classification.py` (``example_image_classification.py``) | 00:05.506 | 0.0 MB |
15+
| :ref:`sphx_glr_examples_20_basics_example_image_classification.py` (``example_image_classification.py``) | 00:05.581 | 0.0 MB |
1616
+--------------------------------------------------------------------------------------------------------------+-----------+--------+

0 commit comments

Comments
 (0)