automl / ConfigSpace

Domain specific language for configuration spaces in Python. Useful for hyperparameter optimization and algorithm configuration.
https://automl.github.io/ConfigSpace/
Other
202 stars 93 forks source link

Allow to sample Lists of Hyperparameters #335

Closed Alken0 closed 2 months ago

Alken0 commented 1 year ago

As a automl-developer I want to to create a network with n layers of different with. Currently I cannot sample the with easily, I have to create an extra entry for each layer. To make my life easier I would like to sample a list of Hyperparameters like so:

"layer_width": List(Integer("layer_width", (10, 100)), length=100)

It would be even better if the length could be dynamically adjusted, depending on another Hyperparameter.

eddiebergman commented 2 months ago

It sounds like a nice idea but technically under the hood, it would raise many inconsistencies and issues around names, conditionals, forbiddens, sampling and neighborhoods. While I would like the feature myself, I don't think we have the bandwidth to implement and maintain something like this properly.

Apologies for this answer, I hope you managed to find a good workaround!