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
Similar to #73 . However, if the order of two conjunctions (maybe also forbiddenclauses) is different, then the two configurations will be considered different ones:
from ConfigSpace import ConfigurationSpace, CategoricalHyperparameter
from ConfigSpace.conditions import EqualsCondition, OrConjunction
x = CategoricalHyperparameter('x', [1,2,3])
y = CategoricalHyperparameter('y', [0,1])
z = CategoricalHyperparameter('z', [0,1])
cs1 = ConfigurationSpace()
cs1.add_hyperparameters([x,y,z])
cs1.add_condition(
OrConjunction(
EqualsCondition(x, y, 0), EqualsCondition(x,z,0)
)
)
cs2 = ConfigurationSpace()
cs2.add_hyperparameters([x,y,z])
cs2.add_condition(
OrConjunction(
EqualsCondition(x,z,0), EqualsCondition(x, y, 0)
)
)
assert cs1 == cs2
The text was updated successfully, but these errors were encountered:
Similar to #73 . However, if the order of two conjunctions (maybe also forbiddenclauses) is different, then the two configurations will be considered different ones:
The text was updated successfully, but these errors were encountered: