automl / ConfigSpace

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

Structured configuration spaces (non-scalar variables)? #244

Open mhlr opened 2 years ago

mhlr commented 2 years ago

Is there a way to have a hierarchicaly structured configuration space such include arrays or dicts of scalar variables? For example to group say 5 float hyperparameters in a single array variable?

mfeurer commented 2 years ago

No, we currently don't have that. Could you please give an example use case? And is this similar to #122?

mhlr commented 2 years ago

No, we currently don't have that. Could you please give an example use case? And is this similar to #122?

122 is an example of this. When you have a set of identically distributed parameters it would be nice to treat the whole set as a first class object.

mfeurer commented 2 years ago

Thanks a lot for the explanation. Unfortunately, the design of the ConfigSpace doesn't lend itself for easily implementing this. If you have an idea how to do so, please let us know. Otherwise, we will not have this very high on our agenda as this looks like a lot of work for very nice syntactic sugar.

eddiebergman commented 3 months ago

An update, there's no way to specify this in terms of numerical parameters but this can now be done using Ordinals and Categoricals once #376 lands. Not a full solution but helps get there.