.. _tune-examples-ref: ======== Examples ======== .. tip:: Check out :ref:`the Tune User Guides ` To learn more about Tune's features in depth. .. _tune-recipes: ML Framework Examples --------------------- Ray Tune integrates with many popular machine learning frameworks. Here you find a few practical examples showing you how to tune your models. At the end of these guides you will often find links to even more examples. .. panels:: :container: container pb-4 :column: col-md-4 px-2 py-2 :img-top-cls: pt-5 w-75 d-block mx-auto --- :img-top: /images/tune-sklearn.png +++ .. link-button:: tune-sklearn :type: ref :text: How To Use Tune's Scikit-Learn Adapters? :classes: btn-link btn-block stretched-link --- :img-top: /images/keras.png +++ .. link-button:: tune-mnist-keras :type: ref :text: How To Use Tune With Keras & TF Models :classes: btn-link btn-block stretched-link --- :img-top: /images/pytorch_logo.png +++ .. link-button:: tune-pytorch-cifar-ref :type: ref :text: How To Use Tune With PyTorch Models :classes: btn-link btn-block stretched-link --- :img-top: /images/pytorch_lightning_small.png +++ .. link-button:: tune-pytorch-lightning-ref :type: ref :text: How To Tune PyTorch Lightning Models :classes: btn-link btn-block stretched-link --- :img-top: /images/mxnet_logo.png +++ .. link-button:: tune-mxnet-example :type: ref :text: How To Tune MXNet Models :classes: btn-link btn-block stretched-link --- :img-top: /images/serve.svg +++ .. link-button:: tune-serve-integration-mnist :type: ref :text: Model Selection & Serving With Ray Serve :classes: btn-link btn-block stretched-link --- :img-top: /rllib/images/rllib-logo.png +++ .. link-button:: tune-rllib-example :type: ref :text: Tuning RL Experiments With Ray Tune & Ray Serve :classes: btn-link btn-block stretched-link --- :img-top: /images/xgboost_logo.png +++ .. link-button:: tune-xgboost-ref :type: ref :text: A Guide To Tuning XGBoost Parameters With Tune :classes: btn-link btn-block stretched-link --- :img-top: /images/lightgbm_logo.png +++ .. link-button:: tune-lightgbm-example :type: ref :text: A Guide To Tuning LightGBM Parameters With Tune :classes: btn-link btn-block stretched-link --- :img-top: /images/horovod.png +++ .. link-button:: tune-horovod-example :type: ref :text: A Guide To Tuning Horovod Parameters With Tune :classes: btn-link btn-block stretched-link --- :img-top: /images/hugging.png +++ .. link-button:: tune-huggingface-example :type: ref :text: A Guide To Tuning Huggingface Transformers With Tune :classes: btn-link btn-block stretched-link --- :img-top: /images/mlflow.png +++ .. link-button:: tune-mlflow-ref :type: ref :text: Using MLflow Tracking & AutoLogging with Tune :classes: btn-link btn-block stretched-link Experiment Tracking Examples ---------------------------- Ray Tune integrates with some popular Experiment tracking and management tools, such as CometML, or Weights & Biases. If you're interested in learning how to use Ray Tune with Tensorboard, you can find more information in our :ref:`Guide to logging and outputs `. .. panels:: :container: container pb-4 :column: col-md-4 px-2 py-2 :img-top-cls: pt-5 w-75 d-block mx-auto --- :img-top: /images/comet_logo_full.png +++ .. link-button:: tune-comet-ref :type: ref :text: Using Comet with Ray Tune For Experiment Management :classes: btn-link btn-block stretched-link --- :img-top: /images/wandb_logo.png +++ .. link-button:: tune-wandb-ref :type: ref :text: Tracking Your Experiment Process Weights & Biases :classes: btn-link btn-block stretched-link Hyperparameter Optimization Framework Examples ---------------------------------------------- Tune integrates with a wide variety of hyperparameter optimization frameworks and their respective search algorithms. Here you can find detailed examples on each of our integrations: .. panels:: :container: container pb-4 :column: col-md-4 px-2 py-2 :img-top-cls: pt-5 w-75 d-block mx-auto --- :img-top: ../images/ax.png +++ .. link-button:: ax_example :type: ref :text: How To Use Tune With Ax :classes: btn-link btn-block stretched-link --- :img-top: ../images/dragonfly.png +++ .. link-button:: dragonfly_example :type: ref :text: How To Use Tune With Dragonfly :classes: btn-link btn-block stretched-link --- :img-top: ../images/skopt.png +++ .. link-button:: skopt_example :type: ref :text: How To Use Tune With Scikit-Optimize :classes: btn-link btn-block stretched-link --- :img-top: ../images/hyperopt.png +++ .. link-button:: hyperopt_example :type: ref :text: How To Use Tune With HyperOpt :classes: btn-link btn-block stretched-link --- :img-top: ../images/bayesopt.png +++ .. link-button:: bayesopt_example :type: ref :text: How To Use Tune With BayesOpt :classes: btn-link btn-block stretched-link --- :img-top: ../images/flaml.png +++ .. link-button:: flaml_example :type: ref :text: How To Use Tune With BlendSearch and CFO :classes: btn-link btn-block stretched-link --- :img-top: ../images/bohb.png +++ .. link-button:: bohb_example :type: ref :text: How To Use Tune With TuneBOHB :classes: btn-link btn-block stretched-link --- :img-top: ../images/nevergrad.png +++ .. link-button:: nevergrad_example :type: ref :text: How To Use Tune With Nevergrad :classes: btn-link btn-block stretched-link --- :img-top: ../images/optuna.png +++ .. link-button:: optuna_example :type: ref :text: How To Use Tune With Optuna :classes: btn-link btn-block stretched-link --- :img-top: ../images/zoopt.png +++ .. link-button:: zoopt_example :type: ref :text: How To Use Tune With ZOOpt :classes: btn-link btn-block stretched-link --- :img-top: ../images/sigopt.png +++ .. link-button:: sigopt_example :type: ref :text: How To Use Tune With SigOpt :classes: btn-link btn-block stretched-link --- :img-top: ../images/hebo.png +++ .. link-button:: hebo_example :type: ref :text: How To Use Tune With HEBO :classes: btn-link btn-block stretched-link .. _tune-general-examples: Other Examples -------------- - :doc:`/tune/examples/includes/tune_basic_example`: Simple example for doing a basic random and grid search. - :doc:`/tune/examples/includes/async_hyperband_example`: Example of using a simple tuning function with AsyncHyperBandScheduler. - :doc:`/tune/examples/includes/hyperband_function_example`: Example of using a Trainable function with HyperBandScheduler. Also uses the AsyncHyperBandScheduler. - :doc:`/tune/examples/includes/pbt_function`: Example of using the function API with a PopulationBasedTraining scheduler. - :doc:`/tune/examples/includes/pb2_example`: Example of using the Population-based Bandits (PB2) scheduler. - :doc:`/tune/examples/includes/logging_example`: Example of custom loggers and custom trial directory naming. - :doc:`/tune/examples/includes/genetic_example`: Optimizing the Michalewicz function using the contributed GeneticSearch algorithm with AsyncHyperBandScheduler. .. _tune-exercises: Exercises --------- Learn how to use Tune in your browser with the following Colab-based exercises. .. raw:: html
Exercise Description Library Colab Link
Basics of using Tune. TF/Keras Tune Tutorial
Using Search algorithms and Trial Schedulers to optimize your model. Pytorch Tune Tutorial
Using Population-Based Training (PBT). Pytorch Tune Tutorial
Fine-tuning Huggingface Transformers with PBT. Huggingface Transformers/Pytorch Tune Tutorial
Logging Tune Runs to Comet ML. Comet Tune Tutorial
Tutorial source files `can be found here `_.