Cleanup of the TEA parity work: no prose in code, no hacks, everything in its place
1. No prose in code - Remove parity-added comments and docstrings from TEA jobs, analysis and scoring helpers, execution, definitions, and tests. Keep base prose and Ruff and type-checker directives. 2. No hacks, no glued code - Delegate both association cohort queries to persistance.eeg. Keep the predictor mapping and DataFrame shaping in the job, sharing biomarker codes and EEG study IDs with Core. Preserve column names and order, row selection, score filtering, and earliest fitting study. - Use the existing MODELS registry for curve scoring in place of CURVES. Keep GOLD because the generic score job reads it. - Catch lookup, database, and validation failures when loading a preview pipeline, preserving the existing warning. Keep execution-boundary exception handling for submitted tasks, telemetry and shutdown. - Name the association test for the missing-champion case. Preserve its assertion and the other test assertions. 3. Everything in its place - Keep SQL in Persistance, cohort shaping in models, and tests in their existing testpaths. Keep the association fits together with their shared design and result machinery.
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
"""The association fit and its parity with the pinned tea-lib source."""
|
||||
|
||||
import importlib.util
|
||||
import sys
|
||||
from pathlib import Path
|
||||
@@ -40,7 +38,6 @@ def test_ordinal_on_monotone_trend():
|
||||
def test_pairs_and_item_availability():
|
||||
assert len(a.pairs("item")) == 41
|
||||
assert len(a.pairs("domain")) == 15
|
||||
# Item order in the source, translated by meaning into the platform catalog names.
|
||||
assert ADOS2_ITEMS == [
|
||||
"vocalization_directed", "pointing", "gestures", "unusual_eye_contact",
|
||||
"facial_expressions", "gaze_integration", "shared_enjoyment", "response_to_name",
|
||||
|
||||
Reference in New Issue
Block a user