Repository navigation
Remove set_system_attr and system_attrs from Study and Trial - #6834
Merged
Merged
Conversation
not522
force-pushed
the
remove-system-attr
branch
from
August 28, 2026 09:53
81cda2c to
e096fe3
Compare
Member
|
@y0z Could you review this PR? |
y0z
reviewed
Aug 31, 2026
Member
There was a problem hiding this comment.
:func:optuna.trial.Trial.set_system_attr is removed in this PR.
y0z
reviewed
Aug 31, 2026
Member
There was a problem hiding this comment.
Can this method be removed as the system_attrs property is removed?
Member
Author
There was a problem hiding this comment.
No, this cannot be deleted until the system_attrs for FrozenTrial are removed. The comment isn't appropriate, so I'll delete it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
set_system_attrandsystem_attrsare deprecated in v3.1.0 and the removal is scheduled for v5.0.0.FrozenTrialrequires a data container withsystem_attrs, so we will only removeset_system_attr.Description of the changes
set_system_attrfromStudy,BaseTrial,FixedTrial,FrozenTrial, andTrialsystem_attrsfromStudy,BaseTrial, andTrialChecklist