The classifier's routines join the fitting steps: analytic_method, class_balance, output_confidence and routines

They depend only on the fitted pipeline and the split, so every scenario that lists models.steps.model_fitting
records them; sampling and missing_data stay in cin2_logistic, which owns windowed_outcomes and index_sample_results.
Moved as written in the merge (git blame -C follows them to 1b45bc6).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
This commit is contained in:
2026-11-19 20:45:44 -06:00
parent 6fbf573999
commit dce29670a4
3 changed files with 49 additions and 44 deletions
+6 -5
View File
@@ -50,13 +50,14 @@ def test_the_oldest_members_train_and_the_newest_test(labelled):
assert sorted(train["pac_id"].tolist() + test["pac_id"].tolist()) == list(range(1, 41))
def test_the_driver_needs_only_the_members_the_predictors_and_the_fraction(labelled):
"""Pins down the dataflow's external inputs: the three required ones; `target_column`, `split_order` and
`max_iter` have defaults. Fails if a node reads a setting from a global or the disk instead of taking it as an
input, or if a new input appears without a default."""
def test_the_driver_needs_only_the_members_the_predictors_the_fraction_and_the_scenarios_routines(labelled):
"""Pins down the dataflow's external inputs: the three required ones, and `sampling` and `missing_data`, the two
routines (ML-01a) only a scenario can write; `target_column`, `split_order`, `max_iter` and `calibration_bins` have
defaults. Fails if a node reads a setting from a global or the disk instead of taking it as an input, or if a new
input appears without a default."""
required = {v.name for v in _driver().list_available_variables()
if v.is_external_input and v.originating_functions and not _has_default(v)}
assert required == {"labelled_members", "predictor_columns", "train_fraction"}
assert required == {"labelled_members", "predictor_columns", "train_fraction", "sampling", "missing_data"}
def _has_default(variable) -> bool: