We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 323e740 commit 13e8d16Copy full SHA for 13e8d16
1 file changed
pycona/active_algorithms/growacq.py
@@ -67,6 +67,10 @@ def learn(self, instance: ProblemInstance, oracle: Oracle = UserOracle(), verbos
67
print(f"\nGrowAcq: calling inner_algorithm for {len(Y)}/{n_vars} variables")
68
self.env.instance = self.inner_algorithm.learn(self.env.instance, oracle, verbose=verbose, X=Y, metrics=self.env.metrics)
69
70
+ # Add implied constraints from bias to cl
71
+ self.env.instance.cl.extend(self.env.instance.bias)
72
+ self.env.instance.bias = [] # clear bias
73
+
74
if verbose >= 3:
75
print("C_L: ", len(self.env.instance.cl))
76
print("B: ", len(self.env.instance.bias))
0 commit comments