Skip to content

Commit

Permalink
[Tune] [PBT] [Doc] Fix and clean up PBT examples (ray-project#29060)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinvyu authored Oct 27, 2022
1 parent cd031a0 commit 8c4e6dc
Show file tree
Hide file tree
Showing 20 changed files with 973 additions and 326 deletions.
2 changes: 1 addition & 1 deletion doc/source/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ parts:
- file: tune/tutorials/tune-metrics
title: "Using Callbacks and Metrics"
- file: tune/examples/tune_analyze_results
- file: tune/tutorials/tune-advanced-tutorial
- file: tune/examples/pbt_guide
sections:
- file: tune/examples/pbt_visualization/pbt_visualization
title: "Visualizing and Understanding PBT"
Expand Down
Binary file removed doc/source/images/tune_advanced_dcgan_Gloss.png
Binary file not shown.
Binary file removed doc/source/images/tune_advanced_dcgan_inscore.png
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/source/tune/api_docs/schedulers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ the trials to explore the new hyperparameter configuration starting from a parti
trained model (e.g. by copying model weights from one of the top-performing trials).

Take a look at :doc:`/tune/examples/pbt_visualization/pbt_visualization` to get an idea
of how PBT operates. :doc:`/tune/tutorials/tune-advanced-tutorial` gives more examples
of how PBT operates. :doc:`/tune/examples/pbt_guide` gives more examples
of PBT usage.

.. autoclass:: ray.tune.schedulers.PopulationBasedTraining
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions doc/source/tune/examples/includes/pbt_function.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
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
789 changes: 789 additions & 0 deletions doc/source/tune/examples/pbt_guide.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions doc/source/tune/tutorials/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ Tune Feature Guides
---
:img-top: /images/tune.png

.. link-button:: tune-advanced-tutorial
.. link-button:: ../examples/pbt_guide
:type: ref
:text: Using Population-Based Training
:text: A Guide to Population-Based Training
:classes: btn-link btn-block stretched-link

---
Expand Down
238 changes: 0 additions & 238 deletions doc/source/tune/tutorials/tune-advanced-tutorial.rst

This file was deleted.

Loading

0 comments on commit 8c4e6dc

Please sign in to comment.