{
  "schema_version": 1,
  "reviewed": "2026-11-04",
  "title": "Prediction, folds and train-only preparation",
  "records": [
    {
      "id": "prediction-mean-phase2",
      "title": "Train-only mean PLSpredict/CVPAT",
      "status": "bounded_retained_comparison_pass",
      "quickpls_version": "Retained training-mean v4 prediction witness",
      "references": [
        "cSEM 0.6.1",
        "statsmodels 0.14.4",
        "NumPy 1.26.4",
        "SciPy 1.15.2"
      ],
      "scope": "128-row two-block,5fold x2repeat and holdout;11 reconstructed assignments.",
      "counts": {
        "compared_numeric_or_mask_cells": 5766,
        "outside_recorded_gate": 0,
        "distinct_ledger_fixture_labels": 2,
        "independent_study_count": null
      },
      "maximum_recorded_absolute_difference": 4.1950443119276315e-10,
      "selected_compared_rows": [
        {
          "receipt": "prediction-comparison-r2.json",
          "native_execution": "accepted B source-bound retained witness; not rerun",
          "reference_execution": "fresh cSEM0.6.1 training weights, statsmodels0.14.4 OLS, SciPy1.15.2 tails, independent loss/mask arithmetic",
          "fixture": "prediction-mean/holdout",
          "cell": "holdout/aggregate_cases/0/mean_ia_squared_loss",
          "native": 0.1598254761528995,
          "reference": 0.1598254761528995,
          "abs_error": 0.0,
          "relative_error": 0.0,
          "mask_agrees": true,
          "passed": true,
          "absolute_tolerance": 1e-08,
          "relative_tolerance": 1e-08,
          "evidence_kind": "external-library-match + independently-implemented-math",
          "convention_alignment": "Fresh cSEM normalized training weights; statsmodels OLS; independent training-only preparation/held-out masks/case aggregation and SciPy Student-t"
        },
        {
          "receipt": "prediction-comparison-r2.json",
          "native_execution": "accepted B source-bound retained witness; not rerun",
          "reference_execution": "fresh cSEM0.6.1 training weights, statsmodels0.14.4 OLS, SciPy1.15.2 tails, independent loss/mask arithmetic",
          "fixture": "prediction-mean/holdout",
          "cell": "holdout/aggregate_cases/0/mean_lm_squared_loss",
          "native": 0.3038682941098941,
          "reference": 0.303868294109894,
          "abs_error": 5.551115123125783e-17,
          "relative_error": 1.8268161669799682e-16,
          "mask_agrees": true,
          "passed": true,
          "absolute_tolerance": 1e-08,
          "relative_tolerance": 1e-08,
          "evidence_kind": "external-library-match + independently-implemented-math",
          "convention_alignment": "Fresh cSEM normalized training weights; statsmodels OLS; independent training-only preparation/held-out masks/case aggregation and SciPy Student-t"
        },
        {
          "receipt": "prediction-comparison-r2.json",
          "native_execution": "accepted B source-bound retained witness; not rerun",
          "reference_execution": "fresh cSEM0.6.1 training weights, statsmodels0.14.4 OLS, SciPy1.15.2 tails, independent loss/mask arithmetic",
          "fixture": "prediction-mean/holdout",
          "cell": "holdout/aggregate_cases/0/mean_squared_loss",
          "native": 0.31479713250214364,
          "reference": 0.3147971325021685,
          "abs_error": 2.4868995751603507e-14,
          "relative_error": 7.90000707882312e-14,
          "mask_agrees": true,
          "passed": true,
          "absolute_tolerance": 1e-08,
          "relative_tolerance": 1e-08,
          "evidence_kind": "external-library-match + independently-implemented-math",
          "convention_alignment": "Fresh cSEM normalized training weights; statsmodels OLS; independent training-only preparation/held-out masks/case aggregation and SciPy Student-t"
        },
        {
          "receipt": "prediction-comparison-r2.json",
          "native_execution": "accepted B source-bound retained witness; not rerun",
          "reference_execution": "fresh cSEM0.6.1 training weights, statsmodels0.14.4 OLS, SciPy1.15.2 tails, independent loss/mask arithmetic",
          "fixture": "prediction-mean/holdout",
          "cell": "holdout/aggregate_cases/1/mean_ia_squared_loss",
          "native": 0.6125946301910633,
          "reference": 0.6125946301910633,
          "abs_error": 0.0,
          "relative_error": 0.0,
          "mask_agrees": true,
          "passed": true,
          "absolute_tolerance": 1e-08,
          "relative_tolerance": 1e-08,
          "evidence_kind": "external-library-match + independently-implemented-math",
          "convention_alignment": "Fresh cSEM normalized training weights; statsmodels OLS; independent training-only preparation/held-out masks/case aggregation and SciPy Student-t"
        },
        {
          "receipt": "prediction-comparison-r2.json",
          "native_execution": "accepted B source-bound retained witness; not rerun",
          "reference_execution": "fresh cSEM0.6.1 training weights, statsmodels0.14.4 OLS, SciPy1.15.2 tails, independent loss/mask arithmetic",
          "fixture": "prediction-mean/holdout",
          "cell": "holdout/aggregate_cases/1/mean_lm_squared_loss",
          "native": 0.13799350615661515,
          "reference": 0.13799350615661557,
          "abs_error": 4.163336342344337e-16,
          "relative_error": 3.0170523659418896e-15,
          "mask_agrees": true,
          "passed": true,
          "absolute_tolerance": 1e-08,
          "relative_tolerance": 1e-08,
          "evidence_kind": "external-library-match + independently-implemented-math",
          "convention_alignment": "Fresh cSEM normalized training weights; statsmodels OLS; independent training-only preparation/held-out masks/case aggregation and SciPy Student-t"
        },
        {
          "receipt": "prediction-comparison-r2.json",
          "native_execution": "accepted B source-bound retained witness; not rerun",
          "reference_execution": "fresh cSEM0.6.1 training weights, statsmodels0.14.4 OLS, SciPy1.15.2 tails, independent loss/mask arithmetic",
          "fixture": "prediction-mean/holdout",
          "cell": "holdout/aggregate_cases/1/mean_squared_loss",
          "native": 0.13013288316017724,
          "reference": 0.1301328831601544,
          "abs_error": 2.2842838731662596e-14,
          "relative_error": 1.755347163372223e-13,
          "mask_agrees": true,
          "passed": true,
          "absolute_tolerance": 1e-08,
          "relative_tolerance": 1e-08,
          "evidence_kind": "external-library-match + independently-implemented-math",
          "convention_alignment": "Fresh cSEM normalized training weights; statsmodels OLS; independent training-only preparation/held-out masks/case aggregation and SciPy Student-t"
        }
      ],
      "limitations": [
        "Corrected uncentered loss-sum-squares mapping retained.",
        "No new installed prediction run."
      ],
      "reviewed_acceptance": {
        "gate_distribution": [
          {
            "absolute_tolerance": 1e-08,
            "relative_tolerance": 1e-08,
            "derivation": "explicit_per_cell",
            "numeric_or_mask_cells": 4124
          },
          {
            "absolute_tolerance": 0,
            "relative_tolerance": 0,
            "derivation": "explicit_per_cell",
            "numeric_or_mask_cells": 1504
          },
          {
            "absolute_tolerance": 1e-07,
            "relative_tolerance": 1e-07,
            "derivation": "explicit_per_cell",
            "numeric_or_mask_cells": 138
          }
        ],
        "formula": "abs(native - aligned_reference) <= absolute_tolerance + relative_tolerance * abs(aligned_reference)",
        "gate_note": "The original checker applies these gates to its aligned values. Null/missing masks must also agree. Numeric and mask cells are not independent studies.",
        "comparison_count": 5766,
        "failed_count": 0,
        "null_reference_cells": 30,
        "receipt_name": "per-cell-comparisons.json",
        "receipt_sha256": "bd835308112faf88620fadeb11bd5a56cc125badb1bd72a222594124ab457e95"
      },
      "producer_identity_evidence": {
        "source_name": "prediction-mean-native-witness-r1.json",
        "sha256": "73bb5d5c109b8cfeaca6d13c62e9c98ec6d5204541b5a3df9f7473a04d828b52",
        "reason": "engine_version is the method label compiled_prediction_training_mean_v4, not an application semantic version. Reference review does not rerun the app."
      },
      "source_records": [
        {
          "name": "PHASE2-REPORT.md",
          "sha256": "7e022a093f73bf108ce44c69913f658b01021148b969edffa4b45da9a42b080e"
        }
      ],
      "fresh_current_store_binary_comparison": false,
      "public_extract_scope": "Curated factual comparison extract. Input datasets and private raw artifacts are not redistributed. Not a complete rerunnable package."
    }
  ]
}
