-
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
[docs] [tune] replace tune.report with session.report #34435
Conversation
To address: #34434 Signed-off-by: angelinalg <122562471+angelinalg@users.noreply.github.com>
@@ -105,7 +105,7 @@ def train_mnist(config): | |||
acc = test(model, test_loader) | |||
|
|||
# Send the current training result back to Tune | |||
tune.report(mean_accuracy=acc) | |||
session.report(mean_accuracy=acc) |
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 need to also include the proper import at the top:
from ray.air import session
Does that look right, @matthewdeng? BTW, thanks for catching that. Signed-off-by: angelinalg <122562471+angelinalg@users.noreply.github.com>
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.
Code looks good to me. Test is failing for an unrelated reason though...
@matthewdeng I've never merged a PR for this directory before. Are you able to merge it? Or should I rebase and try to get the tests to pass, first? |
@richardliaw can you merge? If somehow this breaks master I will take full responsibility. |
famous last words :-D I'll file a fix |
One line fix for bug introduced in #34435 Signed-off-by: Kai Fricke <kai@anyscale.com>
Lol sigh, thanks @krfricke 😅 |
One line fix for bug introduced in #34435 Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: elliottower <elliot@elliottower.com>
One line fix for bug introduced in ray-project#34435 Signed-off-by: Kai Fricke <kai@anyscale.com> Signed-off-by: elliottower <elliot@elliottower.com>
Signed-off-by: Jack He <jackhe2345@gmail.com>
One line fix for bug introduced in ray-project#34435 Signed-off-by: Kai Fricke <kai@anyscale.com> Signed-off-by: Jack He <jackhe2345@gmail.com>
One line fix for bug introduced in ray-project#34435 Signed-off-by: Kai Fricke <kai@anyscale.com>
Why are these changes needed?
To address CSAT reported feedback that example was using an outdated API (tune.report) which is replaced with session.report.
Related issue number
(#34434)
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.