mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00

This PR adds a user guide to AIR for using Ray Train. It provides a high level overview of the trainers and removes redundant sections. The main file to review is here: doc/source/ray-air/trainer.rst. Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com> Signed-off-by: Richard Liaw <rliaw@berkeley.edu> Signed-off-by: Kai Fricke <kai@anyscale.com> Co-authored-by: Richard Liaw <rliaw@berkeley.edu> Co-authored-by: Kai Fricke <kai@anyscale.com>
203 lines
2.9 KiB
ReStructuredText
203 lines
2.9 KiB
ReStructuredText
.. _air-api-ref:
|
|
|
|
API Reference
|
|
=============
|
|
|
|
.. contents::
|
|
:local:
|
|
|
|
Components
|
|
----------
|
|
|
|
.. _air-preprocessor-ref:
|
|
|
|
Preprocessor
|
|
~~~~~~~~~~~~
|
|
|
|
.. autoclass:: ray.data.preprocessor.Preprocessor
|
|
:members:
|
|
|
|
Built-in Preprocessors
|
|
######################
|
|
|
|
.. automodule:: ray.data.preprocessors
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
.. automethod:: ray.data.Dataset.train_test_split
|
|
:noindex:
|
|
|
|
.. _air-abstract-trainer-ref:
|
|
|
|
Trainer
|
|
~~~~~~~
|
|
|
|
.. autoclass:: ray.train.trainer.BaseTrainer
|
|
:members:
|
|
|
|
Abstract Classes
|
|
################
|
|
|
|
.. autoclass:: ray.train.data_parallel_trainer.DataParallelTrainer
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
.. autoclass:: ray.train.gbdt_trainer.GBDTTrainer
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
.. _air-results-ref:
|
|
|
|
Training Result
|
|
###############
|
|
|
|
.. automodule:: ray.air.result
|
|
:members:
|
|
|
|
Training Session
|
|
################
|
|
|
|
.. automodule:: ray.air.session
|
|
:members:
|
|
|
|
Trainer Configs
|
|
###############
|
|
|
|
.. automodule:: ray.air.config
|
|
:members:
|
|
|
|
Checkpoint
|
|
~~~~~~~~~~
|
|
|
|
.. _air-checkpoint-ref:
|
|
|
|
.. automodule:: ray.air.checkpoint
|
|
:members:
|
|
|
|
Predictor
|
|
~~~~~~~~~
|
|
|
|
.. autoclass:: ray.train.predictor.Predictor
|
|
:members:
|
|
|
|
Data Types
|
|
##########
|
|
|
|
.. autoclass:: ray.train.predictor.DataBatchType
|
|
|
|
Batch Predictor
|
|
###############
|
|
|
|
.. autoclass:: ray.train.batch_predictor.BatchPredictor
|
|
:members:
|
|
|
|
.. _air-tuner-ref:
|
|
|
|
Tuner
|
|
~~~~~
|
|
|
|
.. autoclass:: ray.tune.tuner.Tuner
|
|
:members:
|
|
|
|
TuneConfig
|
|
##########
|
|
|
|
.. automodule:: ray.tune.tune_config
|
|
:members:
|
|
|
|
Tuner Results
|
|
#############
|
|
|
|
.. automodule:: ray.tune.result_grid
|
|
:members:
|
|
|
|
.. _air-serve-integration:
|
|
|
|
Serving
|
|
~~~~~~~
|
|
|
|
.. autoclass:: ray.serve.air_integrations.PredictorDeployment
|
|
|
|
.. autoclass:: ray.serve.air_integrations.PredictorWrapper
|
|
|
|
.. _air-trainer-ref:
|
|
|
|
Trainer and Predictor Integrations
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
XGBoost
|
|
#######
|
|
|
|
.. automodule:: ray.train.xgboost
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
LightGBM
|
|
########
|
|
|
|
.. automodule:: ray.train.lightgbm
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
TensorFlow
|
|
##########
|
|
|
|
.. automodule:: ray.train.tensorflow
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
PyTorch
|
|
#######
|
|
|
|
.. automodule:: ray.train.torch
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
Horovod
|
|
#######
|
|
|
|
.. automodule:: ray.train.horovod
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
HuggingFace
|
|
###########
|
|
|
|
.. automodule:: ray.train.huggingface
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
Scikit-Learn
|
|
############
|
|
|
|
.. automodule:: ray.train.sklearn
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
.. _air-builtin-callbacks:
|
|
|
|
Monitoring Integrations
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Comet
|
|
#####
|
|
|
|
.. autoclass:: ray.air.callbacks.comet.CometLoggerCallback
|
|
|
|
Keras
|
|
#####
|
|
|
|
.. autoclass:: ray.air.callbacks.keras.Callback
|
|
:members:
|
|
|
|
MLflow
|
|
######
|
|
|
|
.. autoclass:: ray.air.callbacks.mlflow.MLflowLoggerCallback
|
|
|
|
Weights and Biases
|
|
##################
|
|
|
|
.. autoclass:: ray.air.callbacks.wandb.WandbLoggerCallback
|
|
|
|
.. _air-session-ref:
|