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

Support flat hyperparameter dictionaries #92

Closed
csala opened this issue Jul 5, 2019 · 0 comments · Fixed by #93
Closed

Support flat hyperparameter dictionaries #92

csala opened this issue Jul 5, 2019 · 0 comments · Fixed by #93
Assignees
Milestone

Comments

@csala
Copy link
Contributor

csala commented Jul 5, 2019

MLBlocks hyperparameter specification format consists of a hierarchical tree of dictionaries where each key is a block name and each value is a dictionary with the complete hyperparameter specification for that block.

BTB, instead, specifies the hyperparameters as a flat dictionary where the keys are two element tuples containing the name of the block in the first place and the name of the hyperparameter in the second place, and where the values are the corresponding hyperparameter values.

We should add support for that format in the following ways:

  • The internal and main format will continue to be the hierarchical one.
  • MLPipeline.set_hyperparameters will accept both flat and hierarchical formats as input. If a flat dictionary is passed, it will be converted to a hierarchical one.
  • MLPipeline.get_hyperparameters will accept a new argument, flat=False. If set to True, a flat dictionary will be returned. Otherwise (default), the hierarchical one will be returned.
  • MLPipeline.get_tunable_hyperparameters will accept a new argument, flat=False. If set to True, a flat dictionary will be returned. Otherwise (default), the hierarchical one will be returned.
@csala csala added this to the 0.3.1 milestone Jul 5, 2019
@csala csala self-assigned this Jul 5, 2019
@csala csala closed this as completed in #93 Jul 6, 2019
gsheni pushed a commit that referenced this issue Aug 29, 2022
…pleImputer_primitive

Issue 72: sklearn `SimpleImputer` primitive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant