Dissect trial.py.#1210
Conversation
|
I think there is no discussion yet, I'd appreciate it if developers give me some comments. |
|
I sort of started one here #1072 (comment). To add, introducing |
|
Thank you for your proposal! I totally agree with your idea to diet |
I thought the concern is only about backward compatibility and added a trick to keep them here, which means However, the availability of both I'll make the change to keep backward compatibility without extending namespace. |
Codecov Report
@@ Coverage Diff @@
## master #1210 +/- ##
==========================================
- Coverage 85.87% 85.58% -0.30%
==========================================
Files 86 92 +6
Lines 6561 6616 +55
==========================================
+ Hits 5634 5662 +28
- Misses 927 954 +27
Continue to review full report at Codecov.
|
Close #1072.
Motivation
This PR separates
trial.pyintotrials/*.py(since its codebase is becoming huge) such that it keeps the API unchanged.Description of the changes
optuna/trialsoptuna/trial.py: now it only imports modules inoptuna/trialsutil.py: contain_adjust_discrete_uniform_high. I think it needs a discussion about naming and placingConcerns
util.py: naming for the module and placingAnother topic
In the source issue, we also discussed about changing API.
It's reasonable for me to make another PR about rethinking API since this PR becomes relatively huge.
Memo