Skip to content
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

[tune] logger migration to ExperimentLogger classes #11984

Merged
merged 13 commits into from
Nov 16, 2020

Conversation

krfricke
Copy link
Contributor

Why are these changes needed?

Moves from Logger classes to ExperimentLogger classes.

Todo:

  • Update documentation for tune.loggers

Related issue number

Checks

  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@@ -204,7 +204,7 @@ def on_result(self, result):
}
}
})
self.assertTrue(
self.assertFalse(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about this and I think it makes sense to never add any logger callbacks if someone sets the TUNE_DISABLE_AUTO_CALLBACK_LOGGERS env variable to 1. That's a deliberate choice and we shouldn't mess with that.
Before this PR there was a reason to add this (since we distinguished between legacy Logger classes and callbacks), but since we're moving to all-callbacks now, there's no need to do magic here.

@krfricke krfricke marked this pull request as ready for review November 16, 2020 10:39
@krfricke krfricke self-assigned this Nov 16, 2020
@@ -249,7 +246,9 @@ def run(
trial (of ERROR state) when the experiments complete.
callbacks (list): List of callbacks that will be called at different
times in the training loop. Must be instances of the
``ray.tune.trial_runner.Callback`` class.
``ray.tune.trial_runner.Callback`` class. If not passed,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
``ray.tune.trial_runner.Callback`` class. If not passed,
``ray.tune.callback.Callback`` class. If not passed,

Copy link
Contributor

@richardliaw richardliaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great - i'll merge and we can fix the docstring in a later PR

@richardliaw richardliaw merged commit 9f5986e into ray-project:master Nov 16, 2020
@krfricke krfricke deleted the tune-logger-migration branch November 17, 2020 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants