Objective: Use LP value as feature

This commit is contained in:
2021-01-26 22:28:20 -06:00
parent fe47b0825f
commit 9abcea05cd
2 changed files with 5 additions and 4 deletions

View File

@@ -23,10 +23,12 @@ def test_x_y_predict() -> None:
{
"Lower bound": 1.0,
"Upper bound": 2.0,
"LP value": 3.0,
},
{
"Lower bound": 1.5,
"Upper bound": 2.2,
"LP value": 3.4,
},
]
@@ -41,7 +43,7 @@ def test_x_y_predict() -> None:
)
# Should build x correctly
x_expected = np.array([[1.0, 2.0], [1.0, 2.0]])
x_expected = np.array([[1.0, 2.0, 3.0], [1.0, 2.0, 3.4]])
assert_array_equal(comp.x([instance]), x_expected)
# Should build y correctly