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)
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: