Skip to content

Commit f002c93

Browse files
author
Github Actions
committed
nabenabe0928: [feat] Add __str__ to autoPyTorchEnum (#405)
1 parent e24dcce commit f002c93

31 files changed

+177
-169
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: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,17 @@ Image Classification
8585
Pipeline Random Config:
8686
________________________________________
8787
Configuration(values={
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,
92-
'image_augmenter:GaussianNoise:use_augmenter': True,
93-
'image_augmenter:RandomAffine:use_augmenter': False,
94-
'image_augmenter:RandomCutout:p': 0.58899963145322,
88+
'image_augmenter:GaussianBlur:use_augmenter': False,
89+
'image_augmenter:GaussianNoise:use_augmenter': False,
90+
'image_augmenter:RandomAffine:rotate': 237,
91+
'image_augmenter:RandomAffine:scale_offset': 0.32734086551151986,
92+
'image_augmenter:RandomAffine:shear': 43,
93+
'image_augmenter:RandomAffine:translate_percent_offset': 0.2150833219469362,
94+
'image_augmenter:RandomAffine:use_augmenter': True,
95+
'image_augmenter:RandomCutout:p': 0.6425251463645631,
9596
'image_augmenter:RandomCutout:use_augmenter': True,
96-
'image_augmenter:Resize:use_augmenter': True,
97-
'image_augmenter:ZeroPadAndCrop:percent': 0.062191847988016136,
97+
'image_augmenter:Resize:use_augmenter': False,
98+
'image_augmenter:ZeroPadAndCrop:percent': 0.2638607299100123,
9899
'normalizer:__choice__': 'ImageNormalizer',
99100
})
100101

@@ -175,7 +176,7 @@ Image Classification
175176
176177
.. rst-class:: sphx-glr-timing
177178

178-
**Total running time of the script:** ( 0 minutes 8.858 seconds)
179+
**Total running time of the script:** ( 0 minutes 8.801 seconds)
179180

180181

181182
.. _sphx_glr_download_examples_20_basics_example_image_classification.py:

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

Lines changed: 2 additions & 2 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 0x7fdd8a34d640>
137+
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fcb49398130>
138138
139139
140140
@@ -196,7 +196,7 @@ Print the final ensemble performance
196196
197197
.. rst-class:: sphx-glr-timing
198198

199-
**Total running time of the script:** ( 5 minutes 27.922 seconds)
199+
**Total running time of the script:** ( 5 minutes 32.091 seconds)
200200

201201

202202
.. _sphx_glr_download_examples_20_basics_example_tabular_classification.py:

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

Lines changed: 5 additions & 5 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 0x7fde27812430>
128+
<autoPyTorch.api.tabular_regression.TabularRegressionTask object at 0x7fcbe670c430>
129129
130130
131131
@@ -168,13 +168,13 @@ Print the final ensemble performance
168168
| 3 | None | LGBMLearner | 0.02 |
169169
| 4 | SimpleImputer,Variance Threshold,NoCoalescer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
170170
autoPyTorch results:
171-
Dataset name: 0da2f587-9ae4-11ec-87e6-b1d9b8f13636
171+
Dataset name: 3f905480-9ba1-11ec-87e5-c7420ab3e9b2
172172
Optimisation Metric: r2
173173
Best validation score: 0.8669094525651709
174-
Number of target algorithm runs: 22
174+
Number of target algorithm runs: 23
175175
Number of successful target algorithm runs: 17
176176
Number of crashed target algorithm runs: 3
177-
Number of target algorithms that exceeded the time limit: 2
177+
Number of target algorithms that exceeded the time limit: 3
178178
Number of target algorithms that exceeded the memory limit: 0
179179
180180
@@ -184,7 +184,7 @@ Print the final ensemble performance
184184
185185
.. rst-class:: sphx-glr-timing
186186

187-
**Total running time of the script:** ( 5 minutes 49.239 seconds)
187+
**Total running time of the script:** ( 5 minutes 55.597 seconds)
188188

189189

190190
.. _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:26.018** total execution time for **examples_20_basics** files:
8+
**11:36.489** 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:49.239 | 0.0 MB |
11+
| :ref:`sphx_glr_examples_20_basics_example_tabular_regression.py` (``example_tabular_regression.py``) | 05:55.597 | 0.0 MB |
1212
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
13-
| :ref:`sphx_glr_examples_20_basics_example_tabular_classification.py` (``example_tabular_classification.py``) | 05:27.922 | 0.0 MB |
13+
| :ref:`sphx_glr_examples_20_basics_example_tabular_classification.py` (``example_tabular_classification.py``) | 05:32.091 | 0.0 MB |
1414
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
15-
| :ref:`sphx_glr_examples_20_basics_example_image_classification.py` (``example_image_classification.py``) | 00:08.858 | 0.0 MB |
15+
| :ref:`sphx_glr_examples_20_basics_example_image_classification.py` (``example_image_classification.py``) | 00:08.801 | 0.0 MB |
1616
+--------------------------------------------------------------------------------------------------------------+-----------+--------+

development/_sources/examples/40_advanced/example_custom_configuration_space.rst.txt

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Search for an ensemble of machine learning algorithms
163163
.. code-block:: none
164164
165165
166-
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fdd898c7e80>
166+
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fcb484bb1c0>
167167
168168
169169
@@ -203,13 +203,13 @@ Print the final ensemble performance
203203
| 3 | SimpleImputer,Variance Threshold,NoCoalescer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,MLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
204204
| 4 | SimpleImputer,Variance Threshold,NoCoalescer,OneHotEncoder,RobustScaler,KitchenSink | embedding,ResNetBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
205205
autoPyTorch results:
206-
Dataset name: b63068fd-9ae7-11ec-87e6-b1d9b8f13636
206+
Dataset name: ee97fa70-9ba4-11ec-87e5-c7420ab3e9b2
207207
Optimisation Metric: accuracy
208208
Best validation score: 0.8654970760233918
209209
Number of target algorithm runs: 14
210-
Number of successful target algorithm runs: 13
210+
Number of successful target algorithm runs: 14
211211
Number of crashed target algorithm runs: 0
212-
Number of target algorithms that exceeded the time limit: 1
212+
Number of target algorithms that exceeded the time limit: 0
213213
Number of target algorithms that exceeded the memory limit: 0
214214
215215
@@ -268,7 +268,7 @@ Search for an ensemble of machine learning algorithms
268268
.. code-block:: none
269269
270270
271-
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fdd88e7b580>
271+
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fcb48ec1df0>
272272
273273
274274
@@ -298,23 +298,25 @@ Print the final ensemble performance
298298

299299
.. code-block:: none
300300
301-
{'accuracy': 0.861271676300578}
301+
{'accuracy': 0.8728323699421965}
302302
| | Preprocessing | Estimator | Weight |
303303
|---:|:--------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------|---------:|
304-
| 0 | SimpleImputer,Variance Threshold,NoCoalescer,NoEncoder,QuantileTransformer,LinearSVC Preprocessor | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.6 |
305-
| 1 | None | CBLearner | 0.12 |
306-
| 2 | SimpleImputer,Variance Threshold,MinorityCoalescer,NoEncoder,StandardScaler,FeatureAgglomeration | no embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.08 |
307-
| 3 | None | RFLearner | 0.06 |
308-
| 4 | SimpleImputer,Variance Threshold,MinorityCoalescer,NoEncoder,QuantileTransformer,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
309-
| 5 | None | KNNLearner | 0.04 |
310-
| 6 | SimpleImputer,Variance Threshold,NoCoalescer,NoEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
311-
| 7 | None | SVMLearner | 0.02 |
304+
| 0 | SimpleImputer,Variance Threshold,NoCoalescer,NoEncoder,QuantileTransformer,LinearSVC Preprocessor | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.38 |
305+
| 1 | SimpleImputer,Variance Threshold,MinorityCoalescer,NoEncoder,StandardScaler,FeatureAgglomeration | no embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.14 |
306+
| 2 | None | KNNLearner | 0.12 |
307+
| 3 | SimpleImputer,Variance Threshold,NoCoalescer,NoEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.08 |
308+
| 4 | None | ETLearner | 0.06 |
309+
| 5 | None | SVMLearner | 0.06 |
310+
| 6 | SimpleImputer,Variance Threshold,MinorityCoalescer,NoEncoder,QuantileTransformer,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
311+
| 7 | None | LGBMLearner | 0.04 |
312+
| 8 | None | CBLearner | 0.04 |
313+
| 9 | None | RFLearner | 0.04 |
312314
autoPyTorch results:
313-
Dataset name: 238dbf33-9ae8-11ec-87e6-b1d9b8f13636
315+
Dataset name: 5633f366-9ba5-11ec-87e5-c7420ab3e9b2
314316
Optimisation Metric: accuracy
315317
Best validation score: 0.8654970760233918
316-
Number of target algorithm runs: 15
317-
Number of successful target algorithm runs: 13
318+
Number of target algorithm runs: 16
319+
Number of successful target algorithm runs: 14
318320
Number of crashed target algorithm runs: 1
319321
Number of target algorithms that exceeded the time limit: 1
320322
Number of target algorithms that exceeded the memory limit: 0
@@ -326,7 +328,7 @@ Print the final ensemble performance
326328
327329
.. rst-class:: sphx-glr-timing
328330

329-
**Total running time of the script:** ( 5 minutes 54.591 seconds)
331+
**Total running time of the script:** ( 5 minutes 44.992 seconds)
330332

331333

332334
.. _sphx_glr_download_examples_40_advanced_example_custom_configuration_space.py:

development/_sources/examples/40_advanced/example_parallel_n_jobs.rst.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ with AutoPyTorch
3838
3939
{'accuracy': 0.8497109826589595}
4040
autoPyTorch results:
41-
Dataset name: c2e42c9d-9ae6-11ec-87e6-b1d9b8f13636
41+
Dataset name: fd089d7e-9ba3-11ec-87e5-c7420ab3e9b2
4242
Optimisation Metric: accuracy
4343
Best validation score: 0.8713450292397661
44-
Number of target algorithm runs: 36
45-
Number of successful target algorithm runs: 29
46-
Number of crashed target algorithm runs: 6
44+
Number of target algorithm runs: 39
45+
Number of successful target algorithm runs: 31
46+
Number of crashed target algorithm runs: 7
4747
Number of target algorithms that exceeded the time limit: 1
4848
Number of target algorithms that exceeded the memory limit: 0
4949
@@ -121,7 +121,7 @@ with AutoPyTorch
121121
122122
.. rst-class:: sphx-glr-timing
123123

124-
**Total running time of the script:** ( 5 minutes 38.896 seconds)
124+
**Total running time of the script:** ( 5 minutes 32.939 seconds)
125125

126126

127127
.. _sphx_glr_download_examples_40_advanced_example_parallel_n_jobs.py:

development/_sources/examples/40_advanced/example_plot_over_time.rst.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ Task Definition
8989

9090
.. code-block:: none
9191
92-
[0 1 0 1 0 0 1 1 0 1 1 0 1 0 1 1 1 0 1 1 0 0 0 0 1 0 0 1 1 1 0 0 0 1 0 1 0
93-
0 1 0 1 0 1 1 1 1 0 1 0 0 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 0 1 0 0 1 0 0 1 1
94-
0 1 1 1 1 0 1 0 0 0 1 0 1 0 0 1 1 0 1 0 1 1 0 1 0 1]
92+
[1 0 0 1 1 0 1 0 1 0 0 0 1 0 0 0 0 1 0 1 0 0 0 1 1 1 0 0 0 0 1 0 1 0 0 0 1
93+
1 1 1 0 0 0 1 0 1 1 1 0 0 1 1 0 1 0 1 1 0 0 0 1 1 1 0 0 1 1 0 1 1 0 1 0 1
94+
0 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 0 0 0 1 0 0 0 1]
9595
9696
9797
@@ -121,7 +121,7 @@ API Instantiation and Searching
121121
.. code-block:: none
122122
123123
124-
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fdd88af0e50>
124+
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fcb47a3cc70>
125125
126126
127127
@@ -186,7 +186,7 @@ _, ax = plt.subplots() <=== You can feed it to post-process the figure.
186186

187187
.. rst-class:: sphx-glr-timing
188188

189-
**Total running time of the script:** ( 2 minutes 27.081 seconds)
189+
**Total running time of the script:** ( 2 minutes 38.236 seconds)
190190

191191

192192
.. _sphx_glr_download_examples_40_advanced_example_plot_over_time.py:

development/_sources/examples/40_advanced/example_resampling_strategy.rst.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Search for an ensemble of machine learning algorithms
139139
.. code-block:: none
140140
141141
142-
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fdd887efb50>
142+
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fcbdc95a250>
143143
144144
145145
@@ -180,11 +180,11 @@ Print the final ensemble performance
180180
| 3 | None | ETLearner | 0.04 |
181181
| 4 | None | RFLearner | 0.02 |
182182
autoPyTorch results:
183-
Dataset name: 89bc25ba-9ae8-11ec-87e6-b1d9b8f13636
183+
Dataset name: bc693a22-9ba5-11ec-87e5-c7420ab3e9b2
184184
Optimisation Metric: accuracy
185185
Best validation score: 0.8654970760233918
186-
Number of target algorithm runs: 13
187-
Number of successful target algorithm runs: 11
186+
Number of target algorithm runs: 14
187+
Number of successful target algorithm runs: 12
188188
Number of crashed target algorithm runs: 1
189189
Number of target algorithms that exceeded the time limit: 1
190190
Number of target algorithms that exceeded the memory limit: 0
@@ -250,7 +250,7 @@ Search for an ensemble of machine learning algorithms
250250
.. code-block:: none
251251
252252
253-
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fdd89d408b0>
253+
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fcb4807d070>
254254
255255
256256
@@ -288,7 +288,7 @@ Print the final ensemble performance
288288
| 0 | None | TabularTraditionalModel | 0.98 |
289289
| 1 | None | TabularTraditionalModel | 0.02 |
290290
autoPyTorch results:
291-
Dataset name: f1a266fa-9ae8-11ec-87e6-b1d9b8f13636
291+
Dataset name: 2a965f67-9ba6-11ec-87e5-c7420ab3e9b2
292292
Optimisation Metric: accuracy
293293
Best validation score: 0.8742452475491833
294294
Number of target algorithm runs: 12
@@ -360,7 +360,7 @@ Search for an ensemble of machine learning algorithms
360360
.. code-block:: none
361361
362362
363-
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fdd887effd0>
363+
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fcb49021c40>
364364
365365
366366
@@ -400,11 +400,11 @@ Print the final ensemble performance
400400
| 3 | None | ETLearner | 0.08 |
401401
| 4 | None | RFLearner | 0.06 |
402402
autoPyTorch results:
403-
Dataset name: 6168cfba-9ae9-11ec-87e6-b1d9b8f13636
403+
Dataset name: 9e90662e-9ba6-11ec-87e5-c7420ab3e9b2
404404
Optimisation Metric: accuracy
405405
Best validation score: 0.847953216374269
406-
Number of target algorithm runs: 13
407-
Number of successful target algorithm runs: 11
406+
Number of target algorithm runs: 14
407+
Number of successful target algorithm runs: 12
408408
Number of crashed target algorithm runs: 1
409409
Number of target algorithms that exceeded the time limit: 1
410410
Number of target algorithms that exceeded the memory limit: 0
@@ -416,7 +416,7 @@ Print the final ensemble performance
416416
417417
.. rst-class:: sphx-glr-timing
418418

419-
**Total running time of the script:** ( 8 minutes 59.319 seconds)
419+
**Total running time of the script:** ( 9 minutes 8.712 seconds)
420420

421421

422422
.. _sphx_glr_download_examples_40_advanced_example_resampling_strategy.py:

development/_sources/examples/40_advanced/example_run_with_portfolio.rst.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Search for an ensemble of machine learning algorithms
131131
.. code-block:: none
132132
133133
134-
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fdd8a4c2340>
134+
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fcb48446070>
135135
136136
137137
@@ -177,11 +177,11 @@ Print the final ensemble performance
177177
| 9 | SimpleImputer,Variance Threshold,NoCoalescer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
178178
| 10 | SimpleImputer,Variance Threshold,NoCoalescer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
179179
autoPyTorch results:
180-
Dataset name: a21b5453-9ae5-11ec-87e6-b1d9b8f13636
180+
Dataset name: dad64c81-9ba2-11ec-87e5-c7420ab3e9b2
181181
Optimisation Metric: accuracy
182182
Best validation score: 0.8771929824561403
183-
Number of target algorithm runs: 25
184-
Number of successful target algorithm runs: 23
183+
Number of target algorithm runs: 26
184+
Number of successful target algorithm runs: 24
185185
Number of crashed target algorithm runs: 1
186186
Number of target algorithms that exceeded the time limit: 1
187187
Number of target algorithms that exceeded the memory limit: 0
@@ -193,7 +193,7 @@ Print the final ensemble performance
193193
194194
.. rst-class:: sphx-glr-timing
195195

196-
**Total running time of the script:** ( 5 minutes 36.838 seconds)
196+
**Total running time of the script:** ( 5 minutes 28.037 seconds)
197197

198198

199199
.. _sphx_glr_download_examples_40_advanced_example_run_with_portfolio.py:

0 commit comments

Comments
 (0)