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

Remove callback #256

Merged
merged 1 commit into from
Dec 27, 2023
Merged

Remove callback #256

merged 1 commit into from
Dec 27, 2023

Conversation

YamLyubov
Copy link
Collaborator

Minor fix for OptunaTuner: early_stopping_iteration is not applicable for multi-objective problem.

@codecov-commenter
Copy link

codecov-commenter commented Dec 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (279bbe8) 71.92% compared to head (320d990) 71.92%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #256   +/-   ##
=======================================
  Coverage   71.92%   71.92%           
=======================================
  Files         136      136           
  Lines        8145     8145           
=======================================
  Hits         5858     5858           
  Misses       2287     2287           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -60,7 +60,7 @@ def _tune(self, graph: DomainGraphForTune, show_progress: bool = True) -> \
n_trials=self.iterations,
n_jobs=self.n_jobs,
timeout=remaining_time,
callbacks=[self.early_stopping_callback],
callbacks=[self.early_stopping_callback] if not is_multi_objective else None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Может какой-то варнинг печатать, чтобы пользователь был в курсе?

@YamLyubov YamLyubov merged commit 4d71d55 into main Dec 27, 2023
6 checks passed
@YamLyubov YamLyubov deleted the fix-early-stopping branch December 27, 2023 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants