-
Notifications
You must be signed in to change notification settings - Fork 96
Description
Hello ConfigSpace developers!
I have a question for you, and I would appreciate it if you could help me with that!
from ConfigSpace import ConfigurationSpace
myspace=ConfigurationSpace(
space={
"a": [1,2,3],#3 integers
"b": [4,5,6],#3 integers
}
)
In this example, according to the current function of ConfigSpace, the final configuration space will be a Cartesian product of the values of 2 hyperparameters, that is, there are 3×3=9 configuration cases, if in our project, the configuration combination of 【a=1 and b=5 】is invalid configuration. Currently, there are 8 types of configurations in the ConfigurationSpace space:
a=1 and b=4;
a=1 and b=6;
a=2 and b=4;
a=2 and b=5;
a=2 and b=6;
a=3 and b=4;
a=3 and b=5;
a=3 and b=6;
Is there any method or function in ConfigSpace that allows me to manually import these 8 custom configurations to form a ConfigurationSpace?
I have a more complex test example, in which there are 20 hyperparameters, each of which is a list of 4 integers or a list of 2 integers, and the Cartesian product generates a configuration space of more than 200 million configurations, and the invalid constraints and conditions are very complex, and I have reduced the configuration size from more than 200 million to 2000 by manual pruning, currently I want to use ConfigSpace to store these 2000 configurations, but I don't know how to import these 2000 configurations.