mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-08 18:38:51 -06:00
MIPLearn v0.3
This commit is contained in:
19
miplearn/extractors/abstract.py
Normal file
19
miplearn/extractors/abstract.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
import numpy as np
|
||||
|
||||
from miplearn.h5 import H5File
|
||||
|
||||
|
||||
class FeaturesExtractor(ABC):
|
||||
@abstractmethod
|
||||
def get_instance_features(self, h5: H5File) -> np.ndarray:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_var_features(self, h5: H5File) -> np.ndarray:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_constr_features(self, h5: H5File) -> np.ndarray:
|
||||
pass
|
||||
Reference in New Issue
Block a user