Skip to content

Commit

Permalink
nabenabe0928: [style] Remove prefix typing and adapt to google styl…
Browse files Browse the repository at this point in the history
…e doc (#307)
  • Loading branch information
Github Actions committed Nov 11, 2021
1 parent 7d52ddb commit a4a7a02
Show file tree
Hide file tree
Showing 24 changed files with 161 additions and 265 deletions.
Binary file not shown.
Binary file not shown.
Binary file modified development/_images/sphx_glr_example_visualization_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified development/_images/sphx_glr_example_visualization_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified development/_images/sphx_glr_example_visualization_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,17 @@ Image Classification
Pipeline Random Config:
________________________________________
Configuration:
image_augmenter:GaussianBlur:sigma_min, Value: 0.12769072427273298
image_augmenter:GaussianBlur:sigma_offset, Value: 2.5621599409177107
image_augmenter:GaussianBlur:use_augmenter, Value: True
image_augmenter:GaussianBlur:use_augmenter, Value: False
image_augmenter:GaussianNoise:use_augmenter, Value: False
image_augmenter:RandomAffine:rotate, Value: 47
image_augmenter:RandomAffine:scale_offset, Value: 0.01145873263446795
image_augmenter:RandomAffine:shear, Value: 3
image_augmenter:RandomAffine:translate_percent_offset, Value: 0.320067960155265
image_augmenter:RandomAffine:rotate, Value: 328
image_augmenter:RandomAffine:scale_offset, Value: 0.26538653822859176
image_augmenter:RandomAffine:shear, Value: 43
image_augmenter:RandomAffine:translate_percent_offset, Value: 0.0013477722050754704
image_augmenter:RandomAffine:use_augmenter, Value: True
image_augmenter:RandomCutout:p, Value: 0.6949230971062553
image_augmenter:RandomCutout:p, Value: 0.9271524955899881
image_augmenter:RandomCutout:use_augmenter, Value: True
image_augmenter:Resize:use_augmenter, Value: True
image_augmenter:ZeroPadAndCrop:percent, Value: 0.16187446069157246
image_augmenter:ZeroPadAndCrop:percent, Value: 0.04276538172142241
normalizer:__choice__, Value: 'NoNormalizer'

Fitting the pipeline...
Expand Down Expand Up @@ -177,7 +175,7 @@ Image Classification
.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 0 minutes 5.917 seconds)
**Total running time of the script:** ( 0 minutes 8.275 seconds)


.. _sphx_glr_download_examples_20_basics_example_image_classification.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Search for an ensemble of machine learning algorithms
.. code-block:: none
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7fc36cb418b0>
<autoPyTorch.api.tabular_classification.TabularClassificationTask object at 0x7f91159b1e80>
Expand Down Expand Up @@ -162,7 +162,7 @@ Print the final ensemble performance

.. code-block:: none
<smac.runhistory.runhistory.RunHistory object at 0x7fc36c9ffd00> [TrajEntry(train_perf=2147483648, incumbent_id=1, incumbent=Configuration:
<smac.runhistory.runhistory.RunHistory object at 0x7f91159b14f0> [TrajEntry(train_perf=2147483648, incumbent_id=1, incumbent=Configuration:
data_loader:batch_size, Value: 64
encoder:__choice__, Value: 'OneHotEncoder'
feature_preprocessor:__choice__, Value: 'NoFeaturePreprocessor'
Expand Down Expand Up @@ -194,7 +194,7 @@ Print the final ensemble performance
scaler:__choice__, Value: 'StandardScaler'
trainer:StandardTrainer:weighted_loss, Value: True
trainer:__choice__, Value: 'StandardTrainer'
, ta_runs=0, ta_time_used=0.0, wallclock_time=0.0014204978942871094, budget=0), TrajEntry(train_perf=0.14619883040935677, incumbent_id=1, incumbent=Configuration:
, ta_runs=0, ta_time_used=0.0, wallclock_time=0.0014147758483886719, budget=0), TrajEntry(train_perf=0.14619883040935677, incumbent_id=1, incumbent=Configuration:
data_loader:batch_size, Value: 64
encoder:__choice__, Value: 'OneHotEncoder'
feature_preprocessor:__choice__, Value: 'NoFeaturePreprocessor'
Expand Down Expand Up @@ -226,7 +226,7 @@ Print the final ensemble performance
scaler:__choice__, Value: 'StandardScaler'
trainer:StandardTrainer:weighted_loss, Value: True
trainer:__choice__, Value: 'StandardTrainer'
, ta_runs=1, ta_time_used=4.931585788726807, wallclock_time=5.967687129974365, budget=5.555555555555555)]
, ta_runs=1, ta_time_used=4.973806142807007, wallclock_time=6.012700080871582, budget=5.555555555555555)]
{'accuracy': 0.8670520231213873}
| | Preprocessing | Estimator | Weight |
|---:|:------------------------------------------------------------------|:----------------------------------------------------------------|---------:|
Expand All @@ -247,7 +247,7 @@ Print the final ensemble performance
.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 5 minutes 30.625 seconds)
**Total running time of the script:** ( 5 minutes 35.756 seconds)


.. _sphx_glr_download_examples_20_basics_example_tabular_classification.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Search for an ensemble of machine learning algorithms
.. code-block:: none
<autoPyTorch.api.tabular_regression.TabularRegressionTask object at 0x7fc40537c4f0>
<autoPyTorch.api.tabular_regression.TabularRegressionTask object at 0x7f91ae0714f0>
Expand Down Expand Up @@ -157,7 +157,7 @@ Print the final ensemble performance

.. code-block:: none
<smac.runhistory.runhistory.RunHistory object at 0x7fc40f5a27f0> [TrajEntry(train_perf=2147483648, incumbent_id=1, incumbent=Configuration:
<smac.runhistory.runhistory.RunHistory object at 0x7f91b817eac0> [TrajEntry(train_perf=2147483648, incumbent_id=1, incumbent=Configuration:
data_loader:batch_size, Value: 64
encoder:__choice__, Value: 'OneHotEncoder'
feature_preprocessor:__choice__, Value: 'NoFeaturePreprocessor'
Expand Down Expand Up @@ -188,7 +188,7 @@ Print the final ensemble performance
optimizer:__choice__, Value: 'AdamOptimizer'
scaler:__choice__, Value: 'StandardScaler'
trainer:__choice__, Value: 'StandardTrainer'
, ta_runs=0, ta_time_used=0.0, wallclock_time=0.0011060237884521484, budget=0), TrajEntry(train_perf=0.4945322850469632, incumbent_id=1, incumbent=Configuration:
, ta_runs=0, ta_time_used=0.0, wallclock_time=0.0013966560363769531, budget=0), TrajEntry(train_perf=0.4945322850469632, incumbent_id=1, incumbent=Configuration:
data_loader:batch_size, Value: 64
encoder:__choice__, Value: 'OneHotEncoder'
feature_preprocessor:__choice__, Value: 'NoFeaturePreprocessor'
Expand Down Expand Up @@ -219,7 +219,7 @@ Print the final ensemble performance
optimizer:__choice__, Value: 'AdamOptimizer'
scaler:__choice__, Value: 'StandardScaler'
trainer:__choice__, Value: 'StandardTrainer'
, ta_runs=1, ta_time_used=3.027116537094116, wallclock_time=4.058123350143433, budget=5.555555555555555)]
, ta_runs=1, ta_time_used=3.1266889572143555, wallclock_time=4.161885023117065, budget=5.555555555555555)]
{'r2': 0.9246659176848098}
| | Preprocessing | Estimator | Weight |
|---:|:------------------------------------------------------------------|:----------------------------------------------------------------|---------:|
Expand All @@ -233,7 +233,7 @@ Print the final ensemble performance
.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 5 minutes 41.831 seconds)
**Total running time of the script:** ( 5 minutes 38.186 seconds)


.. _sphx_glr_download_examples_20_basics_example_tabular_regression.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

Computation times
=================
**11:18.373** total execution time for **examples_20_basics** files:
**11:22.217** total execution time for **examples_20_basics** files:

+--------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_20_basics_example_tabular_regression.py` (``example_tabular_regression.py``) | 05:41.831 | 0.0 MB |
| :ref:`sphx_glr_examples_20_basics_example_tabular_regression.py` (``example_tabular_regression.py``) | 05:38.186 | 0.0 MB |
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_20_basics_example_tabular_classification.py` (``example_tabular_classification.py``) | 05:30.625 | 0.0 MB |
| :ref:`sphx_glr_examples_20_basics_example_tabular_classification.py` (``example_tabular_classification.py``) | 05:35.756 | 0.0 MB |
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_20_basics_example_image_classification.py` (``example_image_classification.py``) | 00:05.917 | 0.0 MB |
| :ref:`sphx_glr_examples_20_basics_example_image_classification.py` (``example_image_classification.py``) | 00:08.275 | 0.0 MB |
+--------------------------------------------------------------------------------------------------------------+-----------+--------+
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ the search. Currently, there are two changes that can be made to the space:-

.. code-block:: none
<smac.runhistory.runhistory.RunHistory object at 0x7fc36c7d0e50> [TrajEntry(train_perf=2147483648, incumbent_id=1, incumbent=Configuration:
<smac.runhistory.runhistory.RunHistory object at 0x7f91153e0f40> [TrajEntry(train_perf=2147483648, incumbent_id=1, incumbent=Configuration:
data_loader:batch_size, Value: 32
encoder:__choice__, Value: 'OneHotEncoder'
feature_preprocessor:__choice__, Value: 'NoFeaturePreprocessor'
Expand Down Expand Up @@ -80,7 +80,7 @@ the search. Currently, there are two changes that can be made to the space:-
scaler:__choice__, Value: 'StandardScaler'
trainer:StandardTrainer:weighted_loss, Value: True
trainer:__choice__, Value: 'StandardTrainer'
, ta_runs=0, ta_time_used=0.0, wallclock_time=0.0013322830200195312, budget=0), TrajEntry(train_perf=0.2865497076023392, incumbent_id=1, incumbent=Configuration:
, ta_runs=0, ta_time_used=0.0, wallclock_time=0.001371145248413086, budget=0), TrajEntry(train_perf=0.2865497076023392, incumbent_id=1, incumbent=Configuration:
data_loader:batch_size, Value: 32
encoder:__choice__, Value: 'OneHotEncoder'
feature_preprocessor:__choice__, Value: 'NoFeaturePreprocessor'
Expand Down Expand Up @@ -114,7 +114,7 @@ the search. Currently, there are two changes that can be made to the space:-
scaler:__choice__, Value: 'StandardScaler'
trainer:StandardTrainer:weighted_loss, Value: True
trainer:__choice__, Value: 'StandardTrainer'
, ta_runs=1, ta_time_used=5.235500812530518, wallclock_time=6.2838451862335205, budget=5.555555555555555)]
, ta_runs=1, ta_time_used=5.30727219581604, wallclock_time=6.354439973831177, budget=5.555555555555555)]
{'accuracy': 0.861271676300578}
| | Preprocessing | Estimator | Weight |
|---:|:----------------|:------------|---------:|
Expand All @@ -123,7 +123,7 @@ the search. Currently, there are two changes that can be made to the space:-
| 2 | None | KNNLearner | 0.06 |
| 3 | None | ETLearner | 0.04 |
| 4 | None | RFLearner | 0.02 |
<smac.runhistory.runhistory.RunHistory object at 0x7fc36c043760> [TrajEntry(train_perf=2147483648, incumbent_id=1, incumbent=Configuration:
<smac.runhistory.runhistory.RunHistory object at 0x7f91154d8130> [TrajEntry(train_perf=2147483648, incumbent_id=1, incumbent=Configuration:
data_loader:batch_size, Value: 32
encoder:__choice__, Value: 'NoEncoder'
feature_preprocessor:__choice__, Value: 'NoFeaturePreprocessor'
Expand Down Expand Up @@ -155,7 +155,7 @@ the search. Currently, there are two changes that can be made to the space:-
scaler:__choice__, Value: 'StandardScaler'
trainer:StandardTrainer:weighted_loss, Value: True
trainer:__choice__, Value: 'StandardTrainer'
, ta_runs=0, ta_time_used=0.0, wallclock_time=0.0011556148529052734, budget=0), TrajEntry(train_perf=0.17543859649122806, incumbent_id=1, incumbent=Configuration:
, ta_runs=0, ta_time_used=0.0, wallclock_time=0.0014290809631347656, budget=0), TrajEntry(train_perf=0.17543859649122806, incumbent_id=1, incumbent=Configuration:
data_loader:batch_size, Value: 32
encoder:__choice__, Value: 'NoEncoder'
feature_preprocessor:__choice__, Value: 'NoFeaturePreprocessor'
Expand Down Expand Up @@ -187,21 +187,21 @@ the search. Currently, there are two changes that can be made to the space:-
scaler:__choice__, Value: 'StandardScaler'
trainer:StandardTrainer:weighted_loss, Value: True
trainer:__choice__, Value: 'StandardTrainer'
, ta_runs=1, ta_time_used=3.6312057971954346, wallclock_time=4.679858684539795, budget=5.555555555555555)]
{'accuracy': 0.8554913294797688}
, ta_runs=1, ta_time_used=3.5893008708953857, wallclock_time=4.6382224559783936, budget=5.555555555555555)]
{'accuracy': 0.8323699421965318}
| | Preprocessing | Estimator | Weight |
|---:|:--------------------------------------------------------------|:-------------------------------------------------------------------|---------:|
| 0 | SimpleImputer,NoEncoder,StandardScaler,KernelPCA | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.42 |
| 1 | SimpleImputer,NoEncoder,NoScaler,PolynomialFeatures | no embedding,ResNetBackbone,FullyConnectedHead,nn.Sequential | 0.16 |
| 2 | None | CBLearner | 0.08 |
| 3 | SimpleImputer,NoEncoder,Normalizer,PowerTransformer | no embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.08 |
| 4 | SimpleImputer,NoEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.06 |
| 5 | SimpleImputer,NoEncoder,NoScaler,KitchenSink | no embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
| 6 | None | RFLearner | 0.04 |
| 7 | SimpleImputer,NoEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
| 8 | None | LGBMLearner | 0.02 |
| 9 | None | ETLearner | 0.02 |
| 10 | None | SVMLearner | 0.02 |
| 0 | SimpleImputer,NoEncoder,NoScaler,PolynomialFeatures | no embedding,ResNetBackbone,FullyConnectedHead,nn.Sequential | 0.36 |
| 1 | None | CBLearner | 0.16 |
| 2 | SimpleImputer,NoEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.12 |
| 3 | None | RFLearner | 0.08 |
| 4 | None | SVMLearner | 0.08 |
| 5 | None | LGBMLearner | 0.04 |
| 6 | None | ETLearner | 0.04 |
| 7 | SimpleImputer,NoEncoder,Normalizer,PowerTransformer | no embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.04 |
| 8 | SimpleImputer,NoEncoder,NoScaler,KitchenSink | no embedding,ShapedResNetBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
| 9 | SimpleImputer,NoEncoder,StandardScaler,KernelPCA | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
| 10 | SimpleImputer,NoEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
| 11 | SimpleImputer,NoEncoder,StandardScaler,NoFeaturePreprocessing | no embedding,ShapedMLPBackbone,FullyConnectedHead,nn.Sequential | 0.02 |
Expand Down Expand Up @@ -331,7 +331,7 @@ the search. Currently, there are two changes that can be made to the space:-
.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 5 minutes 55.329 seconds)
**Total running time of the script:** ( 6 minutes 3.169 seconds)


.. _sphx_glr_download_examples_40_advanced_example_custom_configuration_space.py:
Expand Down
Loading

0 comments on commit a4a7a02

Please sign in to comment.