Inference Configuration

The shipped inference YAML is the canonical example. Active keys are listed below; unknown non-sparse_sc_* keys are not comprehensively rejected, so a misspelling can be ignored. Compare production configs with this table.

KeyType/defaultContract
schema_versionstring, 1.0Supported config schema.
data_pathstringInput CSV for file mode.
location_col_namestringGeography identifier column.
date_col_namestringPeriod column.
date_formatstringExplicit pandas date format.
outcome_col_namestringNumeric outcome column.
covariate_col_nameslist or nullOptional covariates passed to the loader.
treatment_unit_idslistTreated geography identifiers.
intervention_date_strstringFirst observed treated period.
cooldown_periodsnon-negative integer, 0Observed periods excluded after launch.
measurement_start_date_strstring or nullOptional explicit start; must agree with cooldown.
duplicate_policyerror, mean, sumDuplicate unit-period handling.
missing_outcome_policyerror, drop_unit, drop_period, impute_with_reportIncomplete-panel handling.
min_pre_treatment_periodsinteger, 12Minimum pre-period observations in file mode.
min_post_treatment_periodsinteger, 1Minimum measured post-period observations in file mode.
estimatorsparsescOnly implemented estimator selector.
output_dirstringArtefact directory.
create_plotsbooleanCLI plot default.

SparseSC runtime keys:

KeyDefault or role
sparse_sc_model_typeSparseSC model type, normally retrospective.
sparse_sc_fast_estimationSelects SparseSC fast fitting path.
sparse_sc_return_ciRequests placebo confidence intervals.
sparse_sc_T0, sparse_sc_T1SparseSC history-length controls; not cooldown semantics.
sparse_sc_max_n_plMaximum placebo assignments used.
sparse_sc_placebo_seedNon-negative seed for sampled placebo assignments; default 110011.
sparse_sc_levelRequested interval level.
sparse_sc_lasso_max_iter, sparse_sc_lasso_tolForwarded as fast-path CV options; the RidgeCV-backed path may ignore them. They do not configure the full path.
sparse_sc_cv_folds, sparse_sc_scoring, sparse_sc_gcv_modeSupported adapter controls.

Assumption keys are run_assumption_checks, require_assumption_checks, fail_on_assumption_error, parallel_trends_method, spillover_method, and assumption_alpha. Only the parallel-trends diagnostic is gate-eligible. The interference screen is always advisory.

The non-prefixed compatibility keys lasso_selection, lasso_fit_intercept, and lasso_normalize are forwarded only when the fast path is selected. Their support depends on the installed scikit-learn API; prefer the documented sparse_sc_* controls for new configurations.

There is no active treatment_col or end_date key. Define treatment through treatment_unit_ids; trim the input panel to a pre-specified end date. Inference also does not consume shapemap_file or shapemap_id_column; shapemap-backed maps belong to the donor stage.