mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-08 10:28:52 -06:00
Convert VariableFeatures into dataclass
This commit is contained in:
@@ -87,14 +87,12 @@ InstanceFeatures = TypedDict(
|
||||
total=False,
|
||||
)
|
||||
|
||||
VariableFeatures = TypedDict(
|
||||
"VariableFeatures",
|
||||
{
|
||||
"Category": Optional[Hashable],
|
||||
"User features": Optional[List[float]],
|
||||
},
|
||||
total=False,
|
||||
)
|
||||
|
||||
@dataclass
|
||||
class VariableFeatures:
|
||||
category: Optional[Hashable] = None
|
||||
user_features: Optional[List[float]] = None
|
||||
|
||||
|
||||
ConstraintFeatures = TypedDict(
|
||||
"ConstraintFeatures",
|
||||
|
||||
Reference in New Issue
Block a user