forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tune][Doc] Restructure API reference (ray-project#32311)
- Loading branch information
Showing
37 changed files
with
1,983 additions
and
1,745 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.. _tune-callbacks-docs: | ||
|
||
Tune Callbacks (tune.Callback) | ||
============================== | ||
|
||
See :doc:`this user guide </tune/tutorials/tune-metrics>` for more details. | ||
|
||
.. seealso:: | ||
|
||
:doc:`Tune's built-in loggers </tune/api/logging>` use the ``Callback`` interface. | ||
|
||
|
||
Callback Interface | ||
------------------ | ||
|
||
Callback Initialization and Setup | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. currentmodule:: ray.tune | ||
.. autosummary:: | ||
:toctree: doc/ | ||
|
||
Callback | ||
Callback.setup | ||
|
||
|
||
Callback Hooks | ||
~~~~~~~~~~~~~~ | ||
|
||
.. autosummary:: | ||
:toctree: doc/ | ||
|
||
Callback.on_checkpoint | ||
Callback.on_experiment_end | ||
Callback.on_step_begin | ||
Callback.on_step_end | ||
Callback.on_trial_complete | ||
Callback.on_trial_error | ||
Callback.on_trial_restore | ||
Callback.on_trial_result | ||
Callback.on_trial_save | ||
Callback.on_trial_start | ||
|
||
|
||
Stateful Callbacks | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
The following methods must be overriden for stateful callbacks to be saved/restored | ||
properly by Tune. | ||
|
||
.. autosummary:: | ||
:toctree: doc/ | ||
|
||
Callback.get_state | ||
Callback.set_state |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Tune Execution (tune.Tuner) | ||
=========================== | ||
|
||
.. _tune-run-ref: | ||
|
||
Tuner | ||
----- | ||
|
||
.. currentmodule:: ray.tune | ||
|
||
.. autosummary:: | ||
:toctree: doc/ | ||
|
||
Tuner | ||
Tuner.fit | ||
Tuner.get_results | ||
|
||
Tuner Configuration | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autosummary:: | ||
:toctree: doc/ | ||
|
||
TuneConfig | ||
|
||
Restoring a Tuner | ||
~~~~~~~~~~~~~~~~~ | ||
|
||
.. autosummary:: | ||
:toctree: doc/ | ||
|
||
Tuner.restore | ||
Tuner.can_restore | ||
|
||
|
||
tune.run_experiments | ||
-------------------- | ||
|
||
.. autosummary:: | ||
:toctree: doc/ | ||
|
||
run_experiments | ||
Experiment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
.. _tune-integration: | ||
|
||
External library integrations for Ray Tune | ||
=========================================== | ||
|
||
.. TODO: Clean this up. Both tune.integration and air.integrations are | ||
.. captured here. Most of the `tune.integration` can be deprecated soon. | ||
.. XGBoost/LightGBM callbacks are no longer recommended - use their trainers instead | ||
.. which will automatically report+checkpoint. | ||
.. After PTL trainer is introduced, we can also deprecate that callback. | ||
.. currentmodule:: ray | ||
|
||
.. _tune-monitoring-integrations: | ||
|
||
Tune Experiment Monitoring Integrations | ||
---------------------------------------- | ||
|
||
Comet (air.integrations.comet) | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
:ref:`See here for an example. <tune-comet-ref>` | ||
|
||
.. autosummary:: | ||
:toctree: doc/ | ||
|
||
~air.integrations.comet.CometLoggerCallback | ||
|
||
|
||
.. _tune-integration-mlflow: | ||
|
||
MLflow (air.integrations.mlflow) | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
:ref:`See here for an example. <tune-mlflow-ref>` | ||
|
||
.. autosummary:: | ||
:toctree: doc/ | ||
|
||
~air.integrations.mlflow.MLflowLoggerCallback | ||
~air.integrations.mlflow.setup_mlflow | ||
|
||
.. _tune-integration-wandb: | ||
|
||
Weights and Biases (air.integrations.wandb) | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
:ref:`See here for an example. <tune-wandb-ref>` | ||
|
||
.. autosummary:: | ||
:toctree: doc/ | ||
|
||
~air.integrations.wandb.WandbLoggerCallback | ||
~air.integrations.wandb.setup_wandb | ||
|
||
|
||
Integrations with ML Libraries | ||
-------------------------------- | ||
|
||
.. _tune-integration-keras: | ||
|
||
Keras (air.integrations.keras) | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autosummary:: | ||
:toctree: doc/ | ||
|
||
~air.integrations.keras.ReportCheckpointCallback | ||
|
||
|
||
.. _tune-integration-mxnet: | ||
|
||
MXNet (tune.integration.mxnet) | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autosummary:: | ||
:toctree: doc/ | ||
|
||
~tune.integration.mxnet.TuneReportCallback | ||
~tune.integration.mxnet.TuneCheckpointCallback | ||
|
||
|
||
.. _tune-integration-pytorch-lightning: | ||
|
||
PyTorch Lightning (tune.integration.pytorch_lightning) | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autosummary:: | ||
:toctree: doc/ | ||
|
||
~tune.integration.pytorch_lightning.TuneReportCallback | ||
~tune.integration.pytorch_lightning.TuneReportCheckpointCallback | ||
|
||
.. _tune-integration-xgboost: | ||
|
||
XGBoost (tune.integration.xgboost) | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autosummary:: | ||
:toctree: doc/ | ||
|
||
~tune.integration.xgboost.TuneReportCallback | ||
~tune.integration.xgboost.TuneReportCheckpointCallback | ||
|
||
|
||
.. _tune-integration-lightgbm: | ||
|
||
LightGBM (tune.integration.lightgbm) | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autosummary:: | ||
:toctree: doc/ | ||
|
||
~tune.integration.lightgbm.TuneReportCallback | ||
~tune.integration.lightgbm.TuneReportCheckpointCallback |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.