aperiodic and mse, legacy and modern

- The cluster route's 2 s window table (ventanas.cortar + estado_director
  exclusions and labels) rebuilt from the contract, one private copy per
  module.
- legacy: biomarcadores espectro.py, aperiodico.py (FOOOF with Wilkinson's
  modifications) and complejidad.py copied unchanged; exponent per region
  and state (NaN under 20 windows or R2 < 0.9); MSE fine / coarse / total.
- modern: MNE multitaper + fooof with the same two Wilkinson modifications;
  antropy sample entropy with Costa's fixed tolerance.

Copies byte-identical to the submodule; modern within 2% (exponent) and 1%
(MSE) of legacy on the synthetic study; contract suites pass.
This commit is contained in:
AlbertoPMDM
2026-11-18 21:52:22 -06:00
parent 4987629e8b
commit 4deba99c92
24 changed files with 2166 additions and 1 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ SRC = Path(__file__).resolve().parents[1] / "src" / "tea_modulo"
# Approved third-party libraries (top-level import names).
BASE = {"numpy", "scipy", "pandas", "mne", "sklearn", "antropy", "fooof", "yasa",
"meegkit", "edfio"}
LEGACY = {"numpy", "scipy", "pandas", "sklearn"}
LEGACY = {"numpy", "scipy", "pandas", "sklearn", "fooof"} # fooof: biomarcadores-tea dependency
EXTRA = {
"validation": {"fhir"},
"serving": {"mlflow"},