Commit 2d9a548
committed
Mirror R's tryCatch fallback around NNS.dep in regression dependence
R Regression.R wraps the NNS.dep call in tryCatch with a 0.1 fallback
before averaging with the copula measure; the port only guarded the
copula half. Wrap the nns_dep call the same way so the order=NULL
dependence chain is a literal transcription of the R block.
Verified against live R NNS 13.1 on nine datasets spanning n<100 and
n>=100: NNS.dep and NNS.copula components bit-identical, composed
dependence within 1 ulp, and every resolved dep.reduced.order equal
(order=NULL and integer overrides).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BPbZvtDw4h2XJo9w5hw57h1 parent 2a68bec commit 2d9a548
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1071 | 1071 | | |
1072 | 1072 | | |
1073 | 1073 | | |
1074 | | - | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1075 | 1080 | | |
1076 | 1081 | | |
1077 | 1082 | | |
| |||
0 commit comments