mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-09 19:08:51 -06:00
Convert Features into dataclass
This commit is contained in:
@@ -24,11 +24,11 @@ def sample() -> TrainingSample:
|
||||
|
||||
@pytest.fixture
|
||||
def features() -> Features:
|
||||
return {
|
||||
"Instance": {
|
||||
return Features(
|
||||
instance={
|
||||
"Lazy constraint count": 4,
|
||||
},
|
||||
"Constraints": {
|
||||
constraints={
|
||||
"c1": {
|
||||
"Category": "type-a",
|
||||
"User features": [1.0, 1.0],
|
||||
@@ -55,7 +55,7 @@ def features() -> Features:
|
||||
"Lazy": False,
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
def test_usage_with_solver(features: Features) -> None:
|
||||
|
||||
Reference in New Issue
Block a user