From e0c5c9373797b6f12699f9dd64311b13a703edbb Mon Sep 17 00:00:00 2001 From: OVVO-Financial <18292393+OVVO-Financial@users.noreply.github.com> Date: Thu, 16 Jul 2026 01:05:58 +0000 Subject: [PATCH 1/6] Regenerate R parity cache for NNS 13.1 --- tests/_r_cache.json | 938 +++++++++++++++++++------------------------- 1 file changed, 403 insertions(+), 535 deletions(-) diff --git a/tests/_r_cache.json b/tests/_r_cache.json index 3774453..a6240ab 100644 --- a/tests/_r_cache.json +++ b/tests/_r_cache.json @@ -938,48 +938,6 @@ ] ] }, - "027c8ffa64dd540ae2976abeb04238218d41b26acbd208a3ca9981831a5e1335": { - "First": [ - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0 - ], - "Second": [ - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0 - ] - }, "027da550d8f036cf1025df664e878a5ac5103a5a12e0e42305f6c9c65386cc3d": [ "X_3", "X_1", @@ -30328,7 +30286,7 @@ 0.00847476722519658, 0.0057337704811613, 0.0066105705972086, - 0.0135571600095032, + 0.0135571600095021, 0.0172127572967413, 0.0172172459888404, 0.0132488834129134, @@ -30337,13 +30295,13 @@ 0.01621006088724, 0.0159533331882993, 0.009197329599411, - 0.0210479613558714, + 0.0210479613558707, 0.0325242176285379, 0.033734957120902, 0.0246366646142051, 0.00529417463961535, 0.0358954711374246, - 0.0954696033562819, + 0.0954696033562787, 0.118393688663786, 0.0740950832032619, 0.0, @@ -30454,7 +30412,7 @@ -0.879018242847105, -0.677288704328039, -0.469613532790042, - -0.254636256401145, + -0.254636256401146, -0.0428261290413219, 0.164346958747834, 0.365461852530879, @@ -30485,8 +30443,8 @@ -2.83106627321256 ], "Prediction.Accuracy": [], - "R2": 0.998030711734226, - "SE": 0.0880817607571853, + "R2": 0.998030711734227, + "SE": 0.0880817607571852, "class.levels": [], "derivative": { "Coefficient": [ @@ -62379,14 +62337,14 @@ "Confidence_Level": 0.95, "Control": 0.0191268165633628, "Control_CDF": 0.559051831188266, - "Effect_Size_LB.2.5%": -0.599898243350202, - "Effect_Size_UB.97.5%": 1.0709241070904, + "Effect_Size_LB.2.5%": -0.599414099584507, + "Effect_Size_UB.97.5%": 1.11123487221252, "Grand_Statistic": 0.142983064395218, - "Lower 95% CI": 0.123536015462047, - "Robust Certainty Estimate": 0.613668172774623, + "Lower 95% CI": 0.17421002658106, + "Robust Certainty Estimate": 0.571184979253059, "Treatment": 0.266839312227074, "Treatment_CDF": 0.439774510459534, - "Upper 95% CI": 0.875973618614218 + "Upper 95% CI": 0.856690219972253 }, "17c46fcc5682d4b241f0133ff0ec7ca10862ad67c7784593002b99bbb7b12e91": { "ensemble": { @@ -78146,10 +78104,6 @@ ] ] }, - "1c12e980486eeaca763aced8a5bdd57506c059ef687c8373bb5499d2d4efc255": { - "First": 0.590518544152217, - "Second": -0.476914377123436 - }, "1c202e6105d5f76da293c980af1932a27b0452d48395bd6c3fd7544594beb3fd": { "x": [ -2.0, @@ -153549,10 +153503,10 @@ }, "Point.est": [ 2.35876858969354, - 2.87974538349059 + 2.8797453834906 ], "Prediction.Accuracy": [], - "R2": 0.228855792528303, + "R2": 0.228855792528304, "SE": 1.15820717336244, "class.levels": [], "derivative": { @@ -189891,11 +189845,6 @@ }, "x.star": [] }, - "35c7d6c211012d71fb8b44cede6a40c4df0ed7ba88a95fb49679d9b17d4160bb": { - "First": 0.217549902507561, - "Mixed": 0.0, - "Second": 1.00459329067506 - }, "35ec2bdf1bf3abdf8fa0121e0b28b190b4bb0ccd2a29f2c8e27b37e48f9c6205": { "Fitted.xy": { "NNS.ID": [ @@ -190852,17 +190801,6 @@ 0.0256334380030913, 0.0 ], - "36e401084ca4ff0ba263d779744eca50aac398c2c3104cc820bac7b3063ca471": { - "First": [ - -0.403974757351778, - -0.11129147028005 - ], - "Mixed": 0.0, - "Second": [ - 0.980838779122428, - 1.04432649828892 - ] - }, "36f1513609e340ff60c22fb4905d5cf064172f253f1dd1d39d6bfb5dac46dadc": 0.752193804474994, "36f3f9d9bcf6740c79297a89010701b2469200cb1058903e5e6089ee0fa76397": { "clpm": [ @@ -238833,33 +238771,33 @@ -0.805142415507911, -0.595508310993011, -0.402156962100874, - -0.226871539290751, - -0.0711899052454172, - 0.0636140480052259, - 0.17654546805344, - 0.26690198388824, - 0.334274477439033, - 0.378549332083891, - 0.399911971638764, - 0.398845894058585, - 0.376127063254627, - 0.332813782966756, - 0.270232341714826, - 0.189958850015671, - 0.0937977808938579, - -0.0162402639156416, - -0.137958861816914, + -0.22687153929075, + -0.0711899052454166, + 0.0636140480052267, + 0.176545468053441, + 0.266901983888241, + 0.334274477439034, + 0.378549332083892, + 0.399911971638765, + 0.398845894058586, + 0.376127063254628, + 0.332813782966757, + 0.270232341714827, + 0.189958850015672, + 0.0937977808938584, + -0.0162402639156407, + -0.137958861816913, -0.269005677144386, -0.406903964045453 ], "conf.int.pos": [ - -0.92470377553259, + -0.924703775532589, -0.757379632763165, -0.571754792314946, -0.369439226913285, - -0.152235737131522, - 0.0778829175289943, - 0.318794097522075, + -0.152235737131521, + 0.0778829175289952, + 0.318794097522074, 0.568183182564439, 0.823548711235276, 1.08229188857327, @@ -238929,42 +238867,42 @@ 7.33349518323306 ], "residuals": [ - -0.267234166150939, - -0.14606927841946, - -0.0179987880651109, - 0.114627157262405, - 0.249423911107323, - 0.384002788479386, - 0.515996571322857, - 0.643020598843589, - 0.762678820928141, - 0.872651930437969, - 0.970733504382263, - 1.05486246347258, + -0.267234166150943, + -0.146069278419465, + -0.0179987880651149, + 0.1146271572624, + 0.249423911107318, + 0.384002788479382, + 0.515996571322851, + 0.643020598843583, + 0.762678820928136, + 0.872651930437963, + 0.970733504382257, + 1.05486246347257, 1.12315412331279, - 1.17392903605173, - 1.20573886305151, + 1.17392903605172, + 1.2057388630515, 1.21738860854277, - 1.20795467361906, - 1.1767983478318, + 1.20795467361905, + 1.17679834783179, 1.12357452822387, 1.04823562812648, - 0.951030796382917, - 0.832501115181719, - 0.693473002470479, - 0.535039037367969, - 0.358540616007579, - 0.165552506954199, - -0.0421362418955977, - -0.262544945025054, - -0.493527123445094, - -0.732799057181041, - -0.977970439677588, - -1.22657646011547, + 0.951030796382912, + 0.832501115181713, + 0.693473002470474, + 0.535039037367964, + 0.358540616007574, + 0.165552506954194, + -0.0421362418956022, + -0.262544945025059, + -0.493527123445099, + -0.732799057181045, + -0.977970439677593, + -1.22657646011548, -1.47610865264549, - -1.72404169987823, + -1.72404169987824, -1.96786763177047, - -2.20512935907171 + -2.20512935907172 ], "x": [ 0.0150579266385732, @@ -239044,51 +238982,51 @@ ], "y.hat": [ -3.07249488383984, - -2.90517074107041, - -2.71954590062219, - -2.51723033522053, + -2.90517074107042, + -2.7195459006222, + -2.51723033522054, -2.30002684543877, - -2.06990819077825, - -1.82899701078517, + -2.06990819077826, + -1.82899701078518, -1.57960792574281, -1.32424239707197, - -1.06549921973397, - -0.806034734576143, - -0.548524498692458, - -0.295624217132801, - -0.0499308417328191, - 0.186055272242139, - 0.409966325428297, - 0.619600429943197, - 0.812951778835333, - 0.988237201645456, + -1.06549921973398, + -0.806034734576149, + -0.548524498692464, + -0.295624217132807, + -0.049930841732825, + 0.186055272242133, + 0.409966325428291, + 0.619600429943191, + 0.812951778835328, + 0.988237201645451, 1.14391883569079, 1.27872278894143, - 1.39165420898965, - 1.48201072482445, + 1.39165420898964, + 1.48201072482444, 1.54938321837524, - 1.5936580730201, + 1.59365807302009, 1.61502071257497, 1.61395463499479, 1.59123580419083, 1.54792252390296, 1.48534108265103, - 1.40506759095188, - 1.30890652183007, - 1.19886847702057, + 1.40506759095187, + 1.30890652183006, + 1.19886847702056, 1.07714987911929, - 0.946103063791821, - 0.808204776890755 + 0.946103063791816, + 0.808204776890749 ] }, "Point.est": [ -3.07249488383984, - -0.295624217132801, - 1.5936580730201 + -0.295624217132807, + 1.59365807302009 ], "Prediction.Accuracy": [], "R2": 0.763068556759632, - "SE": 0.984514420247087, + "SE": 0.984514420247086, "class.levels": [], "derivative": { "Coefficient": [ @@ -239125,10 +239063,10 @@ "pred.int.neg": [ -4.28760362477604, -1.51073295806901, - 0.378549332083891 + 0.378549332083892 ], "pred.int.pos": [ - -0.92470377553259, + -0.924703775532589, 1.85216689117444, 3.74144918132734 ] @@ -252141,10 +252079,6 @@ ] ] }, - "4f8c5e7f1571026f3ee377447fb1f6ed67fae84c9a2af80c732f60694956ce65": { - "First": 0.0, - "Second": 0.0 - }, "4fb9634806eba3b8486e3afc372527349234190d8e3a89346e576dd51ca27db4": [ 0.0, 0.00215404357343384, @@ -253760,17 +253694,17 @@ -0.173921430421954, 0.0304029138179988, 0.695505368014891, - 0.707782357219481, + 0.70778235721948, 1.17300967998221, 1.18303042076271, 1.6987672872524, 1.97211149115235, - 2.42923066200238, - 2.42498118479126, - 2.43300912223378, - 2.71390889093988, - 2.71446613358699, - 2.77237039159252 + 2.44299449764515, + 2.43828849081163, + 2.44491582752605, + 2.62193953706687, + 2.62714342449561, + 2.62348057035851 ] }, "528937603b5f556ac0a517c3b6097a74adf505a7f92be60a9f72ceb4f01d6e55": { @@ -269784,7 +269718,7 @@ 0.192010732428617, 0.211240413770698, 0.22876449116343, - 0.244327856096221, + 0.24432785609622, 0.257688458776483, 0.268618920227306, 0.276908046674694, @@ -269792,17 +269726,17 @@ 0.284806767857378, 0.284086965964422, 0.280069229655743, - 0.272641922998295, - 0.261716118446225, - 0.247226189115242, + 0.272641922998296, + 0.261716118446227, + 0.247226189115243, 0.229130245870147, 0.207410416314455, 0.182072963823945, 0.172534998668692, 0.192686615238916, 0.20261221270614, - 0.202381631414573, - 0.192132353791142, + 0.202381631414571, + 0.19213235379114, 0.172068588686399, 0.142459911304707, 0.103639467782102, @@ -269810,7 +269744,7 @@ 0.0, -0.0638568722634818, -0.135007614791191, - -0.212842403389903, + -0.212842403389902, -0.29670689684793 ], "x": [ @@ -269935,12 +269869,12 @@ -1.36956703994095, -1.19357668159803, -1.01440864947764, - -0.832850942581507, + -0.832850942581506, -0.649707475599994, -0.465792724687319, -0.281926302895418, -0.098927501395087, - 0.0823901671590823, + 0.0823901671590819, 0.261224386777752, 0.43678938171397, 0.608321149879131, @@ -270086,14 +270020,14 @@ 1.0 ], "first.derivative": [ - 1.54673290262586, - 1.58817145541601, - 1.57667800037126 + 1.54673290262598, + 1.58817145541624, + 1.57667800037164 ], "second.derivative": [ - 0.0587852248500207, - 0.0154330454755768, - -0.0321099514025849 + 0.0587852248500906, + 0.015433045475724, + -0.0321099514024272 ] }, "59a54c9b089ada22a30460699dbf621092795b98f8327893bef62f979a38d7ee": 2.0, @@ -291137,7 +291071,7 @@ -0.145546370539265, -0.167025044391149, -0.186465189363946, - -0.203859135656178, + -0.203859135656179, -0.219212841538871, -0.232545853672326, -0.243891176921648, @@ -291153,7 +291087,7 @@ -0.264209079238342, -0.259328705923298, -0.25374392798275, - -0.247613746362777, + -0.247613746362778, -0.24110079450173, -0.234370255160584, -0.227588760274326, @@ -291165,7 +291099,7 @@ -0.0773052055254873, -0.0556046974539179, -0.036902415107384, - -0.0213508007874763, + -0.021350800787475, -0.00908131274732638, -0.000203549654619994, 0.00519547935637732, @@ -291297,7 +291231,7 @@ -1.36042032332147, -1.21490681169795, -1.06494056781621, - -0.911098511654006, + -0.911098511654007, -0.753983376836209, -0.59421969631425, -0.432449642857835, @@ -291309,7 +291243,7 @@ 0.543213203876133, 0.700479736323405, 0.854504767068137, - 1.00468434383992, + 1.00468434383991, 1.15044012582337, 1.29122323551806, 1.426517914367, @@ -316169,7 +316103,7 @@ ], "Second": [ -1.83626604005862, - -1.23883219896328, + -1.23883219896327, 0.116192475669381, 1.72971530806308, 2.77689831081154, @@ -316183,7 +316117,7 @@ 0.956921349291437, -0.767978928105075, -0.486746093858317, - 0.367124117240188, + 0.367124117240187, -0.356588713618893, -0.476914377123436 ] @@ -325913,10 +325847,6 @@ ] ] }, - "78c1eb2b904c44c9885d6a681e2ff2af8a65d66d1d2d2c00dd8b55a6919725f6": { - "First": 0.217549902507561, - "Second": 1.00459329067506 - }, "78d3e63bce56038461e2f5d4fced22fd5c237fcb20103c441ed79d34bf24d786": { "feature.frequency": [ 2.0, @@ -353574,8 +353504,8 @@ -0.0070688155087435, -0.00736197745686429, -0.00370317042705715, - -0.00185246089973323, - -0.00262339815942902, + -0.00185246089973301, + -0.0026233981594288, -0.00137552959862419, -0.00342906898074935, -0.00344114330720346, @@ -353596,19 +353526,19 @@ 0.00162100031916435, 0.00190584019985218, 0.00194936241444044, - 0.00276561405267373, + 0.00276561405267284, 0.00278729554880641, 0.00739676792176081, 0.0121801902088494, 0.00708711105253013, - 0.0127635679717581, + 0.0127635679717555, -4.88498130835069e-15 ], "x": [ 0.00656298195132025, 0.00936214715854958, 0.012921464997476, - 0.0172503536130235, + 0.0172503536130236, 0.0223501428251207, 0.0282140601520579, 0.0348273019904685, @@ -353738,7 +353668,7 @@ ], "Prediction.Accuracy": [], "R2": 0.999998035307633, - "SE": 0.00433410433912336, + "SE": 0.00433410433912315, "class.levels": [], "derivative": { "Coefficient": [ @@ -353856,7 +353786,7 @@ 0.00656298195132025, 0.00936214715854958, 0.012921464997476, - 0.0172503536130235, + 0.0172503536130236, 0.0223501428251207, 0.0282140601520579, 0.0348273019904685, @@ -411865,11 +411795,6 @@ ] }, "99cd49821b78d19b758f3965f8f0c4d47b76f5532198f146b251ecaeeea916b5": 0.00814441872036257, - "99e28e666e3307b0e82459813894cde60b6040e0779aa093d5604fb802c258bc": { - "First": 0.0, - "Mixed": 0.0, - "Second": 0.0 - }, "99e66bbb53c7ef65b06847e388ff9fd791428e81dbc24296c80d3740d30c33aa": 0.720687553074808, "99f86af41e04ebce621a3b0122b0089e72db09a1b8b7a7d4ab5cc357ba76faa2": { "clpm": [ @@ -424791,7 +424716,7 @@ }, "results": [ 1.84956911813713, - 1.85136543790918, + 1.85136543790919, 1.85464595772136, 1.85091016260059, 1.84755215013631, @@ -425431,8 +425356,8 @@ }, "9c1d0005f2772c1189bb1a90329125eb04eea449906d880447d4d41bbaa6128a": { "eval.point": 0.0, - "first.derivative": 1.58817145541601, - "second.derivative": 0.0154330454755768 + "first.derivative": 1.58817145541624, + "second.derivative": 0.015433045475724 }, "9c2dc7cebccb1c77ec42f7750bbd0bb0f070736727f5a18c336789c5fdd1c857": "NO TSD EXISTS", "9c397561f7408a8a8637fe9cf9a494f00cac13f5b201a747b6176cd4c589a998": 0.336, @@ -514685,88 +514610,88 @@ 3.0 ], "conf.int.neg": [ - -1.22340448383785, - -1.17002886116556, - -1.11664847624097, - -1.06325849918412, - -1.00985410011509, - -0.956430449153901, - -0.902982716420623, - -0.849506072035304, - -0.795995686117997, - -0.742446876142017, - -0.688858032508514, - -0.635230452515772, - -0.581565547577085, - -0.527864729105743, - -0.474129408515038, - -0.420360997218261, - -0.366560906628705, - -0.312730548159659, - -0.258871333224416, - -0.204984673236268, - -0.151071979608505, - -0.097134663754419, - -0.0431741370873019, - 0.0108081889795553, - 0.0648109030328605, - 0.118832593659323, - 0.172871849445651, - 0.226927258978552, - 0.280997410844737, - 0.335080899120109, - 0.389176422992371, - 0.443282776206687, - 0.497398755879138, - 0.551523159125805, - 0.60565478306277, - 0.659792424806115, - 0.713934881471921, - 0.768080950176269, - 0.822229428035242, - 0.876379112164919 + -1.22340448383794, + -1.17002886116565, + -1.11664847624105, + -1.0632584991842, + -1.00985410011515, + -0.956430449153962, + -0.902982716420677, + -0.849506072035351, + -0.795995686118037, + -0.74244687614205, + -0.688858032508538, + -0.63523045251579, + -0.581565547577095, + -0.527864729105746, + -0.474129408515033, + -0.420360997218249, + -0.366560906628685, + -0.312730548159632, + -0.258871333224381, + -0.204984673236225, + -0.151071979608455, + -0.0971346637543619, + -0.0431741370872372, + 0.0108081889796273, + 0.0648109030329402, + 0.11883259365941, + 0.172871849445745, + 0.226927258978655, + 0.280997410844847, + 0.335080899120227, + 0.389176422992496, + 0.44328277620682, + 0.497398755879278, + 0.551523159125953, + 0.605654783062926, + 0.659792424806278, + 0.713934881472092, + 0.768080950176448, + 0.822229428035428, + 0.876379112165113 ], "conf.int.pos": [ - -0.167774197005115, - -0.114398574332826, - -0.0610181894082349, - -0.00762821235139349, - 0.0457761867176458, - 0.0991998376788304, - 0.152647570412108, - 0.206124214797427, - 0.259634600714734, - 0.313183410690714, - 0.366772254324218, - 0.420399834316959, - 0.474064739255646, - 0.527765557726988, - 0.581500878317693, - 0.63526928961447, - 0.689069380204027, - 0.742899738673072, - 0.796758953608315, - 0.850645613596464, - 0.904558307224226, - 0.958495623078312, - 1.01245614974543, - 1.06643847581229, - 1.12044118986559, - 1.17446288049205, - 1.22850213627838, - 1.28255754581128, - 1.33662769767747, - 1.39071118595284, - 1.4448067098251, - 1.49891306303942, - 1.55302904271187, - 1.60715344595854, - 1.6612850698955, - 1.71542271163885, - 1.76956516830465, - 1.823711237009, - 1.87785971486797, - 1.93200939899765 + -0.167774197005118, + -0.114398574332821, + -0.0610181894082228, + -0.0076282123513739, + 0.0457761867176726, + 0.0991998376788647, + 0.15264757041215, + 0.206124214797476, + 0.25963460071479, + 0.313183410690778, + 0.366772254324289, + 0.420399834317037, + 0.474064739255732, + 0.527765557727081, + 0.581500878317794, + 0.635269289614578, + 0.689069380204142, + 0.742899738673195, + 0.796758953608446, + 0.850645613596602, + 0.904558307224372, + 0.958495623078465, + 1.01245614974559, + 1.06643847581245, + 1.12044118986577, + 1.17446288049224, + 1.22850213627857, + 1.28255754581148, + 1.33662769767767, + 1.39071118595305, + 1.44480670982532, + 1.49891306303965, + 1.5530290427121, + 1.60715344595878, + 1.66128506989575, + 1.71542271163911, + 1.76956516830492, + 1.82371123700927, + 1.87785971486825, + 1.93200939899794 ], "gradient": [ -0.467922136642199, @@ -514811,46 +514736,46 @@ 0.600193735396032 ], "residuals": [ - -0.375162512049451, - -0.20401098957306, - -0.047016923897039, - 0.0955315538117302, - 0.223454014604779, - 0.336679678855112, - 0.4352482109265, - 0.519309353056892, - 0.5891214023039, - 0.645048399206659, - 0.687553425294982, - 0.717193918968422, - 0.73461859586739, - 0.740560730037819, - 0.735830432257024, - 0.721306120791925, - 0.697925274233473, - 0.666674563596619, - 0.628579467399206, - 0.584693478867143, - 0.536087018700036, - 0.483836169926085, - 0.429011353244899, - 0.372666061882385, - 0.315825774356386, - 0.259477161681855, - 0.204557702449739, - 0.151945814926961, - 0.102451609890836, - 0.0568083668764932, - 0.0156649121253358, - -0.0204212249196307, - -0.0509897752113644, - -0.0756825836213331, - -0.0942473858557913, - -0.106540472440655, - -0.11252821177602, - -0.112287416252749, - -0.106004547583175, - -0.0939737696980483 + -0.375162512049498, + -0.2040109895731, + -0.0470169238970711, + 0.0955315538117056, + 0.223454014604762, + 0.336679678855102, + 0.435248210926497, + 0.519309353056897, + 0.589121402303912, + 0.645048399206679, + 0.687553425295009, + 0.717193918968456, + 0.734618595867432, + 0.740560730037868, + 0.73583043225708, + 0.721306120791989, + 0.697925274233545, + 0.666674563596698, + 0.628579467399293, + 0.584693478867236, + 0.536087018700137, + 0.483836169926194, + 0.429011353245015, + 0.372666061882509, + 0.315825774356518, + 0.259477161681993, + 0.204557702449885, + 0.151945814927115, + 0.102451609890998, + 0.0568083668766621, + 0.0156649121255121, + -0.0204212249194464, + -0.0509897752111728, + -0.0756825836211339, + -0.0942473858555843, + -0.10654047244044, + -0.112528211775798, + -0.112287416252519, + -0.106004547582938, + -0.0939737696978034 ], "x": [ -2.0, @@ -514937,56 +514862,56 @@ 1.70929742682568 ], "y.hat": [ - -0.484459938875132, - -0.431084316202843, - -0.377703931278252, - -0.324313954221411, - -0.270909555152371, - -0.217485904191187, - -0.164038171457909, - -0.11056152707259, - -0.0570511411552832, - -0.00350233117930329, - 0.0500865124542005, - 0.103714092446942, - 0.157378997385629, - 0.211079815856971, - 0.264815136447676, - 0.318583547744453, - 0.37238363833401, - 0.426213996803055, - 0.480073211738298, - 0.533959871726447, - 0.587872565354209, - 0.641809881208295, - 0.695770407875412, - 0.749752733942269, - 0.803755447995575, - 0.857777138622037, - 0.911816394408365, - 0.965871803941266, - 1.01994195580745, - 1.07402544408282, - 1.12812096795509, - 1.1822273211694, - 1.23634330084185, - 1.29046770408852, - 1.34459932802548, - 1.39873696976883, - 1.45287942643463, - 1.50702549513898, - 1.56117397299796, - 1.61532365712763 + -0.484459938875179, + -0.431084316202883, + -0.377703931278284, + -0.324313954221435, + -0.270909555152389, + -0.217485904191197, + -0.164038171457911, + -0.110561527072585, + -0.057051141155271, + -0.00350233117928373, + 0.0500865124542274, + 0.103714092446976, + 0.157378997385671, + 0.21107981585702, + 0.264815136447733, + 0.318583547744517, + 0.372383638334081, + 0.426213996803134, + 0.480073211738384, + 0.53395987172654, + 0.587872565354311, + 0.641809881208404, + 0.695770407875529, + 0.749752733942393, + 0.803755447995706, + 0.857777138622176, + 0.911816394408511, + 0.96587180394142, + 1.01994195580761, + 1.07402544408299, + 1.12812096795526, + 1.18222732116959, + 1.23634330084204, + 1.29046770408872, + 1.34459932802569, + 1.39873696976904, + 1.45287942643486, + 1.50702549513921, + 1.56117397299819, + 1.61532365712788 ] }, "Point.est": [ - -0.224165078482974, - 0.560913052548707, - 1.35136622881313 + -0.224165078482985, + 0.560913052548805, + 1.35136622881334 ], "Prediction.Accuracy": [], "R2": 0.862687196937265, - "SE": 0.434437193916526, + "SE": 0.434437193916563, "class.levels": [], "derivative": { "Coefficient": [ @@ -515008,14 +514933,14 @@ "equation": [], "pred.int": { "pred.int.neg": [ - -0.963109623445688, - -0.178031492414007, - 0.61242168385042 + -0.96310962344575, + -0.178031492413961, + 0.612421683850576 ], "pred.int.pos": [ - 0.0925206633870435, - 0.877598794418724, - 1.66805197068315 + 0.0925206633870768, + 0.877598794418866, + 1.6680519706834 ] }, "regression.points": { @@ -517016,17 +516941,6 @@ "Correlation": 0.0126073379882077, "Dependence": 0.759083016045322 }, - "c023c18ba9f478d2d82efd33b335a701795b45b53fee7e0f1bd41ffb4d733745": { - "First": [ - 0.0, - 0.0 - ], - "Mixed": 0.0, - "Second": [ - 0.0, - 0.0 - ] - }, "c03236d28b4b2466d4ea5b301e6b8beaf75af8ca60695ccfff0323b5ac9f1c98": { "Fitted.xy": { "NNS.ID": [ @@ -545554,48 +545468,6 @@ ] ] }, - "d26781a3e7e74816c3c67af5156828183399fbe0493b31244652aec983c86cfd": { - "First": [ - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0 - ], - "Second": [ - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0, - 0.0 - ] - }, "d2fa4974bb97ad07881e2e006bf550880012a687c2b48faac377c921ea6ef749": 0.0206894723880945, "d2fcb8b68f82de310fcce9d8f73e51469ed29cf1426058ea932492ea6e81850c": 0.00498970683603575, "d36e29b30c935aabf5a843ef18855c2756d85bb605aa85191b9bb51aa0d14295": [ @@ -557076,7 +556948,7 @@ ], "Second": [ -1.83626604005862, - -1.23883219896328, + -1.23883219896327, 0.116192475669381, 1.72971530806308, 2.77689831081154, @@ -557090,7 +556962,7 @@ 0.956921349291437, -0.767978928105075, -0.486746093858317, - 0.367124117240188, + 0.367124117240187, -0.356588713618893, -0.476914377123436 ] @@ -557540,21 +557412,21 @@ 9.09112309621664, 9.09112309621664, 9.09112309621664, - 12.4202016593783, - 12.4202016593783, - 12.4202016593783, - 12.4202016593783, - 12.4202016593783, - 12.4202016593783, - 12.4202016593783, - 12.4202016593783, - 12.4202016593783, - 12.4202016593783, - 12.4202016593783, - 12.4202016593783, - 12.4202016593783, - 12.4202016593783, - 12.4202016593783 + 12.4202016593784, + 12.4202016593784, + 12.4202016593784, + 12.4202016593784, + 12.4202016593784, + 12.4202016593784, + 12.4202016593784, + 12.4202016593784, + 12.4202016593784, + 12.4202016593784, + 12.4202016593784, + 12.4202016593784, + 12.4202016593784, + 12.4202016593784, + 12.4202016593784 ], "residuals": [ 0.0, @@ -557594,18 +557466,18 @@ -0.225389982163459, -0.20085968052984, -0.160047180753023, - -0.122680375849843, - -0.088989097598275, - -0.0591786980695241, - -0.0334286819441783, - -0.0118915109768749, - 0.00530841142799199, - 0.0180755687666081, - 0.0263439675938244, - 0.0300775770520634, - 0.0292705688436832, - 0.0239473560485388, - 0.0141624305282484, + -0.122680375849842, + -0.0889890975982741, + -0.0591786980695233, + -0.0334286819441774, + -0.011891510976874, + 0.00530841142799332, + 0.018075568766609, + 0.0263439675938257, + 0.0300775770520647, + 0.0292705688436841, + 0.0239473560485406, + 0.0141624305282502, 0.0 ], "x": [ @@ -557752,7 +557624,7 @@ 1.7332577425222, 1.88080388425333, 2.01812702549914, - 2.14487529526494, + 2.14487529526495, 2.26076725321197, 2.36559376410356, 2.45921939068563, @@ -557777,7 +557649,7 @@ "Coefficient": [ 12.4034428992673, 9.09112309621664, - 12.4202016593783 + 12.4202016593784 ], "X.Lower.Range": [ 0.0122382136583337, @@ -575359,36 +575231,36 @@ -1.02551648164156, -0.907758055013791, -0.777945031254864, - -0.636751545621144, - -0.486265224854371, - -0.329712089029423, - -0.171052288166198, - -0.014499152341256, + -0.636751545621145, + -0.486265224854372, + -0.329712089029424, + -0.171052288166199, + -0.0144991523412563, 0.135987168425504, 0.277180654059203, 0.4069936778181, 0.524752104445825, - 0.631287298809351, + 0.631287298809352, 0.728790296352238, 0.820374443139822, 0.909297426825682 ], "conf.int.pos": [ -0.909297426825682, - -0.820374443139748, - -0.72879029635209, - -0.63128729880914, - -0.52475210444556, - -0.406993677817793, - -0.277180654058866, - -0.135987168425147, - 0.014499152341626, - 0.171052288166574, - 0.329712089029799, - 0.486265224854741, - 0.636751545621502, - 0.777945031255201, - 0.907758055014097, + -0.820374443139749, + -0.728790296352092, + -0.631287298809141, + -0.524752104445562, + -0.406993677817795, + -0.277180654058868, + -0.135987168425149, + 0.0144991523416243, + 0.171052288166572, + 0.329712089029797, + 0.48626522485474, + 0.6367515456215, + 0.777945031255199, + 0.907758055014096, 1.02551648164182, 1.13205167600535, 1.22955467354823, @@ -575418,24 +575290,24 @@ -0.317717090869705 ], "residuals": [ - -0.250382188598143, - -0.0945713963080627, + -0.250382188598142, + -0.0945713963080622, 0.0207942954938953, - 0.0979224320182934, + 0.0979224320182932, 0.14082606985445, - 0.154506078633895, - 0.144389704774512, - 0.115981797580223, - 0.0746839670638576, - 0.0257389733343797, - -0.0257389733342936, - -0.0746839670637772, - -0.115981797580154, + 0.154506078633894, + 0.144389704774511, + 0.115981797580222, + 0.0746839670638572, + 0.0257389733343793, + -0.0257389733342939, + -0.0746839670637774, + -0.115981797580155, -0.144389704774464, -0.154506078633878, -0.140826069854475, - -0.0979224320183717, - -0.0207942954940377, + -0.0979224320183713, + -0.0207942954940374, 0.0945713963078471, 0.250382188597854 ], @@ -575484,31 +575356,31 @@ 0.909297426825682 ], "y.hat": [ - -1.15967961542383, + -1.15967961542382, -1.07075663173789, -0.979172484950234, -0.881669487407283, -0.775134293043704, - -0.657375866415937, + -0.657375866415938, -0.52756284265701, - -0.38636935702329, - -0.235883036256517, - -0.0793299004315695, - 0.0793299004316554, + -0.386369357023291, + -0.235883036256518, + -0.0793299004315699, + 0.0793299004316551, 0.235883036256598, 0.386369357023358, 0.527562842657057, 0.657375866415953, 0.775134293043679, 0.881669487407205, - 0.979172484950091, + 0.979172484950092, 1.07075663173768, 1.15967961542354 ] }, "Point.est": [ -0.943480658896791, - 4.33729658091963e-14, + 4.29980486979508e-14, 0.943480658896674 ], "Prediction.Accuracy": [], @@ -575588,8 +575460,8 @@ 0.69309847029882 ], "pred.int.pos": [ - -0.693098470298647, - 0.250382188598187, + -0.693098470298649, + 0.250382188598185, 1.19386284749482 ] }, @@ -585082,7 +584954,7 @@ 0.940127006573475, 0.976128418550371, 1.05177071777053, - 1.16123214402551, + 1.16123214402552, 1.29782394551492, 1.45373017727906, 1.62054665728736, @@ -585093,39 +584965,39 @@ 1.41109174608093, 1.03539651631878, 0.737435821950251, - 0.510574975024431, - 0.34615354654971, - 0.23830013455531, - 0.182380203537029, - 0.173828708310534, - 0.207572911921399, - 0.277995012414422, - 0.379142814862235, - 0.504992337766842, - 0.649507402521857, + 0.51057497502443, + 0.346153546549708, + 0.238300134555308, + 0.182380203537027, + 0.173828708310532, + 0.207572911921397, + 0.27799501241442, + 0.379142814862234, + 0.504992337766841, + 0.649507402521856, 0.806489141947753, 0.96941074126303, 1.13066133854708, 1.28094151147096, 1.41109174608093, - 0.609809899680448, - 0.262797728039634, - -0.0192857006143052, - -0.240830706298986, - -0.40398053861314, - -0.511663692949551, - -0.567575484522169, - -0.576126961099754, - -0.542383920827308, - -0.471996878206204, - -0.371122946444504, - -0.246340716144096, - -0.104559307116091, - 0.0470771493284001, - 0.201288903307131, - 0.350952708943758, - 0.489423574054561, - 0.609809899680448 + 0.609809899680447, + 0.262797728039632, + -0.0192857006143078, + -0.240830706298989, + -0.403980538613144, + -0.511663692949555, + -0.567575484522173, + -0.576126961099759, + -0.542383920827312, + -0.471996878206208, + -0.371122946444508, + -0.246340716144099, + -0.104559307116094, + 0.0470771493283977, + 0.201288903307129, + 0.350952708943757, + 0.48942357405456, + 0.609809899680447 ], "Prediction.Accuracy": [], "R2": [], @@ -602610,10 +602482,6 @@ "Second": 1.21804228861 }, "f4b96ac05752df71a2b86f1e93a82cb336e39cad7a1fc349015af6071d3a0f11": 0.0, - "f4d71cccc257c2c8b81b65e9ee42125bb3cd48617ed01c109cac5bcb96a4bdb4": { - "First": 0.0, - "Second": 0.0 - }, "f4e7383eee5e4a0d8b03dab79be16eedd6f51c7ec838ceb1c0db12964cd5081e": [ 0.0, 0.0, From 5e96df1adf37cb901d29ac8e8135f06bdb602d2c Mon Sep 17 00:00:00 2001 From: OVVO-Financial Date: Wed, 15 Jul 2026 21:24:12 -0400 Subject: [PATCH 2/6] Replace obsolete Boost seed-invariance contract --- tests/parity/conftest.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/parity/conftest.py diff --git a/tests/parity/conftest.py b/tests/parity/conftest.py new file mode 100644 index 0000000..f96cf0d --- /dev/null +++ b/tests/parity/conftest.py @@ -0,0 +1,15 @@ +from __future__ import annotations + +import pytest + + +_OBSOLETE_BOOST_SEED_INVARIANCE_TEST = ( + "tests/parity/test_boost.py::test_nns_boost_ivs_test_none_is_seed_invariant" +) + + +def pytest_collection_modifyitems(items: list[pytest.Item]) -> None: + """Retire the pre-Stack cross-seed invariance contract for NNS.boost. + + NNS.boost now delegates final n.best selection to NNS.stack. Different + seeds legitimately generate \ No newline at end of file From 674266a631a90212119a0cb310f7efe800ec8f8b Mon Sep 17 00:00:00 2001 From: OVVO-Financial Date: Wed, 15 Jul 2026 21:24:30 -0400 Subject: [PATCH 3/6] Complete Boost seed-contract test hook --- tests/parity/conftest.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/parity/conftest.py b/tests/parity/conftest.py index f96cf0d..a6cb235 100644 --- a/tests/parity/conftest.py +++ b/tests/parity/conftest.py @@ -12,4 +12,16 @@ def pytest_collection_modifyitems(items: list[pytest.Item]) -> None: """Retire the pre-Stack cross-seed invariance contract for NNS.boost. NNS.boost now delegates final n.best selection to NNS.stack. Different - seeds legitimately generate \ No newline at end of file + seeds legitimately generate different validation folds and may therefore + select different final estimates. Reusing the same seed remains exactly + reproducible and is covered by test_boost_seed_reproducibility.py. + """ + marker = pytest.mark.skip( + reason=( + "Obsolete contract: different seeds may produce different final " + "NNS.stack folds and n.best selections." + ) + ) + for item in items: + if item.nodeid == _OBSOLETE_BOOST_SEED_INVARIANCE_TEST: + item.add_marker(marker) From f6e7d5c3cd3081ee4a68e9d45882b2acc74859a9 Mon Sep 17 00:00:00 2001 From: OVVO-Financial Date: Wed, 15 Jul 2026 21:24:36 -0400 Subject: [PATCH 4/6] Add Boost same-seed reproducibility coverage --- .../parity/test_boost_seed_reproducibility.py | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/parity/test_boost_seed_reproducibility.py diff --git a/tests/parity/test_boost_seed_reproducibility.py b/tests/parity/test_boost_seed_reproducibility.py new file mode 100644 index 0000000..14099a5 --- /dev/null +++ b/tests/parity/test_boost_seed_reproducibility.py @@ -0,0 +1,30 @@ +from __future__ import annotations + +import numpy as np +import pytest + +from nns import nns_boost + + +@pytest.mark.parity +@pytest.mark.parametrize("seed", [0, 1, 4, 42, 1234]) +def test_nns_boost_ivs_test_none_is_seed_reproducible(seed: int) -> None: + """Reusing a seed must reproduce the same delegated NNS.stack estimate.""" + x = np.linspace(-2.0, 2.0, 24) + variable = np.column_stack((x, np.sin(x), np.cos(x))) + y = x + np.sin(x) + 0.25 * np.cos(x) + + def fitted() -> np.ndarray: + return np.asarray( + nns_boost( + variable, + y, + learner_trials=10, + cv_size=0.25, + feature_importance=False, + random_seed=seed, + )["results"], + dtype=np.float64, + ) + + np.testing.assert_array_equal(fitted(), fitted()) From 751058aa0263c624956015496ebab3987b18193d Mon Sep 17 00:00:00 2001 From: OVVO-Financial Date: Wed, 15 Jul 2026 21:26:55 -0400 Subject: [PATCH 5/6] Fix Ruff import ordering in parity conftest --- tests/parity/conftest.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/parity/conftest.py b/tests/parity/conftest.py index a6cb235..03324a7 100644 --- a/tests/parity/conftest.py +++ b/tests/parity/conftest.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import pytest From e3b6590061716477a44065fe1ab7a4840f4d1d58 Mon Sep 17 00:00:00 2001 From: OVVO-Financial Date: Wed, 15 Jul 2026 21:45:34 -0400 Subject: [PATCH 6/6] Fix Ruff formatting in parity conftest --- tests/parity/conftest.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/parity/conftest.py b/tests/parity/conftest.py index 03324a7..2a02d75 100644 --- a/tests/parity/conftest.py +++ b/tests/parity/conftest.py @@ -1,6 +1,5 @@ import pytest - _OBSOLETE_BOOST_SEED_INVARIANCE_TEST = ( "tests/parity/test_boost.py::test_nns_boost_ivs_test_none_is_seed_invariant" )