-
Notifications
You must be signed in to change notification settings - Fork 14
Introduce the optunahub.benchmarks module
#73
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #73 +/- ##
==========================================
- Coverage 88.80% 88.67% -0.13%
==========================================
Files 6 8 +2
Lines 134 159 +25
==========================================
+ Hits 119 141 +22
- Misses 15 18 +3 ☔ View full report in Codecov by Sentry. |
nabenabe0928
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR, I left some comments!
| trial._check_distribution(name, dist) | ||
| return self.evaluate(params) | ||
|
|
||
| def evaluate(self, params: dict[str, Any]) -> float | Sequence[float]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason why this method is not an abstract method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you only want to support Optuna (e.g., implementing define-by-run objective), it is acceptable to override __call__ and not implement evaluate and search_space.
| raise NotImplementedError | ||
|
|
||
| @property | ||
| def search_space(self) -> dict[str, optuna.distributions.BaseDistribution]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason why this method is not an abstract method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto (cf. #73 (comment))
Co-authored-by: Shuhei Watanabe <[email protected]>
Co-authored-by: Shuhei Watanabe <[email protected]>
Co-authored-by: Shuhei Watanabe <[email protected]>
nabenabe0928
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the update, LGTM!
Motivation & Description of the changes
optunahub.benchmarksmodule as a new feature for benchmarking.