You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed it was possible to add the same forbidden clause multiple times to the same space. Not sure if this is intended or not, so I thought I would raise a quick issue for it.
Here is how to replicate it:
importConfigSpaceasCSimportConfigSpace.hyperparametersasCSHcs=CS.ConfigurationSpace()
lower_bound=CSH.UniformIntegerHyperparameter('lower_bound', lower=0, upper=10)
upper_bound=CSH.UniformIntegerHyperparameter('upper_bound', lower=0, upper=10)
cs.add_hyperparameter(lower_bound)
cs.add_hyperparameter(upper_bound)
# add duplicate forbiddens to the same spacefgt1=CS.ForbiddenGreaterThanRelation(lower_bound, upper_bound)
fgt2=CS.ForbiddenGreaterThanRelation(lower_bound, upper_bound)
fgt3=CS.ForbiddenGreaterThanRelation(lower_bound, upper_bound)
cs.add_forbidden_clause(fgt1)
cs.add_forbidden_clause(fgt2)
cs.add_forbidden_clause(fgt2)
print(cs)
Hmmm, good find. It's not really problematic in the sense that it causes logical issue, however it could make sampling a bit slower if you need to generate large amount of samples, fast.
What would you expect the behavior be? I have 3 different ideas:
Raise an error, you can not have duplicates.
Raise a warning, warning that there are duplicates.
Do nothing, but optimize this away underneath the hood. We currently do this for AND conjunctions that share individual parts as this comes up a lot in some existing systems.
I noticed it was possible to add the same forbidden clause multiple times to the same space. Not sure if this is intended or not, so I thought I would raise a quick issue for it.
Here is how to replicate it:
What it outputs:
Notice how the same forbidden appears 3 times.
The text was updated successfully, but these errors were encountered: