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

Design of Zephyr hyperparameters #6

Open
sarahmish opened this issue Feb 14, 2023 · 0 comments
Open

Design of Zephyr hyperparameters #6

sarahmish opened this issue Feb 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@sarahmish
Copy link
Collaborator

Currently Supported Design

current approach to change hyperparameters is through a dictionary we pass to the zephyr api. This dictionary specifies the primitive and the hyperparameter of that primitive that the user wishes to modify.

An example code for an xgb pipeline

"hyperparameters = {
    "xgboost.XGBClassifier#1": {
        "n_estimators": 50
    }
}

zephyr = Zephyr('xgb', hyperparameters)

Ideal Design

the proposed design is that hyperparameters can be exposed at a pipeline level without the need of a dictionary.

An example code that should achieve the same changes in the previous example

zephyr = Zephyr('xgb', n_estimators=50)

under the hood, these hyperparameters should be mapped to the right primitive and altered.

Challenges

there are several cases that need to be resolved with this strategy:

  • if the hyperparameter name belongs to more than one primitive, which one is the user altering?
  • these hyperparameters are dynamic in a sense that they change from pipeline to pipeline, how do we support them? how would the user know what hyperparameters they can change?
  • can these hyperparameters be modified in only instantiation phase or should we allow other phases like fit? e.g. epochs.
@sarahmish sarahmish added the enhancement New feature or request label Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant