Skip to content

[tune] validate function callable in tune.with_parameters()#11504

Merged
richardliaw merged 1 commit intoray-project:masterfrom
krfricke:tune-with-parameters-validation
Oct 20, 2020
Merged

[tune] validate function callable in tune.with_parameters()#11504
richardliaw merged 1 commit intoray-project:masterfrom
krfricke:tune-with-parameters-validation

Conversation

@krfricke
Copy link
Copy Markdown
Contributor

Why are these changes needed?

Currently tune.with_parameters() does not validate that the trainable is indeed a callable. This PR fixes that.

Related issue number

Closes #11047

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 :(

@richardliaw richardliaw merged commit 6d11fb8 into ray-project:master Oct 20, 2020
@krfricke krfricke deleted the tune-with-parameters-validation branch September 22, 2023 22:44
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.

[tune] TypeError: __init__() got multiple values for argument 'arch' when using 'with_parameters'

2 participants