Fix all tests

This commit is contained in:
2021-01-25 15:19:58 -06:00
parent 3ab3bb3c1f
commit b0b013dd0a
5 changed files with 48 additions and 14 deletions

View File

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