Skip to content

Commit b65ba00

Browse files
author
Github Actions
committed
nabenabe0928: [enhance] Increase the coverage (#336)
1 parent 20f8d79 commit b65ba00

26 files changed

+379
-463
lines changed
Binary file not shown.
Binary file not shown.
1.09 KB
Loading
980 Bytes
Loading
2 Bytes
Loading

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

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,23 @@ Image Classification
8686
________________________________________
8787
Configuration:
8888
image_augmenter:GaussianBlur:use_augmenter, Value: False
89-
image_augmenter:GaussianNoise:sigma_offset, Value: 2.9187627000740353
90-
image_augmenter:GaussianNoise:use_augmenter, Value: True
91-
image_augmenter:RandomAffine:use_augmenter, Value: False
92-
image_augmenter:RandomCutout:p, Value: 0.9740940106250766
93-
image_augmenter:RandomCutout:use_augmenter, Value: True
89+
image_augmenter:GaussianNoise:use_augmenter, Value: False
90+
image_augmenter:RandomAffine:rotate, Value: 39
91+
image_augmenter:RandomAffine:scale_offset, Value: 0.37420105043067436
92+
image_augmenter:RandomAffine:shear, Value: 20
93+
image_augmenter:RandomAffine:translate_percent_offset, Value: 0.20635900393110546
94+
image_augmenter:RandomAffine:use_augmenter, Value: True
95+
image_augmenter:RandomCutout:use_augmenter, Value: False
9496
image_augmenter:Resize:use_augmenter, Value: False
95-
image_augmenter:ZeroPadAndCrop:percent, Value: 0.3379048205724533
96-
normalizer:__choice__, Value: 'NoNormalizer'
97+
image_augmenter:ZeroPadAndCrop:percent, Value: 0.2513656933857603
98+
normalizer:__choice__, Value: 'ImageNormalizer'
9799

98100
Fitting the pipeline...
99101
________________________________________
100102
ImageClassificationPipeline
101103
________________________________________
102104
0-) normalizer:
103-
NoNormalizer
105+
ImageNormalizer
104106

105107
1-) preprocessing:
106108
EarlyPreprocessing
@@ -172,7 +174,7 @@ Image Classification
172174
173175
.. rst-class:: sphx-glr-timing
174176

175-
**Total running time of the script:** ( 0 minutes 8.728 seconds)
177+
**Total running time of the script:** ( 0 minutes 5.965 seconds)
176178

177179

178180
.. _sphx_glr_download_examples_20_basics_example_image_classification.py:

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

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Search for an ensemble of machine learning algorithms
133133
.. code-block:: none
134134
135135
136-
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fd84a7ed670>
136+
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7f23518d0130>
137137
138138
139139
@@ -162,7 +162,7 @@ Print the final ensemble performance
162162

163163
.. code-block:: none
164164
165-
<smac.runhistory.runhistory.RunHistory object at 0x7fd84a7edc40> [TrajEntry(train_perf=2147483648, incumbent_id=1, incumbent=Configuration:
165+
<smac.runhistory.runhistory.RunHistory object at 0x7f22b9279af0> [TrajEntry(train_perf=2147483648, incumbent_id=1, incumbent=Configuration:
166166
data_loader:batch_size, Value: 64
167167
encoder:__choice__, Value: 'OneHotEncoder'
168168
feature_preprocessor:__choice__, Value: 'NoFeaturePreprocessor'
@@ -194,7 +194,7 @@ Print the final ensemble performance
194194
scaler:__choice__, Value: 'StandardScaler'
195195
trainer:StandardTrainer:weighted_loss, Value: True
196196
trainer:__choice__, Value: 'StandardTrainer'
197-
, ta_runs=0, ta_time_used=0.0, wallclock_time=0.0013194084167480469, budget=0), TrajEntry(train_perf=0.1578947368421053, incumbent_id=1, incumbent=Configuration:
197+
, ta_runs=0, ta_time_used=0.0, wallclock_time=0.001338958740234375, budget=0), TrajEntry(train_perf=0.1578947368421053, incumbent_id=1, incumbent=Configuration:
198198
data_loader:batch_size, Value: 64
199199
encoder:__choice__, Value: 'OneHotEncoder'
200200
feature_preprocessor:__choice__, Value: 'NoFeaturePreprocessor'
@@ -226,7 +226,7 @@ Print the final ensemble performance
226226
scaler:__choice__, Value: 'StandardScaler'
227227
trainer:StandardTrainer:weighted_loss, Value: True
228228
trainer:__choice__, Value: 'StandardTrainer'
229-
, ta_runs=1, ta_time_used=4.939751625061035, wallclock_time=5.972339868545532, budget=5.555555555555555), TrajEntry(train_perf=0.14035087719298245, incumbent_id=2, incumbent=Configuration:
229+
, ta_runs=1, ta_time_used=3.8828110694885254, wallclock_time=4.918331861495972, budget=5.555555555555555), TrajEntry(train_perf=0.14035087719298245, incumbent_id=2, incumbent=Configuration:
230230
data_loader:batch_size, Value: 170
231231
encoder:__choice__, Value: 'NoEncoder'
232232
feature_preprocessor:Nystroem:kernel, Value: 'cosine'
@@ -260,32 +260,33 @@ Print the final ensemble performance
260260
trainer:MixUpTrainer:alpha, Value: 0.758019642405335
261261
trainer:MixUpTrainer:weighted_loss, Value: False
262262
trainer:__choice__, Value: 'MixUpTrainer'
263-
, ta_runs=15, ta_time_used=163.56785583496094, wallclock_time=220.1450080871582, budget=50.0)]
263+
, ta_runs=15, ta_time_used=124.9534661769867, wallclock_time=180.62118673324585, budget=50.0)]
264264
{'accuracy': 0.8554913294797688}
265265
| | Preprocessing | Estimator | Weight |
266266
|---:|:------------------------------------------------------------------|:----------------------------------------------------------------|---------:|
267-
| 0 | SimpleImputer,OneHotEncoder,Normalizer,KernelPCA | embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.18 |
268-
| 1 | None | KNNLearner | 0.16 |
269-
| 2 | None | SVMLearner | 0.12 |
270-
| 3 | None | CBLearner | 0.1 |
271-
| 4 | SimpleImputer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.08 |
272-
| 5 | SimpleImputer,OneHotEncoder,Normalizer,PowerTransformer | embedding,ResNetBackbone,FullyConnectedHead,nn.Sequential | 0.06 |
273-
| 6 | None | RFLearner | 0.06 |
274-
| 7 | SimpleImputer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.06 |
275-
| 8 | SimpleImputer,OneHotEncoder,MinMaxScaler,PowerTransformer | embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
276-
| 9 | SimpleImputer,NoEncoder,Normalizer,Nystroem | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
277-
| 10 | SimpleImputer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
278-
| 11 | SimpleImputer,OneHotEncoder,Normalizer,TruncSVD | embedding,MLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
279-
| 12 | SimpleImputer,OneHotEncoder,MinMaxScaler,TruncSVD | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
280-
| 13 | None | ETLearner | 0.02 |
267+
| 0 | None | CBLearner | 0.16 |
268+
| 1 | SimpleImputer,OneHotEncoder,MinMaxScaler,PowerTransformer | embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.14 |
269+
| 2 | None | KNNLearner | 0.12 |
270+
| 3 | SimpleImputer,OneHotEncoder,Normalizer,KernelPCA | embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.1 |
271+
| 4 | SimpleImputer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.1 |
272+
| 5 | SimpleImputer,OneHotEncoder,Normalizer,PowerTransformer | embedding,ResNetBackbone,FullyConnectedHead,nn.Sequential | 0.08 |
273+
| 6 | None | SVMLearner | 0.08 |
274+
| 7 | None | RFLearner | 0.04 |
275+
| 8 | SimpleImputer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
276+
| 9 | SimpleImputer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
277+
| 10 | SimpleImputer,OneHotEncoder,Normalizer,TruncSVD | embedding,MLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
278+
| 11 | SimpleImputer,OneHotEncoder,MinMaxScaler,TruncSVD | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
279+
| 12 | SimpleImputer,NoEncoder,Normalizer,Nystroem | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
280+
| 13 | SimpleImputer,NoEncoder,Normalizer,Nystroem | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
281+
| 14 | None | ETLearner | 0.02 |
281282
282283
283284
284285
285286
286287
.. rst-class:: sphx-glr-timing
287288

288-
**Total running time of the script:** ( 5 minutes 25.958 seconds)
289+
**Total running time of the script:** ( 5 minutes 43.592 seconds)
289290

290291

291292
.. _sphx_glr_download_examples_20_basics_example_tabular_classification.py:

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

Lines changed: 6 additions & 6 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 0x7fd8ed4f9ca0>
128+
<autoPyTorch.api.tabular_regression.TabularRegressionTask object at 0x7f235be45ca0>
129129
130130
131131
@@ -157,7 +157,7 @@ Print the final ensemble performance
157157

158158
.. code-block:: none
159159
160-
<smac.runhistory.runhistory.RunHistory object at 0x7fd8d5c37790> [TrajEntry(train_perf=2147483648, incumbent_id=1, incumbent=Configuration:
160+
<smac.runhistory.runhistory.RunHistory object at 0x7f2351b60fa0> [TrajEntry(train_perf=2147483648, incumbent_id=1, incumbent=Configuration:
161161
data_loader:batch_size, Value: 64
162162
encoder:__choice__, Value: 'OneHotEncoder'
163163
feature_preprocessor:__choice__, Value: 'NoFeaturePreprocessor'
@@ -188,7 +188,7 @@ Print the final ensemble performance
188188
optimizer:__choice__, Value: 'AdamOptimizer'
189189
scaler:__choice__, Value: 'StandardScaler'
190190
trainer:__choice__, Value: 'StandardTrainer'
191-
, ta_runs=0, ta_time_used=0.0, wallclock_time=0.0010807514190673828, budget=0), TrajEntry(train_perf=0.30855378234329356, incumbent_id=1, incumbent=Configuration:
191+
, ta_runs=0, ta_time_used=0.0, wallclock_time=0.0012862682342529297, budget=0), TrajEntry(train_perf=0.3195903909944855, incumbent_id=1, incumbent=Configuration:
192192
data_loader:batch_size, Value: 64
193193
encoder:__choice__, Value: 'OneHotEncoder'
194194
feature_preprocessor:__choice__, Value: 'NoFeaturePreprocessor'
@@ -219,8 +219,8 @@ Print the final ensemble performance
219219
optimizer:__choice__, Value: 'AdamOptimizer'
220220
scaler:__choice__, Value: 'StandardScaler'
221221
trainer:__choice__, Value: 'StandardTrainer'
222-
, ta_runs=1, ta_time_used=3.0296387672424316, wallclock_time=4.0609352588653564, budget=5.555555555555555)]
223-
{'r2': 0.944631023189658}
222+
, ta_runs=1, ta_time_used=2.2380120754241943, wallclock_time=3.2684011459350586, budget=5.555555555555555)]
223+
{'r2': 0.9445248186059718}
224224
| | Preprocessing | Estimator | Weight |
225225
|---:|:------------------------------------------------------------------|:----------------------------------------------------------------|---------:|
226226
| 0 | SimpleImputer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.44 |
@@ -234,7 +234,7 @@ Print the final ensemble performance
234234
235235
.. rst-class:: sphx-glr-timing
236236

237-
**Total running time of the script:** ( 5 minutes 44.149 seconds)
237+
**Total running time of the script:** ( 5 minutes 58.839 seconds)
238238

239239

240240
.. _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:18.834** total execution time for **examples_20_basics** files:
8+
**11:48.397** 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:44.149 | 0.0 MB |
11+
| :ref:`sphx_glr_examples_20_basics_example_tabular_regression.py` (``example_tabular_regression.py``) | 05:58.839 | 0.0 MB |
1212
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
13-
| :ref:`sphx_glr_examples_20_basics_example_tabular_classification.py` (``example_tabular_classification.py``) | 05:25.958 | 0.0 MB |
13+
| :ref:`sphx_glr_examples_20_basics_example_tabular_classification.py` (``example_tabular_classification.py``) | 05:43.592 | 0.0 MB |
1414
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
15-
| :ref:`sphx_glr_examples_20_basics_example_image_classification.py` (``example_image_classification.py``) | 00:08.728 | 0.0 MB |
15+
| :ref:`sphx_glr_examples_20_basics_example_image_classification.py` (``example_image_classification.py``) | 00:05.965 | 0.0 MB |
1616
+--------------------------------------------------------------------------------------------------------------+-----------+--------+

0 commit comments

Comments
 (0)