mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-08 18:38:51 -06:00
Fix all tests
This commit is contained in:
@@ -116,9 +116,11 @@ class ConvertTightIneqsIntoEqsStep(Component):
|
||||
if category not in y:
|
||||
y[category] = []
|
||||
if 0 <= slack <= self.slack_tolerance:
|
||||
y[category] += [[1]]
|
||||
y[category] += [[False, True]]
|
||||
else:
|
||||
y[category] += [[0]]
|
||||
y[category] += [[True, False]]
|
||||
for category in y.keys():
|
||||
y[category] = np.array(y[category], dtype=np.bool8)
|
||||
return y
|
||||
|
||||
def predict(self, x):
|
||||
|
||||
Reference in New Issue
Block a user