File size: 546 Bytes
44cdef4 0f64eae 44cdef4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
from abc import ABC, abstractmethod
class FeatureExtractor(ABC):
def __init__(self):
pass
def __call__(self, input_data, frequency, baseline_data=None, normalization_method=None):
return self.extract_features(input_data, frequency, baseline_data, normalization_method)
@abstractmethod
def extract_features(self, input_data, baseline_data, frequency, normalization_method):
pass
@abstractmethod
def normalize_features(self, features, baseline_features, normalization_method=None):
pass
|