chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
:orphan:
|
||||
|
||||
Asynchronous HyperBand Example
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
This example demonstrates how to use Ray Tune's Asynchronous Successive Halving Algorithm (ASHA) scheduler
|
||||
to efficiently optimize hyperparameters for a machine learning model. ASHA is particularly useful for
|
||||
large-scale hyperparameter optimization as it can adaptively allocate resources and end
|
||||
poorly performing trials early.
|
||||
|
||||
Requirements: `pip install "ray[tune]"`
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/async_hyperband_example.py
|
||||
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
||||
- `ASHA Paper <https://arxiv.org/abs/1810.05934>`_
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
AX Example
|
||||
~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/ax_example.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
BayesOpt Example
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/bayesopt_example.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
BOHB Example
|
||||
~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/bohb_example.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
Custom Checkpointing Example
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/custom_func_checkpointing.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
HyperBand Example
|
||||
=================
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/hyperband_example.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
HyperBand Function Example
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/hyperband_function_example.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
Hyperopt Conditional Search Space Example
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/hyperopt_conditional_search_space_example.py
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 97 KiB |
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
Logging Example
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/logging_example.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
MLflow PyTorch Lightning Example
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/mlflow_ptl.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
MNIST PyTorch Lightning Example
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/mnist_ptl_mini.py
|
||||
@@ -0,0 +1,10 @@
|
||||
:orphan:
|
||||
|
||||
MNIST PyTorch Example
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/mnist_pytorch.py
|
||||
|
||||
If you consider switching to PyTorch Lightning to get rid of some of your boilerplate
|
||||
training code, please know that we also have a walkthrough on :doc:`how to use Tune with
|
||||
PyTorch Lightning models </tune/examples/tune-pytorch-lightning>`.
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
MNIST PyTorch Trainable Example
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/mnist_pytorch_trainable.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
Nevergrad Example
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/nevergrad_example.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
PB2 Example
|
||||
~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/pb2_example.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
PB2 PPO Example
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/pb2_ppo_example.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
PBT ConvNet Example
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/pbt_convnet_function_example.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
PBT Example
|
||||
~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/pbt_example.py
|
||||
@@ -0,0 +1,11 @@
|
||||
:orphan:
|
||||
|
||||
PBT Function Example
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The following script produces the following results. For a population of 8 trials,
|
||||
the PBT learning rate schedule roughly matches the optimal learning rate schedule.
|
||||
|
||||
.. image:: images/pbt_function_results.png
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/pbt_function.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
Memory NN Example
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/pbt_memnn_example.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
Keras Cifar10 Example
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/pbt_tune_cifar10_with_keras.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
TensorFlow MNIST Example
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/tf_mnist_example.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
tune_basic_example
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/tune_basic_example.py
|
||||
@@ -0,0 +1,6 @@
|
||||
:orphan:
|
||||
|
||||
XGBoost Dynamic Resources Example
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. literalinclude:: /../../python/ray/tune/examples/xgboost_dynamic_resources_example.py
|
||||
Reference in New Issue
Block a user