Repository navigation
[R14 integration] Full Python port stack + live R cache + source-faithful fixes (DRAFT) - #192
Conversation
…4 quartile checks
R 14.0 failure analysis and corrective commits (2026-11-06)The cache generator completed 2,713 R 14.0 reference entries across 78 function shards from the exact upstream NNS source commit Highest-volume failure categories
The current R 14.0 Native dependency remains open: NNS-core PR #40 already contains much of the corrected type-7 gravity / observed-center mode implementation but is not merged as an accepted core snapshot. Its companion NNS.dep multi-level changes (core #38) also require a compatible Python binding. Old tests asserting native-vs-Python bit identity against an obsolete core correctly identify a native sync gap, but they must not be skipped to manufacture green. CI and merge safety
Run: https://github.com/OVVO-Financial/NNS-python/actions/runs/42262104902 Next repairs in source-truth order(1) Land/validate the R14-compatible NNS-core native port, then re-vendor an accepted snapshot; (2) align |
Verified delta: R14 primitive corrections (source-authored, not tolerance changes)The first full diagnostic matrix run after updating Python gravity/mode/partition paths is 42262104902. Python 3.11 offline R 14.0 parity improved from 581 failures / 1,528 passes to 430 failures / 1,679 passes: 151 fewer mismatches. Coverage is unchanged (12 skips). Changes by source group include regression failures 182 → 114, partition 53 → 14, and multivariate regression 21 → 3. The independent dependence (46), causation (24), and seasonality (20) mismatches remain unchanged, consistent with their substantive R14 algorithm changes. The same run had 18 invariant failures, many of them tests asserting identity against the outdated C++ NNS-core snapshot rather than against R14; two explicit invariants expecting old R13 mode tie behavior were corrected to assert R14 source semantics in subsequent commits. Native-boundary parity still needs acceptance/port of the newer NNS-core stack (#38–#40), not skipped tests. The invariant/parity diagnostic steps are Latest head is still a draft integration branch, and merges remain blocked. The next CI run after the two invariant assertion updates is 42262634551. |
…evel-average scores
…ociation and aligned Uni.caus
…erving debias and discrete blend
…iscrete mode for classes
…g numeric assertions
…selects Python backend
…azard exactly as R14
…tent cached results
…changing algorithm
…ant-target area logic
…ctors and predictive sets
…ection Use class indicator frequency models and out-of-fold probability matrices, class-specific dimension counts, and explicit prediction sets from R/Classification_Stack.R; retain the numeric regression stack separately.
…cific coefficient equations
R14 source-fidelity repair update (November 6, 2026)Verified code progress
Source-truth details
Still blocking3.11 remaining parity failures by module at run 42302249292: PR #192 stays draft and unmerged. Do not merge or claim parity complete until the mandatory gate is genuinely green. |
|
R 14.0 parity-cache rebuild follow-up (2026-11-06)
Audit runs:
Prior baseline (NOT green): 2,713 cache entries/78 shards; 585 live parity failures, 14 invariant failures, 106 cache-only parity failures (30 missing R reference keys), and 115 failures in combined fallback tests. Do not merge until the rebuilt cache and source-faithful test gates pass. Missing R entries, R-side exceptions, numeric discrepancies, and Python regressions must remain distinct; do not invent oracle values or relax tolerances to make CI green. |
|
R14 integration control point (not merge-ready). All 41 earlier Python port PRs form one linear ancestry chain, represented in #189. #191 is the R14 cache-only audit atop that head; this PR #192 is the single cumulative implementation-fix head. Please see Current source corrections: R14 exact-cell regression for fully categorical designs ( |
…ut weakening parity
Integration gate — preserving all 41 prior function PRs
Draft / BLOCKED — do not merge. This PR is built on #191, which is built on the complete 41-PR implementation head #189. The full function work is inherited; it has not been abandoned, duplicated, or rewritten. The initial cache-only PR #190 targets
mainand must not be landed separately.Verified pre-fix baseline: R14 live cache 2,745 entries in 78 shards; offline parity 88 failed / 2,021 passed; native invariants 14 failed / 694 passed. The newest regression and ARMA changes are pending fresh CI; do not extrapolate those counts.
Active fixes: categorical exact-cell
NNS.reg, R14NNS.ARMA.optimreturn/bias semantics, corresponding invariant coverage, heterogeneous R codec. Original owners: regression/labels #154/#155; stack/boost #154/#161/#168/#176; ARMA/VAR #150/#159/#166/#174/#182. Full source-to-PR ledger and no-regression landing plan: R14 parity integration gate.Automatic parity-cache refresh from the R source of truth.
For the one-shot stack audit, this PR targets draft #191 (all port PRs
through #189). Do NOT merge until deterministic parity is verified.
OVVO-Financial/NNS7b07a837c130ba7220dbe16c584221508757d5ae14.0NNS_14.0.tar.gzNNS_14.0.zipfailurefailureThe exact R source package was installed and the committed parity cache was regenerated.
sync/nns_source.jsonrecords this R commit as the behavioral-truth provenance. Any remaining Python/R parity mismatches are retained in the workflow diagnostics and should be repaired against this R-authored baseline.Cache changes by function
Co.LPMCo.UPMD.LPMD.UPMLPM.VaRLPMLPM.ratioNNS.ANOVA.customNNS.ARMANNS.ARMA.optim.customNNS.ARMA.pred_intNNS.CDF.customNNS.FSDNNS.FSD.uniNNS.MC.gridNNS.SD.cluster.dendrogramNNS.SD.clusterNNS.SD.efficient.setNNS.SSDNNS.TSDNNS.VAR.customNNS.boost.numericNNS.causNNS.copulaNNS.depNNS.diff.customNNS.gravityNNS.meboot.diagnosticsNNS.meboot.stat_summaryNNS.momentsNNS.normNNS.partNNS.reg.factor_dimredNNS.regNNS.seasNNS.stack.numericNNS_mreg_predict_path_v2_cppNNS_mreg_predict_v2_cppUPM.VaRUPMUPM.ratiody.d.scalardy.dx.numericlabels.boost.nameslabels.mreg.factor_ylabels.mreg.raw_factorlabels.reg.factor_designlabels.reg.factor_xlabels.reg.factor_ylabels.reg.logical_framelabels.reg.logical_unilabels.reg.numeric_stringslabels.reg.point_nameslabels.reg.raw_nameslabels.stack.factor_xlabels.stack.factor_ylabels.stack.nameslabels.stack.nbest_all