optuna / optuna-examples

Examples for https://github.com/optuna/optuna
MIT License
674 stars 176 forks source link

Add `OptunaSearchCV` with terminator #225

Closed Alnusjaponica closed 10 months ago

Alnusjaponica commented 10 months ago

Motivation

Thanks to https://github.com/optuna/optuna/pull/5098, now we can use terminator in OptunaSearchCV. This example shows how to use it.

Description of the changes

The example itself is basically the same as sklearn/sklearn_optuna_search_cv_simple.py except that TerminatorCallback with default setting is passed to OptunaSearchCV. I added the example under terminator/ so that we don't have to change dependency of each module.

c-bata commented 10 months ago

@nabenabe0928 Could you review this PR?

c-bata commented 10 months ago

@Alnusjaponica Could you update README.md to add a link? https://github.com/optuna/optuna-examples#examples-of-terminator

nabenabe0928 commented 10 months ago

@nabenabe0928 Could you review this PR?

Yes

Alnusjaponica commented 10 months ago

@c-bata I updated README.md. PTAL.

c-bata commented 10 months ago

@Alnusjaponica Thank you for the update!

@nabenabe0928 Could you please let me know once you approve? I'll then merge this PR.