mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 01:18:52 -06:00
Don't include intermediary features in sample; rename some keys
This commit is contained in:
@@ -25,13 +25,13 @@ def training_instances() -> List[Instance]:
|
||||
MemorySample(
|
||||
{
|
||||
"lazy_enforced": {"c1", "c2"},
|
||||
"instance_features_user": [5.0],
|
||||
"instance_features": [5.0],
|
||||
},
|
||||
),
|
||||
MemorySample(
|
||||
{
|
||||
"lazy_enforced": {"c2", "c3"},
|
||||
"instance_features_user": [5.0],
|
||||
"instance_features": [5.0],
|
||||
},
|
||||
),
|
||||
]
|
||||
@@ -56,7 +56,7 @@ def training_instances() -> List[Instance]:
|
||||
MemorySample(
|
||||
{
|
||||
"lazy_enforced": {"c3", "c4"},
|
||||
"instance_features_user": [8.0],
|
||||
"instance_features": [8.0],
|
||||
},
|
||||
)
|
||||
]
|
||||
|
||||
@@ -25,7 +25,7 @@ def sample() -> Sample:
|
||||
"var_names": ["x[0]", "x[1]", "x[2]", "x[3]"],
|
||||
"var_categories": ["default", None, "default", "default"],
|
||||
"mip_var_values": [0.0, 1.0, 1.0, 0.0],
|
||||
"instance_features_user": [5.0],
|
||||
"instance_features": [5.0],
|
||||
"var_features": [
|
||||
[0.0, 0.0],
|
||||
None,
|
||||
|
||||
@@ -33,7 +33,7 @@ def sample() -> Sample:
|
||||
],
|
||||
"constr_lazy": [True, True, True, True, False],
|
||||
"constr_names": ["c1", "c2", "c3", "c4", "c5"],
|
||||
"instance_features_user": [5.0],
|
||||
"instance_features": [5.0],
|
||||
"lazy_enforced": {"c1", "c2", "c4"},
|
||||
"lp_constr_features": [
|
||||
[1.0, 1.0],
|
||||
|
||||
Reference in New Issue
Block a user