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
Config API + Optuna PoC = AutoML 🖤 #937
Conversation
catalyst/dl/scripts/tune.py
Outdated
return args, unknown_args | ||
|
||
|
||
def process_trial_config(trial, config: Dict) -> Tuple[optuna.Trial, Dict]: |
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.
[pep8] reported by reviewdog 🐶
D103 Missing docstring in public function
def on_stage_start(self, runner: "IRunner"): | ||
""" | ||
On stage start hook. | ||
Takes ``optuna_trial`` from ``Experiment`` for future needs if required. |
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.
[pep8] reported by reviewdog 🐶
E501 line too long (80 > 79 characters)
def on_stage_start(self, runner: "IRunner"): | ||
""" | ||
On stage start hook. | ||
Takes ``optuna_trial`` from ``Experiment`` for future needs if required. |
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.
[pep8] reported by reviewdog 🐶
W505 doc line too long (80 > 79 characters)
catalyst/dl/scripts/tune.py
Outdated
expdir=expdir, config=trial_config | ||
) | ||
# @TODO: here we need better solution. | ||
experiment._trial = trial |
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.
[pep8] reported by reviewdog 🐶
WPS437 Found protected attribute usage: _trial
This pull request is now in conflicts. @Scitator, could you fix it? 🙏 |
Before submitting
catalyst-make-codestyle && catalyst-check-codestyle
(pip install -U catalyst-codestyle
).make check-docs
?Description
I think, everyone of us was looking for some tool to create some initial config, run hyperparameters search and just get the best model, right? looks like we are quite close :)
how to start
minimal example - https://github.com/catalyst-team/catalyst/tree/feature/config-api-optuna/examples/cifar_stages_optuna
config example - https://github.com/catalyst-team/catalyst/blob/feature/config-api-optuna/examples/cifar_stages_optuna/config.yml#L4#L9
hyperparamers space - https://github.com/catalyst-team/catalyst/blob/feature/config-api-optuna/examples/cifar_stages_optuna/model.py#L6$#L16
how to run
how to visualise plots
Related Issue
Type of Change
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.