Remove most usages of put_{vector,vector_list}; deprecate get_set

This commit is contained in:
2021-08-10 11:52:02 -05:00
parent 60b9a6775f
commit ed58242b5c
9 changed files with 40 additions and 176 deletions

View File

@@ -61,7 +61,7 @@ def test_knapsack() -> None:
np.array(["default", "default", "default", "default", ""], dtype="S"),
)
assert_equals(
sample.get_vector_list("static_var_features"),
sample.get_array("static_var_features"),
np.array(
[
[23.0, 505.0, 1.0, 0.32899, 0.0, 505.0, 1.0],
@@ -155,7 +155,7 @@ def test_knapsack() -> None:
np.array([1.0, 0.923077, 1.0, 0.0, 67.0]),
)
assert_equals(
sample.get_vector_list("lp_var_features"),
sample.get_array("lp_var_features"),
np.array(
[
[