Download src/feature_extractor.py from hubii-world/ECG2HRV: direct link, hf CLI and curl.
- Browser
- Download file 546 Bytes
-
https://huggingface.co/hubii-world/ECG2HRV/resolve/main/src/feature_extractor.py
- Command line
-
hf download hf://hubii-world/ECG2HRV/src/feature_extractor.py
-
curl -L -o feature_extractor.py https://huggingface.co/hubii-world/ECG2HRV/resolve/main/src/feature_extractor.py
546 Bytes
| 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) | |
| def extract_features(self, input_data, baseline_data, frequency, normalization_method): | |
| pass | |
| def normalize_features(self, features, baseline_features, normalization_method=None): | |
| pass | |