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

Overwrite parameters correctly. #1518

Merged
merged 2 commits into from Jul 15, 2020

Conversation

ytsmiling
Copy link
Member

Motivation

This PR fixes the storage spec violation that _CachedStorage + RDBStorage does not overwrite parameters. Background of the spec: #1308.

Additional context

This functionality is (currently) never used by users since trial.suggest immediately returns when already-suggested keys are passed to the method.

@ytsmiling ytsmiling added enhancement Change that does not break compatibility and not affect public interfaces, but improves performance. optuna.storages Related to the `optuna.storages` submodule. This is automatically labeled by github-actions. labels Jul 15, 2020
@toshihikoyanase toshihikoyanase self-assigned this Jul 15, 2020
@hvy hvy self-assigned this Jul 15, 2020
Copy link
Member

@hvy hvy left a comment

Choose a reason for hiding this comment

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

Thanks for the catch, LGTM!

@HideakiImamura HideakiImamura self-assigned this Jul 15, 2020
@hvy
Copy link
Member

hvy commented Jul 15, 2020

Resolved conflicts.

@hvy hvy added this to the v2.0.0 milestone Jul 15, 2020
Copy link
Member

@HideakiImamura HideakiImamura left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@toshihikoyanase toshihikoyanase left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks.

@toshihikoyanase toshihikoyanase merged commit dd126b9 into optuna:master Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Change that does not break compatibility and not affect public interfaces, but improves performance. optuna.storages Related to the `optuna.storages` submodule. This is automatically labeled by github-actions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants