Skip to content

Commit 20f8d79

Browse files
author
Github Actions
committed
Ravin Kohli: [ADD] documentation for pipelines and steps (#329)
1 parent 5151a5e commit 20f8d79

26 files changed

+469
-385
lines changed
Binary file not shown.
Binary file not shown.
1.03 KB
Loading
-689 Bytes
Loading
-769 Bytes
Loading

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

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,24 +86,21 @@ Image Classification
8686
________________________________________
8787
Configuration:
8888
image_augmenter:GaussianBlur:use_augmenter, Value: False
89-
image_augmenter:GaussianNoise:use_augmenter, Value: False
90-
image_augmenter:RandomAffine:rotate, Value: 114
91-
image_augmenter:RandomAffine:scale_offset, Value: 0.11914307425363649
92-
image_augmenter:RandomAffine:shear, Value: 8
93-
image_augmenter:RandomAffine:translate_percent_offset, Value: 0.027196925844249223
94-
image_augmenter:RandomAffine:use_augmenter, Value: True
95-
image_augmenter:RandomCutout:p, Value: 0.24908507480752906
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
9693
image_augmenter:RandomCutout:use_augmenter, Value: True
9794
image_augmenter:Resize:use_augmenter, Value: False
98-
image_augmenter:ZeroPadAndCrop:percent, Value: 0.2779993065586726
99-
normalizer:__choice__, Value: 'ImageNormalizer'
95+
image_augmenter:ZeroPadAndCrop:percent, Value: 0.3379048205724533
96+
normalizer:__choice__, Value: 'NoNormalizer'
10097

10198
Fitting the pipeline...
10299
________________________________________
103100
ImageClassificationPipeline
104101
________________________________________
105102
0-) normalizer:
106-
ImageNormalizer
103+
NoNormalizer
107104

108105
1-) preprocessing:
109106
EarlyPreprocessing
@@ -175,7 +172,7 @@ Image Classification
175172
176173
.. rst-class:: sphx-glr-timing
177174

178-
**Total running time of the script:** ( 0 minutes 5.899 seconds)
175+
**Total running time of the script:** ( 0 minutes 8.728 seconds)
179176

180177

181178
.. _sphx_glr_download_examples_20_basics_example_image_classification.py:

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

Lines changed: 23 additions & 25 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 0x7f17d1cd15e0>
136+
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fd84a7ed670>
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 0x7f17d1d96e50> [TrajEntry(train_perf=2147483648, incumbent_id=1, incumbent=Configuration:
165+
<smac.runhistory.runhistory.RunHistory object at 0x7fd84a7edc40> [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.0011916160583496094, budget=0), TrajEntry(train_perf=0.1578947368421053, incumbent_id=1, incumbent=Configuration:
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:
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=3.463505744934082, wallclock_time=4.493630886077881, budget=5.555555555555555), TrajEntry(train_perf=0.14035087719298245, incumbent_id=2, incumbent=Configuration:
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:
230230
data_loader:batch_size, Value: 170
231231
encoder:__choice__, Value: 'NoEncoder'
232232
feature_preprocessor:Nystroem:kernel, Value: 'cosine'
@@ -260,34 +260,32 @@ 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=109.08182263374329, wallclock_time=159.79244685173035, budget=50.0)]
264-
{'accuracy': 0.861271676300578}
265-
| | Preprocessing | Estimator | Weight |
266-
|---:|:------------------------------------------------------------------|:-------------------------------------------------------------------|---------:|
267-
| 0 | None | CBLearner | 0.18 |
268-
| 1 | SimpleImputer,OneHotEncoder,Normalizer,KernelPCA | embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.14 |
269-
| 2 | SimpleImputer,OneHotEncoder,Normalizer,KitchenSink | embedding,MLPBackbone,FullyConnectedHead,nn.Sequential | 0.14 |
270-
| 3 | SimpleImputer,NoEncoder,Normalizer,Nystroem | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.12 |
271-
| 4 | SimpleImputer,NoEncoder,Normalizer,KitchenSink | no embedding,MLPBackbone,FullyConnectedHead,nn.Sequential | 0.1 |
272-
| 5 | SimpleImputer,NoEncoder,Normalizer,Nystroem | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.08 |
273-
| 6 | SimpleImputer,OneHotEncoder,Normalizer,PowerTransformer | embedding,ResNetBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
274-
| 7 | SimpleImputer,NoEncoder,Normalizer,KernelPCA | no embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
275-
| 8 | SimpleImputer,OneHotEncoder,MinMaxScaler,PowerTransformer | embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
276-
| 9 | SimpleImputer,OneHotEncoder,MinMaxScaler,TruncSVD | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
277-
| 10 | None | RFLearner | 0.02 |
278-
| 11 | None | ETLearner | 0.02 |
279-
| 12 | None | SVMLearner | 0.02 |
280-
| 13 | None | KNNLearner | 0.02 |
281-
| 14 | SimpleImputer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
282-
| 15 | SimpleImputer,OneHotEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
263+
, ta_runs=15, ta_time_used=163.56785583496094, wallclock_time=220.1450080871582, budget=50.0)]
264+
{'accuracy': 0.8554913294797688}
265+
| | Preprocessing | Estimator | Weight |
266+
|---:|:------------------------------------------------------------------|:----------------------------------------------------------------|---------:|
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 |
283281
284282
285283
286284
287285
288286
.. rst-class:: sphx-glr-timing
289287

290-
**Total running time of the script:** ( 5 minutes 34.529 seconds)
288+
**Total running time of the script:** ( 5 minutes 25.958 seconds)
291289

292290

293291
.. _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 0x7f1874c24ca0>
128+
<autoPyTorch.api.tabular_regression.TabularRegressionTask object at 0x7fd8ed4f9ca0>
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 0x7f185d369790> [TrajEntry(train_perf=2147483648, incumbent_id=1, incumbent=Configuration:
160+
<smac.runhistory.runhistory.RunHistory object at 0x7fd8d5c37790> [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.0011248588562011719, budget=0), TrajEntry(train_perf=0.3195903909944855, incumbent_id=1, incumbent=Configuration:
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:
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=2.1191773414611816, wallclock_time=3.1469626426696777, budget=5.555555555555555)]
223-
{'r2': 0.9445248186059718}
222+
, ta_runs=1, ta_time_used=3.0296387672424316, wallclock_time=4.0609352588653564, budget=5.555555555555555)]
223+
{'r2': 0.944631023189658}
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 29.258 seconds)
237+
**Total running time of the script:** ( 5 minutes 44.149 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:09.686** total execution time for **examples_20_basics** files:
8+
**11:18.834** total execution time for **examples_20_basics** files:
99

1010
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
11-
| :ref:`sphx_glr_examples_20_basics_example_tabular_classification.py` (``example_tabular_classification.py``) | 05:34.529 | 0.0 MB |
11+
| :ref:`sphx_glr_examples_20_basics_example_tabular_regression.py` (``example_tabular_regression.py``) | 05:44.149 | 0.0 MB |
1212
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
13-
| :ref:`sphx_glr_examples_20_basics_example_tabular_regression.py` (``example_tabular_regression.py``) | 05:29.258 | 0.0 MB |
13+
| :ref:`sphx_glr_examples_20_basics_example_tabular_classification.py` (``example_tabular_classification.py``) | 05:25.958 | 0.0 MB |
1414
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
15-
| :ref:`sphx_glr_examples_20_basics_example_image_classification.py` (``example_image_classification.py``) | 00:05.899 | 0.0 MB |
15+
| :ref:`sphx_glr_examples_20_basics_example_image_classification.py` (``example_image_classification.py``) | 00:08.728 | 0.0 MB |
1616
+--------------------------------------------------------------------------------------------------------------+-----------+--------+

0 commit comments

Comments
 (0)