ObjectiveValueComponent: Fix failing test

pull/3/head
Alinson S. Xavier 5 years ago
parent b42187ee0b
commit 537e7f5764

@ -16,8 +16,8 @@ def test_usage():
comp.fit(instances)
assert instances[0].lower_bound == 1183.0
assert instances[0].upper_bound == 1183.0
assert comp.predict(instances).tolist() == [[1183.0, 1183.0],
[1070.0, 1070.0]]
assert np.round(comp.predict(instances), 2).tolist() == [[1183.0, 1183.0],
[1070.0, 1070.0]]
def test_obj_evaluate():

Loading…
Cancel
Save