mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-08 02:18:51 -06:00
Add first model feature (constraint RHS)
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
|
||||
from miplearn.types import TrainingSample, VarIndex, ModelFeatures
|
||||
|
||||
|
||||
class Instance(ABC):
|
||||
@@ -24,8 +24,9 @@ class Instance(ABC):
|
||||
features, which can be provided as inputs to machine learning models.
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self) -> None:
|
||||
self.training_data: List[TrainingSample] = []
|
||||
self.model_features: ModelFeatures = {}
|
||||
|
||||
@abstractmethod
|
||||
def to_model(self) -> Any:
|
||||
|
||||
Reference in New Issue
Block a user