Cardiac_Monitor_API / app /services /feature_extractor.py
GitHub Actions
Deploy v0.0.1 from GitHub Actions
314b374
raw
history blame contribute delete
653 Bytes
"""
ECG Feature Extraction for backend inference.
Thin wrapper that imports from ml/src/feature_extractor.py to stay in sync.
"""
import os
import sys
# Import from the bundled ML source
ML_SRC = os.path.join(os.path.dirname(__file__), "..", "..", "ml_src")
sys.path.insert(0, ML_SRC)
from feature_extractor import ( # noqa: E402
extract_ecg_features,
features_to_array,
FEATURE_NAMES,
PROFILE_FEATURE_NAMES,
HISTORY_FEATURE_NAMES,
ALL_FEATURE_NAMES,
)
__all__ = [
"extract_ecg_features",
"features_to_array",
"FEATURE_NAMES",
"PROFILE_FEATURE_NAMES",
"HISTORY_FEATURE_NAMES",
"ALL_FEATURE_NAMES",
]