mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-08 02:18:51 -06:00
Primal: Refactoring
This commit is contained in:
@@ -9,7 +9,7 @@ from typing import Any, List, Optional, Hashable
|
||||
|
||||
import numpy as np
|
||||
|
||||
from miplearn.types import TrainingSample, VarIndex, ModelFeatures
|
||||
from miplearn.types import TrainingSample, VarIndex, Features
|
||||
|
||||
|
||||
# noinspection PyMethodMayBeStatic
|
||||
@@ -27,7 +27,7 @@ class Instance(ABC):
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.training_data: List[TrainingSample] = []
|
||||
self.features: ModelFeatures = {}
|
||||
self.features: Features = {}
|
||||
|
||||
@abstractmethod
|
||||
def to_model(self) -> Any:
|
||||
|
||||
Reference in New Issue
Block a user