-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[doc][ml] add missing tune public API references + api policy lint checker #47138
Conversation
0b8f5f0
to
e4756db
Compare
507cdc8
to
a0eb65f
Compare
@@ -650,7 +649,9 @@ class RunConfig: | |||
verbose: Optional[Union[int, "AirVerbosity", "Verbosity"]] = None | |||
stop: Optional[Union[Mapping, "Stopper", Callable[[str, Mapping], bool]]] = None | |||
callbacks: Optional[List["Callback"]] = None | |||
progress_reporter: Optional["ProgressReporter"] = None | |||
progress_reporter: Optional[ | |||
"ray.tune.progress_reporter.ProgressReporter" # noqa: F821 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to use full path now since the name ProgressReporter
is ambiguous to sphinx, with the addition of ray.tune.experimental.output.ProgressReporter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@can-anyscale @justinvyu is this just a hack to get a correct link in the docs? Could this be done in a different way that doesn't break the typing?
For reference see omni-us/jsonargparse#609 (comment). Before I found this pull request I also asked the question here https://discuss.ray.io/t/why-the-invalid-type-for-progress-reporter-of-ray-train-runconfig/20178
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this #48439?
"white_list_apis": { | ||
# Already documented as ray.tune.search.ConcurrencyLimiter | ||
"ray.tune.search.searcher.ConcurrencyLimiter", | ||
}, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will every class with an alias need this whitelist?
ex: ray.train.torch.torch_trainer.TorchTrainer
vs. ray.train.torch.TorchTrainer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not that every class with an alias needs a whitelist, but for some reason, this particular class has two versions:
- https://github.com/ray-project/ray/blob/master/python/ray/tune/search/concurrency_limiter.py#L13
- https://github.com/ray-project/ray/blob/master/python/ray/tune/search/searcher.py#L441
we can document both but not sure why they look the same
doc/source/tune/api/stoppers.rst
Outdated
function_stopper.FunctionStopper | ||
noop.NoopStopper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add the ~
in front?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
totally
doc/source/tune/api/trainable.rst
Outdated
@@ -248,4 +248,5 @@ Tune Trainable Debugging Utilities | |||
|
|||
tune.utils.diagnose_serialization | |||
tune.utils.validate_save_restore | |||
|
|||
tune.utils.util.validate_warmstart | |||
tune.utils.log.Verbosity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is replaced by AirVerbosity
, but it's also not officially deprecated 😞 . Can you remove + whitelist this for now and add a deprecation TODO(ml-team)
?
The whole "tune output" module needs to be cleaned up since it's in an in-between state at the moment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
totally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh can we remove the Verbosity
from this list then? and add it to the whitelist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
w00t yes good catch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@justinvyu removed, thankks
eea77a7
to
4aae96d
Compare
"head_doc_file": "doc/source/tune/api/api.rst", | ||
"white_list_apis": { | ||
# Already documented as ray.tune.search.ConcurrencyLimiter | ||
"ray.tune.search.searcher.ConcurrencyLimiter", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for some reason, this particular class has two versions:
- https://github.com/ray-project/ray/blob/master/python/ray/tune/search/concurrency_limiter.py#L13
- https://github.com/ray-project/ray/blob/master/python/ray/tune/search/searcher.py#L441
we can document both but not sure why they look the same
address @justinvyu's comments |
4aae96d
to
6da3b3a
Compare
Signed-off-by: can <[email protected]>
6da3b3a
to
42e4d7a
Compare
test failure is unrelated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Test: