9e5aa200925c0d3fea465a76d2147d90329f6584
Port the association estimator and add its source-parity tests in models. Wire cohort selection, fingerprint deduplication, MLflow registration, and champion scoring into the TEA jobs. Add both bronze tables, gold models and key tests, and extend the existing WebApi hospital gate. Follow the spec's resolved silver/bronze cohort and full CSV fingerprint. No adaptations beyond the resolved spec. Preserve the source numerical code with Ruff formatting and reflowed docstrings. Internal choices: - Select the first ADOS-2 with a SQL window and assemble predictor columns by EDF in pandas. Normalize dates to days across SQLite and PostgreSQL and use the undated CSS path if evaluation date is absent. - Treat unstaged analysis or score tables as empty inputs. Retain the existing as_of argument without a cutoff in the specified cohort. - Keep missing and non-finite report and bronze values as null, including open confidence limits. Store counts as bigint and direction as boolean. Reuse the EEG bronze merge writer after deleting the prior projection. - Use a NumPy default_rng seeded with 0, uniform ages, normal predictors, and independent draws of module, item codes, and CSS for source parity. Load the reference modules in a test-only namespace with stub contracts. - Record model and WebApi changes in their existing submodule branches and update the corresponding gitlinks in the parent commit. Checks: Ruff lint and format check passed. lint-imports kept both contracts. The association unit suite passed all five tests. Eight lightweight TEA job tests passed, with two integration tests deselected. SQLite smoke checks passed for cohort, registration and deduplication, promotion, prediction, bronze writes, and both dbt models and their four key tests. Fixture replay matched the 15 published pairs and 470 published scores. The full hospital API gate runs on the test machines.
Description
No description provided
Languages
Python
100%