Skip to content

Commit

Permalink
[doc][ml] add one missing train public API reference
Browse files Browse the repository at this point in the history
Signed-off-by: can <[email protected]>
  • Loading branch information
can-anyscale committed Aug 14, 2024
1 parent 0631713 commit e4756db
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions .buildkite/lint.rayci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ steps:
- api_policy_check core
- api_policy_check serve
- api_policy_check data
- api_policy_check train
- api_policy_check rllib

- label: ":lint-roller: lint: linkcheck"
Expand Down
5 changes: 5 additions & 0 deletions ci/ray_ci/doc/cmd_check_api_discrepancy.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
"ray.remote_function.RemoteFunction",
},
},
"train": {
"head_modules": {"ray.train"},
"head_doc_file": "doc/source/train/api/api.rst",
"white_list_apis": {},
},
"rllib": {
"head_modules": {"ray.rllib"},
"head_doc_file": "doc/source/rllib/package_ref/index.rst",
Expand Down
12 changes: 11 additions & 1 deletion doc/source/train/api/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,17 @@ Ray Train Output

~train.Result

Ray Train Errors
----------------

.. autosummary::
:nosignatures:
:template: autosummary/class_without_autosummary.rst
:toctree: doc/

~train.error.SessionMisuseError
~train.base_trainer.TrainingFailedError


Ray Train Developer APIs
------------------------
Expand All @@ -178,7 +189,6 @@ Trainer Base Classes

~train.trainer.BaseTrainer
~train.data_parallel_trainer.DataParallelTrainer
~train.base_trainer.TrainingFailedError


Train Backend Base Classes
Expand Down

0 comments on commit e4756db

Please sign in to comment.