Remove trial._study_id
and use trial.study._study_id
instead.
#4678
Labels
code-fix
Change that does not change the behavior, such as code refactoring.
contribution-welcome
Issue that welcomes contribution.
good first issue
Good first issue for contribution.
Motivation
As described in the following TODO comment,
trial._study_id
is a bit redundant sincetrial
hasstudy
attribute.optuna/optuna/trial/_trial.py
Lines 54 to 55 in 5f10ae4
Suggestion
Remove
trial._study_id
and usetrial.study._study_id
instead.Additional context (optional)
No response
The text was updated successfully, but these errors were encountered: