mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-09 19:08:51 -06:00
Primal: Refactoring
This commit is contained in:
@@ -6,7 +6,7 @@ import numbers
|
||||
import collections
|
||||
from typing import TYPE_CHECKING, Dict
|
||||
|
||||
from miplearn.types import ModelFeatures, ConstraintFeatures
|
||||
from miplearn.types import Features, ConstraintFeatures
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from miplearn import InternalSolver, Instance
|
||||
@@ -19,7 +19,7 @@ class FeaturesExtractor:
|
||||
) -> None:
|
||||
self.solver = internal_solver
|
||||
|
||||
def extract(self, instance: "Instance") -> ModelFeatures:
|
||||
def extract(self, instance: "Instance") -> Features:
|
||||
return {
|
||||
"Constraints": self._extract_constraints(instance),
|
||||
"Variables": self._extract_variables(instance),
|
||||
|
||||
Reference in New Issue
Block a user