You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
403 B
20 lines
403 B
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
|