Skip to content

Commit f7c29d1

Browse files
author
Github Actions
committed
Francisco Rivera Valverde: [ADD] Coverage calculation (#224)
1 parent 842537e commit f7c29d1

24 files changed

+591
-631
lines changed
Binary file not shown.
Binary file not shown.
Loading
Loading
Loading

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,26 +87,26 @@ Image Classification
8787
Pipeline Random Config:
8888
________________________________________
8989
Configuration:
90-
image_augmenter:GaussianBlur:use_augmenter, Value: False
91-
image_augmenter:GaussianNoise:sigma_offset, Value: 2.6558905363999727
92-
image_augmenter:GaussianNoise:use_augmenter, Value: True
93-
image_augmenter:RandomAffine:rotate, Value: 297
94-
image_augmenter:RandomAffine:scale_offset, Value: 0.10167631197409942
95-
image_augmenter:RandomAffine:shear, Value: 26
96-
image_augmenter:RandomAffine:translate_percent_offset, Value: 0.018225027710844
90+
image_augmenter:GaussianBlur:sigma_min, Value: 2.7815796172433904
91+
image_augmenter:GaussianBlur:sigma_offset, Value: 2.2162192719004334
92+
image_augmenter:GaussianBlur:use_augmenter, Value: True
93+
image_augmenter:GaussianNoise:use_augmenter, Value: False
94+
image_augmenter:RandomAffine:rotate, Value: 211
95+
image_augmenter:RandomAffine:scale_offset, Value: 0.1303552201986558
96+
image_augmenter:RandomAffine:shear, Value: 24
97+
image_augmenter:RandomAffine:translate_percent_offset, Value: 0.1470709970650069
9798
image_augmenter:RandomAffine:use_augmenter, Value: True
98-
image_augmenter:RandomCutout:p, Value: 0.9504486965250005
99-
image_augmenter:RandomCutout:use_augmenter, Value: True
100-
image_augmenter:Resize:use_augmenter, Value: False
101-
image_augmenter:ZeroPadAndCrop:percent, Value: 0.48642929026494963
102-
normalizer:__choice__, Value: 'NoNormalizer'
99+
image_augmenter:RandomCutout:use_augmenter, Value: False
100+
image_augmenter:Resize:use_augmenter, Value: True
101+
image_augmenter:ZeroPadAndCrop:percent, Value: 0.29994917149110223
102+
normalizer:__choice__, Value: 'ImageNormalizer'
103103

104104
Fitting the pipeline...
105105
________________________________________
106106
ImageClassificationPipeline
107107
________________________________________
108108
0-) normalizer:
109-
NoNormalizer
109+
ImageNormalizer
110110

111111
1-) preprocessing:
112112
EarlyPreprocessing
@@ -178,7 +178,7 @@ Image Classification
178178
179179
.. rst-class:: sphx-glr-timing
180180

181-
**Total running time of the script:** ( 0 minutes 5.588 seconds)
181+
**Total running time of the script:** ( 0 minutes 8.362 seconds)
182182

183183

184184
.. _sphx_glr_download_examples_20_basics_example_image_classification.py:

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

Lines changed: 48 additions & 44 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 0x7f0eb3815eb0>
136+
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7f7f96017d90>
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 0x7f0eb35b7790> [TrajEntry(train_perf=2147483648, incumbent_id=1, incumbent=Configuration:
165+
<smac.runhistory.runhistory.RunHistory object at 0x7f7f96017130> [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.0013079643249511719, budget=0), TrajEntry(train_perf=0.17543859649122806, incumbent_id=1, incumbent=Configuration:
197+
, ta_runs=0, ta_time_used=0.0, wallclock_time=0.0012085437774658203, budget=0), TrajEntry(train_perf=0.17543859649122806, incumbent_id=1, incumbent=Configuration:
198198
data_loader:batch_size, Value: 64
199199
encoder:__choice__, Value: 'OneHotEncoder'
200200
feature_preprocessor:__choice__, Value: 'NoFeaturePreprocessor'
@@ -226,59 +226,63 @@ 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=2.003859281539917, wallclock_time=3.0306620597839355, budget=5.555555555555555), TrajEntry(train_perf=0.14619883040935677, incumbent_id=2, incumbent=Configuration:
230-
data_loader:batch_size, Value: 54
231-
encoder:__choice__, Value: 'OneHotEncoder'
232-
feature_preprocessor:__choice__, Value: 'NoFeaturePreprocessor'
229+
, ta_runs=1, ta_time_used=2.6043033599853516, wallclock_time=3.6323750019073486, budget=5.555555555555555), TrajEntry(train_perf=0.1578947368421053, incumbent_id=2, incumbent=Configuration:
230+
data_loader:batch_size, Value: 131
231+
encoder:__choice__, Value: 'NoEncoder'
232+
feature_preprocessor:KernelPCA:coef0, Value: -0.2027355777455664
233+
feature_preprocessor:KernelPCA:degree, Value: 2
234+
feature_preprocessor:KernelPCA:gamma, Value: 0.0029756156161293078
235+
feature_preprocessor:KernelPCA:kernel, Value: 'poly'
236+
feature_preprocessor:KernelPCA:n_components, Value: 4
237+
feature_preprocessor:__choice__, Value: 'KernelPCA'
233238
imputer:categorical_strategy, Value: 'constant_!missing!'
234239
imputer:numerical_strategy, Value: 'mean'
235-
lr_scheduler:CosineAnnealingLR:T_max, Value: 307
236-
lr_scheduler:__choice__, Value: 'CosineAnnealingLR'
237-
network_backbone:ShapedMLPBackbone:activation, Value: 'relu'
238-
network_backbone:ShapedMLPBackbone:max_dropout, Value: 0.543030049110043
239-
network_backbone:ShapedMLPBackbone:max_units, Value: 35
240-
network_backbone:ShapedMLPBackbone:mlp_shape, Value: 'hexagon'
241-
network_backbone:ShapedMLPBackbone:num_groups, Value: 3
242-
network_backbone:ShapedMLPBackbone:output_dim, Value: 18
243-
network_backbone:ShapedMLPBackbone:use_dropout, Value: True
244-
network_backbone:__choice__, Value: 'ShapedMLPBackbone'
240+
lr_scheduler:CosineAnnealingWarmRestarts:T_0, Value: 20
241+
lr_scheduler:CosineAnnealingWarmRestarts:T_mult, Value: 1.2502829975237466
242+
lr_scheduler:__choice__, Value: 'CosineAnnealingWarmRestarts'
243+
network_backbone:ShapedResNetBackbone:activation, Value: 'sigmoid'
244+
network_backbone:ShapedResNetBackbone:blocks_per_group, Value: 2
245+
network_backbone:ShapedResNetBackbone:max_units, Value: 21
246+
network_backbone:ShapedResNetBackbone:num_groups, Value: 11
247+
network_backbone:ShapedResNetBackbone:output_dim, Value: 128
248+
network_backbone:ShapedResNetBackbone:resnet_shape, Value: 'stairs'
249+
network_backbone:ShapedResNetBackbone:use_dropout, Value: False
250+
network_backbone:ShapedResNetBackbone:use_shake_drop, Value: False
251+
network_backbone:ShapedResNetBackbone:use_shake_shake, Value: False
252+
network_backbone:__choice__, Value: 'ShapedResNetBackbone'
245253
network_embedding:__choice__, Value: 'NoEmbedding'
246254
network_head:__choice__, Value: 'fully_connected'
247-
network_head:fully_connected:activation, Value: 'relu'
248-
network_head:fully_connected:num_layers, Value: 3
249-
network_head:fully_connected:units_layer_1, Value: 316
250-
network_head:fully_connected:units_layer_2, Value: 503
251-
network_init:SparseInit:bias_strategy, Value: 'Normal'
252-
network_init:__choice__, Value: 'SparseInit'
253-
optimizer:AdamWOptimizer:beta1, Value: 0.9489565046389004
254-
optimizer:AdamWOptimizer:beta2, Value: 0.9647522172509646
255-
optimizer:AdamWOptimizer:lr, Value: 0.0030477242366055836
256-
optimizer:AdamWOptimizer:weight_decay, Value: 0.061913730296919815
257-
optimizer:__choice__, Value: 'AdamWOptimizer'
255+
network_head:fully_connected:activation, Value: 'tanh'
256+
network_head:fully_connected:num_layers, Value: 4
257+
network_head:fully_connected:units_layer_1, Value: 415
258+
network_head:fully_connected:units_layer_2, Value: 290
259+
network_head:fully_connected:units_layer_3, Value: 313
260+
network_init:KaimingInit:bias_strategy, Value: 'Normal'
261+
network_init:__choice__, Value: 'KaimingInit'
262+
optimizer:AdamOptimizer:beta1, Value: 0.9981587455677909
263+
optimizer:AdamOptimizer:beta2, Value: 0.9934737249657393
264+
optimizer:AdamOptimizer:lr, Value: 0.0015351906927605823
265+
optimizer:AdamOptimizer:weight_decay, Value: 0.06126849297256112
266+
optimizer:__choice__, Value: 'AdamOptimizer'
258267
scaler:__choice__, Value: 'MinMaxScaler'
259-
trainer:MixUpTrainer:alpha, Value: 0.8559230573827334
260-
trainer:MixUpTrainer:weighted_loss, Value: True
261-
trainer:__choice__, Value: 'MixUpTrainer'
262-
, ta_runs=18, ta_time_used=191.332772731781, wallclock_time=243.9774169921875, budget=50.0)]
263-
{'accuracy': 0.861271676300578}
264-
| | Preprocessing | Estimator | Weight |
265-
|---:|:------------------------------------------------------------------|:----------------------------------------------------------------|---------:|
266-
| 0 | SimpleImputer,NoEncoder,Normalizer,Nystroem | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.2 |
267-
| 1 | SimpleImputer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.2 |
268-
| 2 | None | CatBoostClassifier | 0.18 |
269-
| 3 | None | SVC | 0.18 |
270-
| 4 | None | RFClassifier | 0.08 |
271-
| 5 | None | ExtraTreesClassifier | 0.06 |
272-
| 6 | None | KNNClassifier | 0.06 |
273-
| 7 | SimpleImputer,OneHotEncoder,MinMaxScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
268+
trainer:StandardTrainer:weighted_loss, Value: False
269+
trainer:__choice__, Value: 'StandardTrainer'
270+
, ta_runs=20, ta_time_used=161.57836866378784, wallclock_time=232.07247638702393, budget=50.0)]
271+
{'accuracy': 0.8728323699421965}
272+
| | Preprocessing | Estimator | Weight |
273+
|---:|:------------------------------------------------------------------|:-------------------------------------------------------------------|---------:|
274+
| 0 | None | CatBoostClassifier | 0.92 |
275+
| 1 | SimpleImputer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
276+
| 2 | SimpleImputer,NoEncoder,MinMaxScaler,KernelPCA | no embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
277+
| 3 | SimpleImputer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
274278
275279
276280
277281
278282
279283
.. rst-class:: sphx-glr-timing
280284

281-
**Total running time of the script:** ( 5 minutes 19.640 seconds)
285+
**Total running time of the script:** ( 5 minutes 28.336 seconds)
282286

283287

284288
.. _sphx_glr_download_examples_20_basics_example_tabular_classification.py:

0 commit comments

Comments
 (0)