firthmodels 0.7.2__tar.gz → 0.8.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {firthmodels-0.7.2 → firthmodels-0.8.0}/CITATION.cff +1 -1
- {firthmodels-0.7.2 → firthmodels-0.8.0}/PKG-INFO +5 -1
- {firthmodels-0.7.2 → firthmodels-0.8.0}/README.md +4 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/benchmarks/README.md +34 -34
- {firthmodels-0.7.2 → firthmodels-0.8.0}/benchmarks/benchmark_cox.py +1 -1
- firthmodels-0.8.0/benchmarks/cox_results.csv +7 -0
- firthmodels-0.8.0/benchmarks/cox_results.png +0 -0
- firthmodels-0.8.0/benchmarks/logistic_results.csv +11 -0
- firthmodels-0.8.0/benchmarks/logistic_results.png +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/pyproject.toml +1 -1
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/_lrt.py +84 -17
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/_numba/cox.py +14 -3
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/_numba/logistic.py +27 -3
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/_profile_ci.py +4 -1
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/_solvers.py +20 -8
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/_utils.py +2 -1
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/adapters/statsmodels.py +4 -2
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/cox.py +39 -22
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/logistic.py +185 -47
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/separation.py +25 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/tests/test_cox.py +119 -3
- {firthmodels-0.7.2 → firthmodels-0.8.0}/tests/test_logistic.py +236 -3
- {firthmodels-0.7.2 → firthmodels-0.8.0}/tests/test_numba_cox.py +46 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/tests/test_numba_logistic.py +103 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/tests/test_separation.py +20 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/uv.lock +1 -1
- firthmodels-0.7.2/benchmarks/cox_results.csv +0 -7
- firthmodels-0.7.2/benchmarks/cox_results.png +0 -0
- firthmodels-0.7.2/benchmarks/logistic_results.csv +0 -11
- firthmodels-0.7.2/benchmarks/logistic_results.png +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/.github/workflows/ci.yml +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/.github/workflows/publish.yml +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/.gitignore +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/.pre-commit-config.yaml +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/.python-version +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/LICENSE +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/benchmarks/benchmark_logistic.py +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/benchmarks/brglm2_bench.R +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/benchmarks/coxphf_bench.R +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/benchmarks/generate_report.py +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/benchmarks/logistf_bench.R +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/__init__.py +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/_numba/__init__.py +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/_numba/blas_abi.py +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/_numba/linalg.py +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/adapters/__init__.py +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/src/firthmodels/py.typed +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/tests/conftest.py +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/tests/test_adapters_statsmodels.py +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/tests/test_blas_abi.py +0 -0
- {firthmodels-0.7.2 → firthmodels-0.8.0}/tests/test_numba_linalg.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: firthmodels
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Summary: Firth-penalized models in Python
|
|
5
5
|
Project-URL: Homepage, https://github.com/jzluo/firthmodels
|
|
6
6
|
Project-URL: Repository, https://github.com/jzluo/firthmodels
|
|
@@ -228,6 +228,10 @@ model.lrt_bse_ # Back-corrected standard errors (separate from Wald bse_
|
|
|
228
228
|
Each feature requires a separate constrained model fit, so you can test selectively to
|
|
229
229
|
avoid unnecessary computation. By default, LRT uses a warm start based on the full-model
|
|
230
230
|
covariance to reduce Newton-Raphson iterations; pass `warm_start=False` to disable it.
|
|
231
|
+
If the full-model fit does not converge, its likelihood is non-finite, or a constrained
|
|
232
|
+
fit does not converge, a warning is emitted and the affected p-values and
|
|
233
|
+
back-corrected standard errors remain `NaN`. A later explicit `lrt()` call retries
|
|
234
|
+
failed constrained fits.
|
|
231
235
|
|
|
232
236
|
```python
|
|
233
237
|
model.lrt(0) # Single feature by index
|
|
@@ -185,6 +185,10 @@ model.lrt_bse_ # Back-corrected standard errors (separate from Wald bse_
|
|
|
185
185
|
Each feature requires a separate constrained model fit, so you can test selectively to
|
|
186
186
|
avoid unnecessary computation. By default, LRT uses a warm start based on the full-model
|
|
187
187
|
covariance to reduce Newton-Raphson iterations; pass `warm_start=False` to disable it.
|
|
188
|
+
If the full-model fit does not converge, its likelihood is non-finite, or a constrained
|
|
189
|
+
fit does not converge, a warning is emitted and the affected p-values and
|
|
190
|
+
back-corrected standard errors remain `NaN`. A later explicit `lrt()` call retries
|
|
191
|
+
failed constrained fits.
|
|
188
192
|
|
|
189
193
|
```python
|
|
190
194
|
model.lrt(0) # Single feature by index
|
|
@@ -27,7 +27,7 @@ for Firth-penalized logistic regression.
|
|
|
27
27
|
|
|
28
28
|
| Library | Version | BLAS |
|
|
29
29
|
|---------|---------|------|
|
|
30
|
-
| **firthmodels** | 0.
|
|
30
|
+
| **firthmodels** | 0.8.0 | /usr/lib/x86_64-linux-gnu/openblas-pthread/ (openblas 0.3.26) |
|
|
31
31
|
| **brglm2** | 1.0.1 | /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 |
|
|
32
32
|
| **logistf** | 1.26.1 | /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 |
|
|
33
33
|
|
|
@@ -56,16 +56,16 @@ Time to fit the model and perform Wald inference. Values are minimum time across
|
|
|
56
56
|
|
|
57
57
|
| k | firthmodels<br>(numba) | firthmodels<br>(numpy) | brglm2<br>(AS-mean) | brglm2<br>(MPL_Jeffreys) | logistf |
|
|
58
58
|
|--:|------:|------:|------------:|-------------:|--------:|
|
|
59
|
-
| 5 | 0.5 | 1.4 | 4.2 | 4.
|
|
60
|
-
| 10 | 1.
|
|
61
|
-
| 15 | 1.2 |
|
|
62
|
-
| 20 | 1.
|
|
63
|
-
| 25 | 1.
|
|
64
|
-
| 30 | 2.
|
|
65
|
-
| 35 | 2.
|
|
66
|
-
| 40 | 2.
|
|
67
|
-
| 45 | 3.
|
|
68
|
-
| 50 | 4.
|
|
59
|
+
| 5 | 0.5 | 1.4 | 4.2 | 4.3 | 2.1 |
|
|
60
|
+
| 10 | 1.1 | 1.8 | 7.5 | 7.4 | 4.2 |
|
|
61
|
+
| 15 | 1.2 | 2.0 | 8.4 | 8.5 | 6.8 |
|
|
62
|
+
| 20 | 1.4 | 2.2 | 9.6 | 9.7 | 15.1 |
|
|
63
|
+
| 25 | 1.7 | 2.7 | 12.0 | 12.0 | 23.2 |
|
|
64
|
+
| 30 | 2.0 | 2.8 | 13.0 | 13.0 | 28.8 |
|
|
65
|
+
| 35 | 2.1 | 3.2 | 15.5 | 15.4 | 40.5 |
|
|
66
|
+
| 40 | 2.6 | 3.7 | 17.3 | 17.5 | 51.1 |
|
|
67
|
+
| 45 | 3.3 | 4.6 | 19.1 | 19.3 | 67.9 |
|
|
68
|
+
| 50 | 4.1 | 5.4 | 24.3 | 24.5 | 83.5 |
|
|
69
69
|
|
|
70
70
|
#### Full Workflow (Fit + LRT + Profile CI)
|
|
71
71
|
|
|
@@ -73,16 +73,16 @@ Time to fit the model, compute penalized likelihood ratio test p-values for all
|
|
|
73
73
|
|
|
74
74
|
| k | firthmodels<br>(numba) | firthmodels<br>(numpy) | logistf |
|
|
75
75
|
|--:|------:|------:|--------:|
|
|
76
|
-
| 5 | 4.
|
|
77
|
-
| 10 |
|
|
78
|
-
| 15 |
|
|
79
|
-
| 20 |
|
|
80
|
-
| 25 |
|
|
81
|
-
| 30 |
|
|
82
|
-
| 35 |
|
|
83
|
-
| 40 |
|
|
84
|
-
| 45 |
|
|
85
|
-
| 50 |
|
|
76
|
+
| 5 | 4.7 | 11.0 | 13.8 |
|
|
77
|
+
| 10 | 19.4 | 40.0 | 81.4 |
|
|
78
|
+
| 15 | 29.2 | 63.8 | 156.9 |
|
|
79
|
+
| 20 | 45.8 | 89.8 | 438.5 |
|
|
80
|
+
| 25 | 77.1 | 141.8 | 903.0 |
|
|
81
|
+
| 30 | 110.6 | 183.6 | 1307.5 |
|
|
82
|
+
| 35 | 138.3 | 236.3 | 2209.1 |
|
|
83
|
+
| 40 | 199.7 | 314.7 | 3188.7 |
|
|
84
|
+
| 45 | 266.0 | 405.1 | 4574.0 |
|
|
85
|
+
| 50 | 370.9 | 532.9 | 6282.8 |
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
---
|
|
@@ -97,7 +97,7 @@ for Firth-penalized Cox proportional hazards regression.
|
|
|
97
97
|
|
|
98
98
|
| Library | Version | BLAS |
|
|
99
99
|
|---------|---------|------|
|
|
100
|
-
| **firthmodels** | 0.
|
|
100
|
+
| **firthmodels** | 0.8.0 | /usr/lib/x86_64-linux-gnu/openblas-pthread/ (openblas 0.3.26) |
|
|
101
101
|
| **coxphf** | 1.13.4 | /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 |
|
|
102
102
|
|
|
103
103
|
### Configuration
|
|
@@ -124,12 +124,12 @@ Time to fit the model and perform Wald inference. Values are minimum time across
|
|
|
124
124
|
|
|
125
125
|
| k | firthmodels<br>(numba) | firthmodels<br>(numpy) | coxphf |
|
|
126
126
|
|--:|------:|------:|-------:|
|
|
127
|
-
| 5 | 1.
|
|
128
|
-
| 10 |
|
|
129
|
-
| 15 |
|
|
130
|
-
| 20 |
|
|
131
|
-
| 25 |
|
|
132
|
-
| 30 |
|
|
127
|
+
| 5 | 1.1 | 1.8 | 4.3 |
|
|
128
|
+
| 10 | 0.7 | 2.5 | 16.8 |
|
|
129
|
+
| 15 | 0.9 | 3.6 | 49.8 |
|
|
130
|
+
| 20 | 1.9 | 8.0 | 137.7 |
|
|
131
|
+
| 25 | 2.6 | 11.1 | 268.9 |
|
|
132
|
+
| 30 | 3.3 | 14.4 | 464.5 |
|
|
133
133
|
|
|
134
134
|
#### Full Workflow (Fit + LRT + Profile CI)
|
|
135
135
|
|
|
@@ -137,12 +137,12 @@ Time to fit the model, compute penalized likelihood ratio test p-values for all
|
|
|
137
137
|
|
|
138
138
|
| k | firthmodels<br>(numba) | firthmodels<br>(numpy) | coxphf |
|
|
139
139
|
|--:|------:|------:|-------:|
|
|
140
|
-
| 5 |
|
|
141
|
-
| 10 |
|
|
142
|
-
| 15 |
|
|
143
|
-
| 20 |
|
|
144
|
-
| 25 |
|
|
145
|
-
| 30 |
|
|
140
|
+
| 5 | 2.6 | 12.9 | 26.9 |
|
|
141
|
+
| 10 | 7.6 | 45.6 | 360.4 |
|
|
142
|
+
| 15 | 18.7 | 115.3 | 2019.4 |
|
|
143
|
+
| 20 | 52.4 | 294.7 | 6447.7 |
|
|
144
|
+
| 25 | 100.1 | 535.3 | 16706.7 |
|
|
145
|
+
| 30 | 148.2 | 870.7 | 34470.1 |
|
|
146
146
|
|
|
147
147
|
|
|
148
148
|
---
|
|
@@ -92,7 +92,7 @@ def make_benchmark_data(
|
|
|
92
92
|
T = -np.log(U) / (baseline_hazard * np.exp(eta))
|
|
93
93
|
|
|
94
94
|
# Censoring to achieve target event rate
|
|
95
|
-
censor_quantile =
|
|
95
|
+
censor_quantile = event_rate
|
|
96
96
|
censor_time = np.quantile(T, censor_quantile)
|
|
97
97
|
|
|
98
98
|
time = np.minimum(T, censor_time)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
k,n,events,event_rate,numba_fit_ms,numpy_fit_ms,numba_full_ms,numpy_full_ms,coxphf_fit_ms,coxphf_full_ms,coxphf_fit_coef,coxphf_full_coef,coxphf_full_ci,coxphf_full_pval
|
|
2
|
+
5,500,100,0.2,1.06537202373147,1.7930101603269577,2.604458946734667,12.889432022348046,4.257273,26.944049,"[-0.06966020579815797, -0.13833476315761972, 0.1402623293139053, -0.10107211150141061, 0.06187733949471991]","[-0.06966020579815797, -0.13833476315761972, 0.1402623293139053, -0.10107211150141061, 0.06187733949471991]","[[-0.26396657395328627, 0.12385142952104657], [-0.3299581754159525, 0.054527946966204485], [-0.06829563247390164, 0.3513140811474612], [-0.29619518362678954, 0.09298823454975394], [-0.1381094066319012, 0.26182790105383574]]","[0.48086830216904497, 0.1593093069068654, 0.18832574444850014, 0.3079392087483037, 0.544192020417195]"
|
|
3
|
+
10,500,100,0.2,0.6984469946473837,2.5144079700112343,7.602313999086618,45.58343393728137,16.765401999999998,360.425432,"[-0.003907125567882747, 0.015525040513814665, 0.12302859436892549, 0.03815617220568428, 0.06869763434982323, 0.11317468166833743, -0.07780491632880832, 0.0672272100639453, 0.0997545521981913, -0.03576951287740512]","[-0.003907125567882747, 0.015525040513814665, 0.12302859436892549, 0.03815617220568428, 0.06869763434982323, 0.11317468166833743, -0.07780491632880832, 0.0672272100639453, 0.0997545521981913, -0.03576951287740512]","[[-0.19134954384606495, 0.18342242801484168], [-0.19290217824274114, 0.2252288764327179], [-0.0711630576905013, 0.31652985409605205], [-0.1633329992860539, 0.23996873383713552], [-0.12894561241782235, 0.26741894675836403], [-0.08411792050315993, 0.30982585048373146], [-0.2945179300636127, 0.1377486044691107], [-0.1366201022754514, 0.2718519352564907], [-0.10266773677683369, 0.3032120304629175], [-0.23683075975496234, 0.16494173056813022]]","[0.9673844279076511, 0.8842239715646403, 0.21405792361961118, 0.7107660345746195, 0.49648725939417127, 0.26048595534470986, 0.48012508063085735, 0.5185666656675882, 0.33468573508285504, 0.7269862371589163]"
|
|
4
|
+
15,500,100,0.2,0.8815601468086243,3.6000499967485666,18.663977039977908,115.33562699332833,49.821376,2019.3859889999999,"[-0.021324561738963754, -0.2051979392553246, 0.008685735819835219, 0.0226534916521478, -0.042279771057908956, 0.2721056818380464, 0.0597911603116723, -0.1620714049843953, 0.16879067038416407, -0.01978425826936327, 0.09253217243480237, 0.2505415436365788, 0.05525707566896529, 0.04693015459999141, 0.09502181087782054]","[-0.021324561738963754, -0.2051979392553246, 0.008685735819835219, 0.0226534916521478, -0.042279771057908956, 0.2721056818380464, 0.0597911603116723, -0.1620714049843953, 0.16879067038416407, -0.01978425826936327, 0.09253217243480237, 0.2505415436365788, 0.05525707566896529, 0.04693015459999141, 0.09502181087782054]","[[-0.2348936583341534, 0.19246585286399356], [-0.404111988991244, -0.005396170435751832], [-0.19729136004952588, 0.2153791626693171], [-0.17554870352129112, 0.22027575836240335], [-0.2534168687344002, 0.1695509723633138], [0.09136916113101086, 0.4523072729564928], [-0.1438614241820307, 0.26414488100595573], [-0.3713069248470362, 0.0479368670241594], [-0.039123420820662516, 0.3763243958058625], [-0.2163693111442772, 0.1794528517629138], [-0.10409695560264419, 0.2918728067431384], [0.05695926209742331, 0.444584890154318], [-0.13789943316063022, 0.24645664909363071], [-0.16405538666016936, 0.2581724307076542], [-0.10555710205579516, 0.2956170747444768]]","[0.8449513779008013, 0.0441414369314278, 0.9341810844177663, 0.822364776624329, 0.695228992402841, 0.0032077354790380763, 0.5653629569426026, 0.13004789642831083, 0.11152816054199877, 0.8446135919231629, 0.3578487262790535, 0.011186868561027685, 0.573520260722048, 0.6629391450495241, 0.35313773031598394]"
|
|
5
|
+
20,500,100,0.2,1.861961092799902,8.049818919971585,52.39686998538673,294.7303040418774,137.684911,6447.692148,"[-0.16866393305344848, -0.02822401080553154, -0.27385268131468665, -0.1339171838037952, -0.1415770665598961, -0.07402547375876448, 0.07224505526225969, 0.02684748591900435, 0.02429661834317669, 0.09510126609696866, -0.1837307631606028, -0.02268518661460246, -0.024024087743011326, 0.1216644658824857, 0.17247925737443381, -0.057050329781589915, 0.015205967571678703, -0.0794367624467884, -0.016079285579202077, 0.03485315421835766]","[-0.16866393305344848, -0.02822401080553154, -0.27385268131468665, -0.1339171838037952, -0.1415770665598961, -0.07402547375876448, 0.07224505526225969, 0.02684748591900435, 0.02429661834317669, 0.09510126609696866, -0.1837307631606028, -0.02268518661460246, -0.024024087743011326, 0.1216644658824857, 0.17247925737443381, -0.057050329781589915, 0.015205967571678703, -0.0794367624467884, -0.016079285579202077, 0.03485315421835766]","[[-0.36048742163710945, 0.02349141025177091], [-0.22313940958726308, 0.1696520983691145], [-0.47711266224449295, -0.07157883167988252], [-0.33541205284465303, 0.06726783809785099], [-0.3417793998145547, 0.061791257317609025], [-0.2712302261982971, 0.1250086294951388], [-0.1344764498276645, 0.2761683410866009], [-0.16607611811780795, 0.22120465541667897], [-0.16337957482199944, 0.21246326977591815], [-0.1114914088166259, 0.30007716524013195], [-0.37781217046889126, 0.009886404831763437], [-0.22165383589938564, 0.17739779954651286], [-0.23437567841900314, 0.18407784038318828], [-0.07304751191029152, 0.31686939889366017], [-0.02925449352623429, 0.3743299563803514], [-0.25392816370973154, 0.13961395541377986], [-0.18387530654888676, 0.21427822241880418], [-0.28661332228677044, 0.12759339318276441], [-0.21907761981415091, 0.1864893189391449], [-0.17380536499045537, 0.2442609019519926]]","[0.08530589702266167, 0.7783594065344845, 0.007925675525114362, 0.19199976106014394, 0.1712034503661909, 0.46453600070793033, 0.49123297819822886, 0.7855763142219716, 0.7997790241442877, 0.36594021613743144, 0.06289823683287532, 0.8236211051319671, 0.8218681023370817, 0.22066584114916588, 0.09375308550651262, 0.5695631356003592, 0.8809027528614245, 0.45189807114900027, 0.876452316947862, 0.7436813526273374]"
|
|
6
|
+
25,500,100,0.2,2.5895689614117146,11.143493000417948,100.12663807719946,535.281287971884,268.866446,16706.740749,"[-0.02154506634998829, 0.21085137401849008, 0.05688978489552514, 0.03495096362406091, -0.15518750605186182, 0.1296593769732488, -0.020657469409037038, 0.026701641133739545, 0.1219359081934847, 0.07492220864420873, 0.09747784112800384, -0.05146997493974389, -0.0003927915158910982, 7.662591410976537e-05, 0.17521917599887477, 0.04095914441270558, 0.10661361171839943, -0.06294268390960366, 0.10856723869971138, 0.23477810915573136, -0.17991952031247127, -0.08196747711162576, -0.20805274497019852, 0.017499164169117443, -0.19321777861171244]","[-0.02154506634998829, 0.21085137401849008, 0.05688978489552514, 0.03495096362406091, -0.15518750605186182, 0.1296593769732488, -0.020657469409037038, 0.026701641133739545, 0.1219359081934847, 0.07492220864420873, 0.09747784112800384, -0.05146997493974389, -0.0003927915158910982, 7.662591410976537e-05, 0.17521917599887477, 0.04095914441270558, 0.10661361171839943, -0.06294268390960366, 0.10856723869971138, 0.23477810915573136, -0.17991952031247127, -0.08196747711162576, -0.20805274497019852, 0.017499164169117443, -0.19321777861171244]","[[-0.22240172637821493, 0.17804948772285414], [0.010172255886370501, 0.41273946163045877], [-0.13799202453764456, 0.25129602204606405], [-0.18156981289523935, 0.2538886538840459], [-0.36317729783104075, 0.05194602073549312], [-0.06899458155598794, 0.3285135453671983], [-0.2163748838372715, 0.17537591730514174], [-0.1886046777618832, 0.2425920510190826], [-0.07544024752554179, 0.32095008696902305], [-0.12331761310196268, 0.273856754393688], [-0.10866415278656161, 0.3041021270730411], [-0.24834829902628008, 0.1434191824168503], [-0.2061090476182772, 0.2052184101741566], [-0.1914574551439512, 0.19306309319067333], [-0.0314274867963887, 0.3837128721239181], [-0.1707499731616052, 0.2510125045619073], [-0.08177630448361714, 0.2950633591209192], [-0.2578391320188291, 0.1322380373186328], [-0.09631451026105838, 0.3146692761111282], [0.035560013272851375, 0.434211678202491], [-0.38195459220246586, 0.023239523737649613], [-0.29062460712218896, 0.12436867516022147], [-0.41936328982778304, 0.003401778555030031], [-0.1734544777475149, 0.2094276303204615], [-0.38917141354638923, 0.0013527578311095833]]","[0.8328717544229522, 0.03944149327187585, 0.5664932591020823, 0.752964297088558, 0.14211265614924662, 0.20068240220127376, 0.8360864706261868, 0.8081455806596992, 0.22642251142478909, 0.4589238391353221, 0.35414153294253714, 0.6062997886740462, 0.9970119068579939, 0.9993763549547217, 0.09677791579673889, 0.7034142877381208, 0.2669248206141639, 0.5269181581017053, 0.2995140429262232, 0.02092569653913201, 0.08244439067108267, 0.4376949570016755, 0.05379735462657631, 0.8576116812753537, 0.05161708811184795]"
|
|
7
|
+
30,500,100,0.2,3.338236827403307,14.44839988835156,148.20214197970927,870.7133929710835,464.526608,34470.104166,"[-0.10480384553448603, -0.006035618906388116, 0.03723218480143566, 0.04874077180497944, -0.1345389922138335, 0.020149068595109575, 0.12830685990881754, 0.07850960496375715, -0.09213985015664944, 0.1462622302783545, 0.01103982465577766, 0.047257695845936254, -0.10504395938178952, 0.08934158771067592, 0.02131324621394811, 0.011467361620968656, -0.07792994037479353, 0.08079963255426356, -0.09233484951787696, 0.10530511630575363, -0.11503395999456989, 0.17362363911492362, 0.057625512196891264, 0.04503304169521078, -0.03509488228995568, -0.06928845160742546, 0.08564803158410307, 0.04312332244715092, 0.10397640667310769, -0.14899187042003548]","[-0.10480384553448603, -0.006035618906388116, 0.03723218480143566, 0.04874077180497944, -0.1345389922138335, 0.020149068595109575, 0.12830685990881754, 0.07850960496375715, -0.09213985015664944, 0.1462622302783545, 0.01103982465577766, 0.047257695845936254, -0.10504395938178952, 0.08934158771067592, 0.02131324621394811, 0.011467361620968656, -0.07792994037479353, 0.08079963255426356, -0.09233484951787696, 0.10530511630575363, -0.11503395999456989, 0.17362363911492362, 0.057625512196891264, 0.04503304169521078, -0.03509488228995568, -0.06928845160742546, 0.08564803158410307, 0.04312332244715092, 0.10397640667310769, -0.14899187042003548]","[[-0.3017835142943215, 0.09041552392528066], [-0.19981762339223264, 0.18808890546548415], [-0.1658139568985125, 0.2427490548948759], [-0.17003345102157108, 0.26873449352648027], [-0.3409557139870925, 0.07138951424873093], [-0.1892335662697063, 0.22807447351987203], [-0.0727486797036944, 0.3304384612069982], [-0.12947325876843277, 0.2866656493557282], [-0.29738556080500544, 0.1120281951821315], [-0.06886738944276402, 0.36483453819533035], [-0.1980118874206653, 0.21951098001606004], [-0.15929409960546964, 0.25439350111847187], [-0.30960892074211593, 0.1026944978523366], [-0.12159937945249667, 0.29493463020380234], [-0.18054812870767212, 0.2232190607749428], [-0.1947074228815728, 0.21666019053491148], [-0.2835339941613561, 0.12958025829400882], [-0.12491966814429092, 0.28621975327390464], [-0.28296411155825124, 0.09933593413274786], [-0.11541998720762275, 0.32587050317919475], [-0.3173996867870676, 0.08605709474469923], [-0.04564095869073974, 0.3906999248659669], [-0.149541717021119, 0.2660905916543035], [-0.15353981068431186, 0.24366699760363317], [-0.22789229132268377, 0.15854070529074338], [-0.2879018165690522, 0.14808853760646484], [-0.113590092329017, 0.28528846598974456], [-0.1631430592133785, 0.25032640750000673], [-0.09135638881074039, 0.3004819200488533], [-0.357831692786538, 0.05713455516158641]]","[0.2932258191061857, 0.9513280231434736, 0.7205852172481524, 0.6628506531126961, 0.20039934206414922, 0.849836703234397, 0.2111959852811155, 0.4594236223976772, 0.377116521920976, 0.18368031789030637, 0.9173674819569257, 0.6539195985100215, 0.3196696566484797, 0.40293450056250646, 0.8360205945233686, 0.9129628800698116, 0.4603333997263396, 0.44100753517880353, 0.3443680986502041, 0.3496025918528177, 0.2624575206800265, 0.12022905937082384, 0.5861953269626714, 0.6564846409746454, 0.7219178563646242, 0.5326596533928376, 0.3992737312451635, 0.6822850519160174, 0.2973729883809332, 0.1571751973111568]"
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
k,n,events,epv,numba_fit_ms,numpy_fit_ms,brglm2_as_fit_ms,brglm2_mpl_fit_ms,logistf_fit_ms,numba_full_ms,numpy_full_ms,logistf_full_ms,brglm2_as_fit_coef,brglm2_as_fit_intercept,brglm2_mpl_fit_coef,brglm2_mpl_fit_intercept,logistf_fit_coef,logistf_fit_intercept,logistf_full_coef,logistf_full_intercept,logistf_full_ci,logistf_full_pval
|
|
2
|
+
5,1000,208,34.666666666666664,0.5172148812562227,1.4302758499979973,4.2430330000000005,4.251373,2.0780410000000002,4.679291043430567,11.031589936465025,13.7984,"[0.004094441957131447, -0.03720659438805905, 0.027012410020114792, 0.06409127021209349, -0.145059432341842]",-1.3296731203278147,"[0.004094441957131447, -0.03720659438805905, 0.027012410020114792, 0.06409127021209349, -0.145059432341842]",-1.3296731203278147,"[0.004094443335000083, -0.03720659346645835, 0.027012410036848955, 0.06409126871489229, -0.14505943287884365]",-1.329673116304713,"[0.004094443335000083, -0.03720659346645835, 0.027012410036848955, 0.06409126871489229, -0.14505943287884365]",-1.329673116304713,"[[-1.4847345992309982, -1.1792044157967072], [-0.14809250463221343, 0.1554555972935055], [-0.18638974806121333, 0.11085512081169703], [-0.1272047088238784, 0.1814673174584865], [-0.08603668780639773, 0.21489870441654174], [-0.2990728345004555, 0.00781511519794068]]","[0.0, 0.9577930605127225, 0.6230246518917096, 0.7312912918430254, 0.40297950894341117, 0.06294243702344493]"
|
|
3
|
+
10,1000,200,18.181818181818183,1.1257028672844172,1.7561099957674742,7.523795,7.401545,4.246703,19.41337902098894,39.95625185780227,81.37092899999999,"[-0.010760030669949296, 0.10197043930332653, -0.06847141966577035, -0.0228078871109147, 0.15124456115034948, 0.0006231314771206749, 0.08270292156997386, 0.05651874095657418, -0.07025088103700498, -0.010112992230348013]",-1.38667850389615,"[-0.010760030669949296, 0.10197043930332653, -0.06847141966577035, -0.0228078871109147, 0.15124456115034948, 0.0006231314771206749, 0.08270292156997386, 0.05651874095657418, -0.07025088103700498, -0.010112992230348013]",-1.38667850389615,"[-0.01076003259726607, 0.10197044498691603, -0.06847142463328479, -0.02280788828664165, 0.15124457111751857, 0.0006231327289249185, 0.08270293118184316, 0.05651874756523449, -0.07025088600905598, -0.01011299426140285]",-1.386678446364972,"[-0.01076003259726607, 0.10197044498691603, -0.06847142463328479, -0.02280788828664165, 0.15124457111751857, 0.0006231327289249185, 0.08270293118184316, 0.05651874756523449, -0.07025088600905598, -0.01011299426140285]",-1.386678446364972,"[[-1.5455371410467345, -1.2329991132625735], [-0.16206316314446326, 0.1410063821515326], [-0.05482034674303221, 0.25987009223717517], [-0.21977147808706926, 0.08261058906735375], [-0.18104878988278217, 0.1347187536171457], [-0.007935402610043007, 0.3118297805480424], [-0.1565658633475956, 0.15781079148015648], [-0.0751250675455333, 0.2406859338368431], [-0.09763592865438475, 0.21125492977142715], [-0.2323268967959393, 0.09088692366806167], [-0.1635833858556177, 0.14337700879475201]]","[0.0, 0.8892136391915952, 0.20272789647042422, 0.37420504903783736, 0.7767920430573982, 0.06259986603440681, 0.9937944694146364, 0.3041646057533893, 0.4725501467510502, 0.3932459068161077, 0.8971432222819665]"
|
|
4
|
+
15,1000,194,12.125,1.1760129127651453,1.9998610951006413,8.398406000000001,8.516746000000001,6.784445,29.222676064819098,63.760609133169055,156.907024,"[-0.05710106634025389, 0.03654959122598927, 0.05118350907391839, 0.12813230271248385, 0.12107943341741412, -0.046927764846733104, 0.016657258564821087, -0.01378449281883468, -0.07831673680812926, 0.08975178581733398, 0.14807121293411846, 0.14763038789008417, 0.057486148088146886, -0.048302296543641425, -0.024384052039880456]",-1.4292846056204649,"[-0.05710106634025389, 0.03654959122598927, 0.05118350907391839, 0.12813230271248385, 0.12107943341741412, -0.046927764846733104, 0.016657258564821087, -0.01378449281883468, -0.07831673680812926, 0.08975178581733398, 0.14807121293411846, 0.14763038789008417, 0.057486148088146886, -0.048302296543641425, -0.024384052039880456]",-1.4292846056204649,"[-0.057101099124727134, 0.03654961542442723, 0.05118352932445445, 0.1281323614086497, 0.12107949479611271, -0.046927793309269016, 0.01665726960959926, -0.013784500420064379, -0.07831677982669467, 0.08975182674136334, 0.14807127342922408, 0.14763046097854615, 0.05748618530595938, -0.048302321542035, -0.02438405497756506]",-1.429284286806044,"[-0.057101099124727134, 0.03654961542442723, 0.05118352932445445, 0.1281323614086497, 0.12107949479611271, -0.046927793309269016, 0.01665726960959926, -0.013784500420064379, -0.07831677982669467, 0.08975182674136334, 0.14807127342922408, 0.14763046097854615, 0.05748618530595938, -0.048302321542035, -0.02438405497756506]",-1.429284286806044,"[[-1.5924537897103201, -1.2719353528621355], [-0.21180322547560915, 0.09693388140765341], [-0.118465538033331, 0.19165772564293512], [-0.10516239024409223, 0.20846107206690584], [-0.02547240225214514, 0.2829833131749621], [-0.03472967877439248, 0.2782386111333438], [-0.19988596407285117, 0.10579584768036786], [-0.13589261932782387, 0.1693436445663762], [-0.17386603142339496, 0.14590125397719364], [-0.2370183693879398, 0.07966173844570411], [-0.0690589138455779, 0.2492571201354874], [-0.011701385370967238, 0.3100151264680323], [-0.012360354811242527, 0.3096973518155869], [-0.10416606762459854, 0.21908407158225918], [-0.2050099569594702, 0.1083175640203037], [-0.18467158023205288, 0.13567312022495856]]","[0.0, 0.46772001383774375, 0.6437328172898145, 0.5215657317546782, 0.1021892391005963, 0.12795750543744777, 0.5468481153315705, 0.8304397649547438, 0.8656609094034806, 0.33144239763609973, 0.26813263644753405, 0.06940248132844262, 0.07062294928917001, 0.4853576395478457, 0.5452362029384468, 0.7651583854172027]"
|
|
5
|
+
20,1000,209,9.952380952380953,1.3796049170196056,2.180692972615361,9.617757,9.726956999999999,15.06224,45.83411477506161,89.84239003621042,438.45126899999997,"[-0.08125881811555029, -0.0528101961748031, 0.026896700176407332, -0.1518878856389232, -0.05140831064336381, -0.07655261049725551, -0.0055846448551443405, 0.10166571587618718, 0.13070532707924595, -0.02846370265546381, 0.02613774574939755, -0.016120288116425914, 0.02573693967964243, 0.004043560388035026, 8.262548232956133e-05, -0.02619151301729171, -0.12414953761865398, 0.0942931059744775, -0.07498038812873559, 0.020575553962530815]",-1.3127975143581987,"[-0.08125881811555029, -0.0528101961748031, 0.026896700176407332, -0.1518878856389232, -0.05140831064336381, -0.07655261049725551, -0.0055846448551443405, 0.10166571587618718, 0.13070532707924595, -0.02846370265546381, 0.02613774574939755, -0.016120288116425914, 0.02573693967964243, 0.004043560388035026, 8.262548232956133e-05, -0.02619151301729171, -0.12414953761865398, 0.0942931059744775, -0.07498038812873559, 0.020575553962530815]",-1.3127975143581987,"[-0.0812589219550887, -0.05281024564130412, 0.026896713103540925, -0.15188806149088907, -0.05140835779379517, -0.07655266326224446, -0.005584620645334898, 0.1016658298563446, 0.13070541718435158, -0.028463769759630265, 0.026137778500664132, -0.0161203087846763, 0.025736933932984533, 0.004043561096453724, 8.264399583421186e-05, -0.026191515099981556, -0.12414963402427522, 0.09429314332762533, -0.07498043996374423, 0.020575550036603232]",-1.312796894196755,"[-0.0812589219550887, -0.05281024564130412, 0.026896713103540925, -0.15188806149088907, -0.05140835779379517, -0.07655266326224446, -0.005584620645334898, 0.1016658298563446, 0.13070541718435158, -0.028463769759630265, 0.026137778500664132, -0.0161203087846763, 0.025736933932984533, 0.004043561096453724, 8.264399583421186e-05, -0.026191515099981556, -0.12414963402427522, 0.09429314332762533, -0.07498043996374423, 0.020575550036603232]",-1.312796894196755,"[[-1.4693774697415338, -1.1611494875995734], [-0.23304368215151722, 0.0704396239400142], [-0.20699249700657252, 0.10125502076044389], [-0.12137958661068625, 0.17536971097921758], [-0.30259074037769595, -0.002262540329329757], [-0.20372330064861202, 0.10043927744139927], [-0.23243748270203177, 0.07876895389003967], [-0.16336355238810008, 0.15214022407996816], [-0.056353528440181606, 0.26074934089678153], [-0.02433963497568479, 0.2865051288927762], [-0.18438642871229338, 0.12773484025321252], [-0.12714786647455142, 0.18030216881350905], [-0.1746527883474568, 0.1417810891534491], [-0.12483852831139977, 0.17684982852701264], [-0.15368128870334097, 0.16179161660918756], [-0.16081877472524214, 0.1606626958837651], [-0.17905950359767125, 0.126497810662883], [-0.27290662879600897, 0.023614035704098226], [-0.05581725607266773, 0.24501224080711986], [-0.22481543631462655, 0.07482910540191333], [-0.13287413579442714, 0.1746154947102564]]","[0.0, 0.2934867507100539, 0.5014028392060312, 0.7220746344696625, 0.04662986079807174, 0.5070083757247276, 0.33413995757356973, 0.9446257739615174, 0.20757897478369736, 0.09850017557615631, 0.7205105394174578, 0.7385681141246874, 0.8415359030227738, 0.7377529845956967, 0.9598889895739654, 0.9991951563463615, 0.73660087018691, 0.09969491382863449, 0.21832688761400942, 0.326250945714456, 0.7928246439384959]"
|
|
6
|
+
25,1000,176,6.769230769230769,1.7182179726660252,2.651078160852194,12.013758,12.012559000000001,23.244297,77.0572628825903,141.8179019819945,903.0188860000001,"[-0.007687007218592477, -0.11599386999460937, 0.12169315285978276, 0.011722947074270748, 0.11566562327441296, 0.15191642590434112, -0.06150427629808444, 0.062033068329890376, -0.18129219439308883, 0.056236324286712054, 0.0009684715083837696, -0.012018433425098918, -0.054402032857720516, 0.036459245865157204, 0.19983203188546267, 0.07209632302238439, -0.012893283791290427, 0.042132244591084805, -0.04178639028664117, -0.04655121559764538, -0.04036797014596066, -0.05635553937709845, -0.0014572548568305738, 0.058719336030446004, -0.11890360469319805]",-1.5285654291840685,"[-0.007687007218592477, -0.11599386999460937, 0.12169315285978276, 0.011722947074270748, 0.11566562327441296, 0.15191642590434112, -0.06150427629808444, 0.062033068329890376, -0.18129219439308883, 0.056236324286712054, 0.0009684715083837696, -0.012018433425098918, -0.054402032857720516, 0.036459245865157204, 0.19983203188546267, 0.07209632302238439, -0.012893283791290427, 0.042132244591084805, -0.04178639028664117, -0.04655121559764538, -0.04036797014596066, -0.05635553937709845, -0.0014572548568305738, 0.058719336030446004, -0.11890360469319805]",-1.5285654291840685,"[-0.007687003235643766, -0.1159938672569761, 0.12169314828424939, 0.011722947845780561, 0.1156656193035075, 0.15191641998713387, -0.061504271978896255, 0.062033066275842874, -0.18129218510893136, 0.05623632354148953, 0.0009684772183471239, -0.012018437232888986, -0.05440203291441055, 0.03645924330607151, 0.19983202459731406, 0.07209632099765782, -0.012893281594285055, 0.04213224405792626, -0.04178638694294023, -0.046551221969267725, -0.04036797205020944, -0.056355533304894886, -0.0014572567640729129, 0.05871933794351829, -0.11890360035963825]",-1.5285655136086846,"[-0.007687003235643766, -0.1159938672569761, 0.12169314828424939, 0.011722947845780561, 0.1156656193035075, 0.15191641998713387, -0.061504271978896255, 0.062033066275842874, -0.18129218510893136, 0.05623632354148953, 0.0009684772183471239, -0.012018437232888986, -0.05440203291441055, 0.03645924330607151, 0.19983202459731406, 0.07209632099765782, -0.012893281594285055, 0.04213224405792626, -0.04178638694294023, -0.046551221969267725, -0.04036797205020944, -0.056355533304894886, -0.0014572567640729129, 0.05871933794351829, -0.11890360035963825]",-1.5285655136086846,"[[-1.6978253497644527, -1.3660205285475093], [-0.17325027882022856, 0.15790742004924305], [-0.28359193697456236, 0.050818628684230274], [-0.044975272770173026, 0.28909176817051724], [-0.15160950051476496, 0.174090160752824], [-0.046044336598044536, 0.2783947530810155], [-0.019532603445444066, 0.32459966650367494], [-0.23224744663778826, 0.10856235701421675], [-0.10553523478953339, 0.23008650155763874], [-0.35189327958745636, -0.012015464583658115], [-0.10732225974068564, 0.2199350752483642], [-0.16542881624645164, 0.16657843270708717], [-0.17620937244512125, 0.15289888788535816], [-0.22281804658293344, 0.1135913111618067], [-0.13033034162108847, 0.20348656252679134], [0.03392981385868093, 0.36796391880323864], [-0.09298823712949691, 0.23806820518176008], [-0.1799711007947979, 0.15346709321589552], [-0.1232680975884387, 0.20769390702485135], [-0.21253408671452478, 0.12883640353668538], [-0.2035479851341356, 0.11038965027645202], [-0.20074066660914272, 0.11963160747091647], [-0.22312424993430005, 0.1095145761223053], [-0.16842976535542267, 0.16581575619024094], [-0.10290770904061412, 0.2202294443684428], [-0.2854438136804653, 0.045726705431306976]]","[0.0, 0.9274203480054742, 0.17299116486199306, 0.15244079933079646, 0.8877060234182511, 0.1610996997850429, 0.08249636182110542, 0.4786000270160782, 0.4680968676407039, 0.03578632676709903, 0.500047269423133, 0.9908671176673497, 0.8860749158397208, 0.5256046837549027, 0.6682153528017871, 0.018130050071800907, 0.392338843459354, 0.8793777119459081, 0.6173644739153352, 0.6309658947343781, 0.5606962575723462, 0.6208781701980277, 0.5058336863538679, 0.9863499753927191, 0.475919621928928, 0.15735952372452278]"
|
|
7
|
+
30,1000,225,7.258064516129032,1.9745309837162495,2.8189399745315313,12.992719999999998,13.00624,28.794971,110.55339500308037,183.58386401087046,1307.500061,"[-0.03609338401529608, -0.01107796026673171, -0.09562574278987601, -0.02879123143784461, -0.034357517870441064, -0.1033031259583544, 0.07571502423438997, 0.04640560196642473, -0.0768270136444379, 0.07679307773430241, 0.11055837809493697, 0.14934743810124892, 0.014443877981288213, -0.15294582849504096, 0.08952174432589326, -0.014994039911360238, 0.01599084031648815, -0.10391987857244614, 0.07813463182555995, 0.015836280486012298, 0.021878276017161264, -0.06415021369170702, 0.14806355600115617, 0.06122223956062702, -0.059822189786368864, -0.054900712108162844, 0.11011818269108734, 0.07427532259904268, 0.04569610315273261, -0.09513926917715308]",-1.237751023244877,"[-0.03609338401529608, -0.01107796026673171, -0.09562574278987601, -0.02879123143784461, -0.034357517870441064, -0.1033031259583544, 0.07571502423438997, 0.04640560196642473, -0.0768270136444379, 0.07679307773430241, 0.11055837809493697, 0.14934743810124892, 0.014443877981288213, -0.15294582849504096, 0.08952174432589326, -0.014994039911360238, 0.01599084031648815, -0.10391987857244614, 0.07813463182555995, 0.015836280486012298, 0.021878276017161264, -0.06415021369170702, 0.14806355600115617, 0.06122223956062702, -0.059822189786368864, -0.054900712108162844, 0.11011818269108734, 0.07427532259904268, 0.04569610315273261, -0.09513926917715308]",-1.237751023244877,"[-0.036093379378126386, -0.011077961091254564, -0.0956257318560017, -0.028791228466795396, -0.03435751634428743, -0.1033031129655814, 0.07571501355902177, 0.04640559640237035, -0.07682700131420014, 0.07679306648591717, 0.11055836422828387, 0.1493474177597615, 0.014443875703664833, -0.15294581357465187, 0.08952173425863752, -0.014994038323627104, 0.015990838181088648, -0.10391986639542711, 0.07813462100944747, 0.01583627846752287, 0.021878274534894656, -0.06415020471828223, 0.14806353556474466, 0.06122223442675041, -0.059822182647271835, -0.05490070292541168, 0.1101181710332576, 0.07427531366945973, 0.045696095808286756, -0.09513925942589134]",-1.2377510960497848,"[-0.036093379378126386, -0.011077961091254564, -0.0956257318560017, -0.028791228466795396, -0.03435751634428743, -0.1033031129655814, 0.07571501355902177, 0.04640559640237035, -0.07682700131420014, 0.07679306648591717, 0.11055836422828387, 0.1493474177597615, 0.014443875703664833, -0.15294581357465187, 0.08952173425863752, -0.014994038323627104, 0.015990838181088648, -0.10391986639542711, 0.07813462100944747, 0.01583627846752287, 0.021878274534894656, -0.06415020471828223, 0.14806353556474466, 0.06122223442675041, -0.059822182647271835, -0.05490070292541168, 0.1101181710332576, 0.07427531366945973, 0.045696095808286756, -0.09513925942589134]",-1.2377510960497848,"[[-1.3922522482851136, -1.0881437595321246], [-0.1895264852317432, 0.11729478488150193], [-0.16332220108220372, 0.14090762616204175], [-0.24337492325701104, 0.051242199653105835], [-0.177465637986203, 0.11932834266439933], [-0.18868067594856502, 0.11957702548504541], [-0.2528521381711167, 0.04475729331374981], [-0.0763684467928955, 0.2283053371415825], [-0.10694668799623308, 0.20020828892608558], [-0.22735107814199487, 0.07348068096490241], [-0.07091032030086114, 0.2244887064606547], [-0.037944377767028324, 0.25955330868541626], [-0.002446183353523661, 0.3020616687303061], [-0.13766897724360105, 0.1667621236976423], [-0.30086122782465224, -0.006303533666407457], [-0.05880861443312375, 0.23850444841952473], [-0.16649077312839508, 0.13622156828654475], [-0.1372937964661137, 0.1689416522485863], [-0.25648116357140666, 0.04755413098170738], [-0.06934345676868511, 0.22632314145963148], [-0.13643630450893648, 0.16817418722576366], [-0.1298625192177147, 0.17420515300538467], [-0.2157438427010242, 0.08662622304090965], [-0.0058262754780925895, 0.3033096676877183], [-0.08071442242333193, 0.20404307046933576], [-0.20977865961519943, 0.08932337725669681], [-0.20427933010758154, 0.09398066993454607], [-0.0337497476858002, 0.25446304363883104], [-0.07716786161428235, 0.2265939316725983], [-0.10767124005753627, 0.1993778385127856], [-0.24121982720564603, 0.05023055835393296]]","[0.0, 0.644380852385093, 0.8863628776282835, 0.20209063315990228, 0.7033696927042149, 0.661777680847738, 0.17191463758722803, 0.3292180994734697, 0.5531684668294421, 0.31622154082545706, 0.30781480821628593, 0.14450347567294508, 0.05381200645194106, 0.852300804763672, 0.0409136345079415, 0.23693894197758336, 0.8458815574833395, 0.8376640878918384, 0.17897741387834698, 0.29927041921927855, 0.8383525856762528, 0.7776345180794061, 0.40467641287046496, 0.05935118094443681, 0.3983136592274852, 0.4321202904590411, 0.46989775900374564, 0.13354380831621881, 0.3367389894701339, 0.559099693899221, 0.1997072310691118]"
|
|
8
|
+
35,1000,200,5.555555555555555,2.1496929693967104,3.1946939416229725,15.491881000000001,15.367881,40.511659,138.2657738868147,236.2582329660654,2209.1130369999996,"[0.027626224966857137, -0.007243125449488546, 0.04208655763149033, -0.07222629105575812, 0.041074554564462955, 0.006163757846944775, -0.08598478960600785, -0.14627727781402353, -0.05597224582788053, 0.021751994998766077, 0.009965719442233031, -0.052270212479434086, 0.09811792194607397, 0.07820736700092004, 0.01884117097496407, 0.03495093997661253, 0.0424115951851784, -0.014302070705500887, -0.07036064635174749, 0.008202482471679321, 0.0121561373616759, 0.09830741573087397, -0.038325540493549956, -0.08896834969617858, -0.027872462943390915, 0.0064643652276210285, -0.13475480264685463, -0.04080020482598613, -0.06556102536954668, -0.05942162818609746, 0.08426292122539078, 0.010410323154040892, 0.035398175618597996, 0.02255204984897241, 0.08146656591127599]",-1.3696719206674977,"[0.027626224966857137, -0.007243125449488546, 0.04208655763149033, -0.07222629105575812, 0.041074554564462955, 0.006163757846944775, -0.08598478960600785, -0.14627727781402353, -0.05597224582788053, 0.021751994998766077, 0.009965719442233031, -0.052270212479434086, 0.09811792194607397, 0.07820736700092004, 0.01884117097496407, 0.03495093997661253, 0.0424115951851784, -0.014302070705500887, -0.07036064635174749, 0.008202482471679321, 0.0121561373616759, 0.09830741573087397, -0.038325540493549956, -0.08896834969617858, -0.027872462943390915, 0.0064643652276210285, -0.13475480264685463, -0.04080020482598613, -0.06556102536954668, -0.05942162818609746, 0.08426292122539078, 0.010410323154040892, 0.035398175618597996, 0.02255204984897241, 0.08146656591127599]",-1.3696719206674977,"[0.02762622375504068, -0.0072431244609816835, 0.042086554615072345, -0.07222627335293667, 0.04107454663470885, 0.006163756893583946, -0.08598477138048621, -0.1462772547557635, -0.05597223088632727, 0.021751989541733272, 0.009965721230657773, -0.052270201305249044, 0.09811790297610345, 0.07820735107140175, 0.018841165791095578, 0.03495093649581648, 0.04241158845415319, -0.014302066737260477, -0.07036063339000609, 0.00820248038815508, 0.012156135848069585, 0.09830739797276193, -0.03832553689657858, -0.08896833433560895, -0.02787246078724267, 0.006464364407577662, -0.13475477980156242, -0.040800192398788064, -0.06556101366925579, -0.05942161877972709, 0.08426290807856668, 0.01041031978049366, 0.03539816985755902, 0.022552045334024537, 0.08146655157456582]",-1.3696720668548732,"[0.02762622375504068, -0.0072431244609816835, 0.042086554615072345, -0.07222627335293667, 0.04107454663470885, 0.006163756893583946, -0.08598477138048621, -0.1462772547557635, -0.05597223088632727, 0.021751989541733272, 0.009965721230657773, -0.052270201305249044, 0.09811790297610345, 0.07820735107140175, 0.018841165791095578, 0.03495093649581648, 0.04241158845415319, -0.014302066737260477, -0.07036063339000609, 0.00820248038815508, 0.012156135848069585, 0.09830739797276193, -0.03832553689657858, -0.08896833433560895, -0.02787246078724267, 0.006464364407577662, -0.13475477980156242, -0.040800192398788064, -0.06556101366925579, -0.05942161877972709, 0.08426290807856668, 0.01041031978049366, 0.03539816985755902, 0.022552045334024537, 0.08146655157456582]",-1.3696720668548732,"[[-1.5309977980137772, -1.214108872579324], [-0.13148954939407495, 0.18722111844660302], [-0.16876301995444218, 0.1534348776608961], [-0.11335377971117153, 0.19736100117059804], [-0.22601547667583502, 0.08133212716201857], [-0.11071593985626171, 0.19330322116887944], [-0.1504996373513082, 0.1636604302364211], [-0.24091229229734853, 0.06742806119101906], [-0.3082686466139218, 0.014414614300345517], [-0.21624836599491878, 0.10409636565910257], [-0.12940874025194277, 0.17310156453428055], [-0.14917940313515388, 0.16886386478808585], [-0.20731054830059217, 0.10232925533184395], [-0.0598886997658546, 0.2568165061527037], [-0.08291321711982394, 0.24025778720921492], [-0.14216092620029475, 0.17982440400502422], [-0.12675839473660155, 0.1971942699823079], [-0.11693814800768211, 0.20280697998024347], [-0.17374091794727808, 0.14525276125651584], [-0.22568850184160139, 0.08460633128571841], [-0.14624115552858777, 0.16195365405693066], [-0.14121615544731578, 0.16588444322936874], [-0.062391953379941446, 0.25942348572191326], [-0.20330855531072045, 0.12644415403280979], [-0.2525958985853126, 0.07399738523524635], [-0.1827113543301816, 0.12633811904613237], [-0.1488589889203748, 0.16182011044929676], [-0.2926903299213598, 0.02244901960822882], [-0.19939538219899622, 0.1178136964931779], [-0.22093710228002642, 0.08941043201630615], [-0.21836016958879995, 0.09925697150743418], [-0.0748945039356192, 0.24393612126234437], [-0.15537201512692622, 0.17609795988106777], [-0.1189963941008706, 0.18965191507365783], [-0.14060198150636086, 0.1862138613220541], [-0.08113259148650556, 0.2449465937016837]]","[0.0, 0.7336891993757535, 0.9296985170670987, 0.5951482436786458, 0.35632607010247297, 0.5958795467940232, 0.9386184446122426, 0.2726804190915133, 0.07445378900360133, 0.49290152066110493, 0.7777960394467915, 0.9021464167369353, 0.5075497655219376, 0.22362987909093845, 0.3417388994919539, 0.8183953497700092, 0.6719486724668353, 0.6024396903691425, 0.8603536192694212, 0.37342490332016864, 0.9168310335384919, 0.8765532501926294, 0.23044912782134586, 0.6483014942464418, 0.28468989439542536, 0.723305480400033, 0.9349276276994367, 0.09296240334413997, 0.6137640439796417, 0.406961543479077, 0.46282057549363786, 0.2994379878460257, 0.9019233787996619, 0.6527093378818635, 0.7865279128919705, 0.32640018818841754]"
|
|
9
|
+
40,1000,209,5.097560975609756,2.627687994390726,3.6898800171911716,17.252552,17.513603,51.134116999999996,199.67186683788896,314.669436076656,3188.6626690000003,"[-0.04619066653094658, 0.019485694738477128, -0.039676449028938014, -0.1264587988266703, 0.040918467131862306, -0.042645300607408294, -0.10921346050270549, -0.017725960744010304, 0.044450823595944426, -0.03168718938279935, -0.09432491087925841, 0.028885220238741058, -0.11801881372671168, -0.020206639490115603, 0.025125062380089328, -0.015464031997129596, -0.07772686644692746, -0.17516306021497233, 0.0487688945964814, -0.05180577280693834, -0.24067839464453106, 0.09390504615670314, -0.10435834702522996, -0.04881114922146159, 0.009225656062911014, 0.007143540784555911, 0.06535344727390474, -0.02164265142108186, 0.08555625717272192, 0.12314382874742248, -0.10509920276591032, 0.009425913664970116, 0.13777630517045128, -0.02318721047841953, 0.04751127997293342, 0.014366843506238958, -0.019286178005213164, -0.008459448713666275, -0.005523081185082286, -0.1649562692878231]",-1.3505793366390744,"[-0.04619066653094658, 0.019485694738477128, -0.039676449028938014, -0.1264587988266703, 0.040918467131862306, -0.042645300607408294, -0.10921346050270549, -0.017725960744010304, 0.044450823595944426, -0.03168718938279935, -0.09432491087925841, 0.028885220238741058, -0.11801881372671168, -0.020206639490115603, 0.025125062380089328, -0.015464031997129596, -0.07772686644692746, -0.17516306021497233, 0.0487688945964814, -0.05180577280693834, -0.24067839464453106, 0.09390504615670314, -0.10435834702522996, -0.04881114922146159, 0.009225656062911014, 0.007143540784555911, 0.06535344727390474, -0.02164265142108186, 0.08555625717272192, 0.12314382874742248, -0.10509920276591032, 0.009425913664970116, 0.13777630517045128, -0.02318721047841953, 0.04751127997293342, 0.014366843506238958, -0.019286178005213164, -0.008459448713666275, -0.005523081185082286, -0.1649562692878231]",-1.3505793366390744,"[-0.04619063861583009, 0.01948569018175991, -0.03967642425120709, -0.1264587463907021, 0.04091844065718249, -0.042645295468785045, -0.10921342930041708, -0.017725944591675247, 0.04445079242017818, -0.03168716510621384, -0.09432486709941475, 0.028885210758090883, -0.11801875465209483, -0.02020662462771242, 0.025125046757692723, -0.015464024617726809, -0.07772682750158842, -0.1751629957791273, 0.048768867885749634, -0.05180574392584707, -0.24067829547367262, 0.09390501613719056, -0.1043582971870166, -0.048811123665052865, 0.009225647066901734, 0.007143548853528082, 0.06535342288897719, -0.021642635825052492, 0.08555621757374024, 0.12314377300306951, -0.105099157340806, 0.009425904433086007, 0.13777624860879695, -0.02318719561697399, 0.04751128303218479, 0.014366832430096668, -0.019286176394781408, -0.008459437067229198, -0.005523065514292195, -0.16495622443104968]",-1.3505796740770473,"[-0.04619063861583009, 0.01948569018175991, -0.03967642425120709, -0.1264587463907021, 0.04091844065718249, -0.042645295468785045, -0.10921342930041708, -0.017725944591675247, 0.04445079242017818, -0.03168716510621384, -0.09432486709941475, 0.028885210758090883, -0.11801875465209483, -0.02020662462771242, 0.025125046757692723, -0.015464024617726809, -0.07772682750158842, -0.1751629957791273, 0.048768867885749634, -0.05180574392584707, -0.24067829547367262, 0.09390501613719056, -0.1043582971870166, -0.048811123665052865, 0.009225647066901734, 0.007143548853528082, 0.06535342288897719, -0.021642635825052492, 0.08555621757374024, 0.12314377300306951, -0.105099157340806, 0.009425904433086007, 0.13777624860879695, -0.02318719561697399, 0.04751128303218479, 0.014366832430096668, -0.019286176394781408, -0.008459437067229198, -0.005523065514292195, -0.16495622443104968]",-1.3505796740770473,"[[-1.5153291960388586, -1.192172305269402], [-0.20079506135537895, 0.10813314859984592], [-0.13113185733374627, 0.17017909857851019], [-0.1924939818011383, 0.11304542935234323], [-0.2826234796804083, 0.028354899811527605], [-0.11322590244450097, 0.19568089188032137], [-0.19895485303413693, 0.11291942508562255], [-0.260930936272881, 0.04204482979630353], [-0.17648859364966266, 0.14074444740542386], [-0.10444558634649827, 0.19337148805265603], [-0.1944231515986005, 0.1303168841391176], [-0.25522232963390123, 0.06616186996942654], [-0.12697712155434773, 0.1850914065395864], [-0.2674566647533885, 0.030562542487410728], [-0.18031265472577146, 0.14015049073800248], [-0.12507407566386292, 0.175404032510503], [-0.17762232565127797, 0.1463362207886667], [-0.23898186711446337, 0.08323761483255948], [-0.3327110571720798, -0.019172088915041494], [-0.11289784120426113, 0.2115716043355279], [-0.21545989411233143, 0.11077814925360559], [-0.3957603344585695, -0.08768602456512778], [-0.05696384520249148, 0.2454350388005577], [-0.2527301589693038, 0.0437281046584021], [-0.2091010062152584, 0.11119570585669014], [-0.14804601586286636, 0.16572383957247586], [-0.14576345995081325, 0.15993142728552878], [-0.0906008202923164, 0.22148812448056757], [-0.17789558822110407, 0.13471882048346506], [-0.071499502857273, 0.24272290224664644], [-0.030700670065055998, 0.27765863573081806], [-0.25897263918709124, 0.048207162404746824], [-0.14048649862432103, 0.15940728337392177], [-0.02254129765798957, 0.2997290283868987], [-0.17558990328601567, 0.1288563909434153], [-0.11282056729283539, 0.20823977211776742], [-0.13626035113793622, 0.16470641231938962], [-0.1748946262050505, 0.13652026972066506], [-0.16159227164986795, 0.14435795573464216], [-0.154134590298303, 0.14272658185244047], [-0.326322333793844, -0.005246619899198239]]","[0.0, 0.5572986287055298, 0.7996714634853022, 0.6103481619870197, 0.10953539269584556, 0.6030317025373042, 0.5913493772318921, 0.15697876424446555, 0.8264186079064122, 0.5580825001539835, 0.7016685728419281, 0.24925429691263867, 0.7163973250244743, 0.1195723127508308, 0.8045811848619122, 0.7428047429677853, 0.8513980556428555, 0.343717581698062, 0.027691724029906384, 0.5549242514156916, 0.5328013915385433, 0.0019971820339177437, 0.22257072897304253, 0.167084176118923, 0.5497640924852806, 0.9081617172956578, 0.9269354672001442, 0.4111076445360944, 0.7858884037840532, 0.2853905886191537, 0.11670228180447384, 0.17904625973903554, 0.9018351997117624, 0.09224887188663733, 0.764997212705738, 0.5613155542873182, 0.8514287146623682, 0.8080107308367259, 0.9135898811091192, 0.9417954999716543, 0.0429141371693752]"
|
|
10
|
+
45,1000,195,4.239130434782608,3.325826022773981,4.5894889626652,19.110093000000003,19.269894,67.87683899999999,265.9828250762075,405.0808590836823,4573.954746,"[-0.031160076667437392, 0.012785618163438326, -0.017950354475452485, 0.15361065147698347, -0.055735648078746605, -0.06694198206530197, 0.09195569183615203, -0.14078730864459404, 0.14030886251209937, 0.18563793176297694, 0.07439851528909269, -0.02467181229123938, -0.10431612154683627, -0.0395000536672393, 0.012977652536920896, -0.048154696898270975, -0.07592224874978205, -0.012010273422524375, 0.012999633209120067, -0.020696530406574754, 0.0835553594396407, 0.04733329936419552, -0.0985039647436617, -0.08688663851107624, 0.06049296553221248, 0.03377308184224545, -0.12071535775858394, 0.02862390745133857, 0.15798581679064555, -0.14132420814187166, -0.1735188813996909, 0.07271849946507508, 0.0038641436687259466, -0.011408844577759699, 0.23305114284570194, 0.041029319350505467, 0.06719485636104232, 0.05670128161113784, 0.055173131551014554, 0.01979523470654469, -0.010406596568141876, -0.011127508569106031, 0.01817674239456081, 0.09542029407724692, 0.024182574869541]",-1.4799997507822455,"[-0.031160076667437392, 0.012785618163438326, -0.017950354475452485, 0.15361065147698347, -0.055735648078746605, -0.06694198206530197, 0.09195569183615203, -0.14078730864459404, 0.14030886251209937, 0.18563793176297694, 0.07439851528909269, -0.02467181229123938, -0.10431612154683627, -0.0395000536672393, 0.012977652536920896, -0.048154696898270975, -0.07592224874978205, -0.012010273422524375, 0.012999633209120067, -0.020696530406574754, 0.0835553594396407, 0.04733329936419552, -0.0985039647436617, -0.08688663851107624, 0.06049296553221248, 0.03377308184224545, -0.12071535775858394, 0.02862390745133857, 0.15798581679064555, -0.14132420814187166, -0.1735188813996909, 0.07271849946507508, 0.0038641436687259466, -0.011408844577759699, 0.23305114284570194, 0.041029319350505467, 0.06719485636104232, 0.05670128161113784, 0.055173131551014554, 0.01979523470654469, -0.010406596568141876, -0.011127508569106031, 0.01817674239456081, 0.09542029407724692, 0.024182574869541]",-1.4799997507822455,"[-0.031160064166599406, 0.012785612949657937, -0.017950326404673568, 0.1536105210347081, -0.055735623914480406, -0.06694194667301576, 0.0919556199614916, -0.1407871881944458, 0.14030876523190633, 0.18563782152890004, 0.07439845931279594, -0.02467180462479239, -0.10431608449219376, -0.0395000091896539, 0.012977636807707554, -0.0481546667925912, -0.07592218481167744, -0.012010238291225219, 0.012999614409138953, -0.02069651857349325, 0.08355531977603832, 0.04733325367666282, -0.09850388885173691, -0.08688656814218745, 0.060492900958991264, 0.03377305549314474, -0.12071530256832742, 0.028623856555297224, 0.15798570387148986, -0.14132409724424858, -0.1735187208236224, 0.0727184275380203, 0.003864137901913921, -0.011408830003258244, 0.23305099626946355, 0.04102929203131187, 0.06719479805740171, 0.056701238150065496, 0.05517311871591934, 0.019795232597256268, -0.010406594404471047, -0.011127513272117603, 0.018176716217709145, 0.09542023531275161, 0.024182577089274477]",-1.4800004780042355,"[-0.031160064166599406, 0.012785612949657937, -0.017950326404673568, 0.1536105210347081, -0.055735623914480406, -0.06694194667301576, 0.0919556199614916, -0.1407871881944458, 0.14030876523190633, 0.18563782152890004, 0.07439845931279594, -0.02467180462479239, -0.10431608449219376, -0.0395000091896539, 0.012977636807707554, -0.0481546667925912, -0.07592218481167744, -0.012010238291225219, 0.012999614409138953, -0.02069651857349325, 0.08355531977603832, 0.04733325367666282, -0.09850388885173691, -0.08688656814218745, 0.060492900958991264, 0.03377305549314474, -0.12071530256832742, 0.028623856555297224, 0.15798570387148986, -0.14132409724424858, -0.1735187208236224, 0.0727184275380203, 0.003864137901913921, -0.011408830003258244, 0.23305099626946355, 0.04102929203131187, 0.06719479805740171, 0.056701238150065496, 0.05517311871591934, 0.019795232597256268, -0.010406594404471047, -0.011127513272117603, 0.018176716217709145, 0.09542023531275161, 0.024182577089274477]",-1.4800004780042355,"[[-1.6558935710351974, -1.312197111469912], [-0.1905072713477822, 0.12779200026154874], [-0.15277445036890475, 0.17809691343322104], [-0.18620155495431565, 0.15041833836669663], [-0.01651691687197603, 0.3252563764679124], [-0.21657340422408597, 0.10447731971699023], [-0.2263674285823687, 0.09294959054381685], [-0.0686741579263123, 0.2525982894811008], [-0.29896307653731846, 0.015443493472978444], [-0.023602292617024068, 0.30574309141571115], [0.01778468325935252, 0.35566957935099475], [-0.08560682688232978, 0.23488235264691032], [-0.18348357072239604, 0.13428741257397542], [-0.2709843819840245, 0.060436889610603374], [-0.20153340130907282, 0.12154391451810374], [-0.14388176281475723, 0.17041953236311133], [-0.21080478469744132, 0.11414722416938435], [-0.24077619962718724, 0.08852438912034191], [-0.1705192583607137, 0.14635288130930763], [-0.13869071336586222, 0.16489955401310064], [-0.17930063133252802, 0.13742151366001182], [-0.08124461905540947, 0.24896640539821813], [-0.12031947932243518, 0.21490780498351472], [-0.2617650219833434, 0.06285333265488639], [-0.2507237177660303, 0.07615986817947726], [-0.10387209761463166, 0.22542708498571126], [-0.12668855615587002, 0.19538796808747005], [-0.28191600320039184, 0.03880634686687639], [-0.1286243125562778, 0.18613212846201918], [-0.008121136538821417, 0.3249552406739429], [-0.2999751455640672, 0.015669464935326873], [-0.33505681246685437, -0.013887691758172744], [-0.09704709731966679, 0.24262132588852167], [-0.15385384918742678, 0.16097282940933327], [-0.16818674882261722, 0.14447356544417658], [0.0728306129011212, 0.3952787254273217], [-0.12370300287435958, 0.20599573406528895], [-0.09572806258956411, 0.23096408921310413], [-0.10046470615357457, 0.21440947932510304], [-0.1029377758055864, 0.21375457197107398], [-0.142496689749139, 0.18230548998080146], [-0.16554287573879173, 0.14436438182716466], [-0.17384382653733504, 0.15094601531216947], [-0.14026562944546492, 0.17683068105668648], [-0.06670260130944003, 0.25810916046625876], [-0.14361792185332803, 0.19262303992481167]]","[0.0, 0.7007814335711929, 0.8794671663300064, 0.8342473331612718, 0.07684723909199709, 0.4954321414932229, 0.41105101095956853, 0.261487586653537, 0.0774784810476018, 0.09351198098179758, 0.030114289873172106, 0.36202603428055813, 0.7606174335924176, 0.21527239341440774, 0.6311409818586724, 0.8712600094560418, 0.5607663335447737, 0.3653532324200134, 0.8817527142487221, 0.8665479932400977, 0.7975781110704772, 0.32039141653033165, 0.5795185470288639, 0.23225949662185363, 0.2964572698893263, 0.47073667812843967, 0.6804751233670148, 0.1383371096509084, 0.7211789245007516, 0.06230468550433277, 0.07777181964493196, 0.033078537051037915, 0.40083004729249394, 0.9615872897588537, 0.8861085607239962, 0.004302615746887839, 0.6252660262157774, 0.4191657894703035, 0.4795860451159708, 0.49405108266629383, 0.8109722068052589, 0.8951427296418959, 0.8930219983277055, 0.8220066263506127, 0.24866845947648608, 0.7777089353184541]"
|
|
11
|
+
50,1000,203,3.980392156862745,4.091165028512478,5.392047809436917,24.332968,24.522896999999997,83.485401,370.9474881179631,532.8659838996828,6282.830548,"[-0.008273657072446448, -0.11223650155274986, -0.01650778990623359, -0.002171795083204114, -0.07391806567643859, 0.11506312463938786, -0.12001371842902522, 0.02947676950054646, 0.17241291253936497, -0.04544282525603684, 0.0441844064331287, -0.1043929040359913, 0.10075424977192365, 0.01102971424614167, 0.1975613882518227, 0.016284223662084645, -0.013152473088754418, -0.06582142922262385, -0.15366136245144438, -0.04101407918717852, 0.09194077727216897, 0.16446759681398498, 0.03719352095839411, 0.10835200296799771, -0.016443870883316752, -0.041811941572870444, -0.060148235185364274, 0.03585321772580776, -0.043375233309837356, 0.014804468056202051, 0.018326223687944114, 0.17710124207796324, -0.04239828085903644, -0.09247751630441262, 0.139246884275267, -0.07785168940274942, -0.05568318172411837, -0.03212812392605702, -0.0642177259466484, -0.02310931789797859, 0.045062821652434255, 0.05312051865123489, 0.013962510664863318, 0.041325328438787404, 0.17285196959605012, -0.1207170482780331, -0.1784447915122496, -0.017701563667967168, -0.09453703361148491, -0.03985703656907472]",-1.378904807401532,"[-0.008273657072446448, -0.11223650155274986, -0.01650778990623359, -0.002171795083204114, -0.07391806567643859, 0.11506312463938786, -0.12001371842902522, 0.02947676950054646, 0.17241291253936497, -0.04544282525603684, 0.0441844064331287, -0.1043929040359913, 0.10075424977192365, 0.01102971424614167, 0.1975613882518227, 0.016284223662084645, -0.013152473088754418, -0.06582142922262385, -0.15366136245144438, -0.04101407918717852, 0.09194077727216897, 0.16446759681398498, 0.03719352095839411, 0.10835200296799771, -0.016443870883316752, -0.041811941572870444, -0.060148235185364274, 0.03585321772580776, -0.043375233309837356, 0.014804468056202051, 0.018326223687944114, 0.17710124207796324, -0.04239828085903644, -0.09247751630441262, 0.139246884275267, -0.07785168940274942, -0.05568318172411837, -0.03212812392605702, -0.0642177259466484, -0.02310931789797859, 0.045062821652434255, 0.05312051865123489, 0.013962510664863318, 0.041325328438787404, 0.17285196959605012, -0.1207170482780331, -0.1784447915122496, -0.017701563667967168, -0.09453703361148491, -0.03985703656907472]",-1.378904807401532,"[-0.008273656978044542, -0.11223650821226158, -0.01650779262311845, -0.0021717960725858455, -0.07391806939337003, 0.11506313229170845, -0.12001372557062483, 0.029476770588417987, 0.17241292412491974, -0.04544282884376562, 0.04418440909304491, -0.10439291081687042, 0.10075425614229418, 0.011029714261310221, 0.1975614012858327, 0.016284223199097978, -0.013152473856454617, -0.06582143326329716, -0.15366137017564968, -0.041014083527467826, 0.0919407820354367, 0.16446760889516499, 0.03719352374535983, 0.10835200728010622, -0.01644387179805737, -0.041811944811737105, -0.060148239477284884, 0.03585321986773155, -0.043375235414491266, 0.014804468904559297, 0.018326222666336055, 0.17710125224115558, -0.04239828347839189, -0.0924775239662116, 0.13924689271254712, -0.07785169288217772, -0.055683186605236294, -0.032128125460955864, -0.06421773169123739, -0.023109317144479787, 0.04506282585058473, 0.053120521680087365, 0.013962511257724217, 0.041325333125952955, 0.17285198155645473, -0.12071705293072547, -0.17844480198506746, -0.017701564523665392, -0.09453703755441085, -0.03985704148868679]",-1.3789047488750483,"[-0.008273656978044542, -0.11223650821226158, -0.01650779262311845, -0.0021717960725858455, -0.07391806939337003, 0.11506313229170845, -0.12001372557062483, 0.029476770588417987, 0.17241292412491974, -0.04544282884376562, 0.04418440909304491, -0.10439291081687042, 0.10075425614229418, 0.011029714261310221, 0.1975614012858327, 0.016284223199097978, -0.013152473856454617, -0.06582143326329716, -0.15366137017564968, -0.041014083527467826, 0.0919407820354367, 0.16446760889516499, 0.03719352374535983, 0.10835200728010622, -0.01644387179805737, -0.041811944811737105, -0.060148239477284884, 0.03585321986773155, -0.043375235414491266, 0.014804468904559297, 0.018326222666336055, 0.17710125224115558, -0.04239828347839189, -0.0924775239662116, 0.13924689271254712, -0.07785169288217772, -0.055683186605236294, -0.032128125460955864, -0.06421773169123739, -0.023109317144479787, 0.04506282585058473, 0.053120521680087365, 0.013962511257724217, 0.041325333125952955, 0.17285198155645473, -0.12071705293072547, -0.17844480198506746, -0.017701564523665392, -0.09453703755441085, -0.03985704148868679]",-1.3789047488750483,"[[-1.5463266799229238, -1.2183272370750098], [-0.16709724984046287, 0.15110550818220572], [-0.2756320507788129, 0.049951215062160666], [-0.17296306160451574, 0.14035712379384543], [-0.16064941615967518, 0.15617892405836264], [-0.2342940076794484, 0.08595298743496668], [-0.04520814760109339, 0.275473058194858], [-0.28318997486579145, 0.04195658742351612], [-0.12612240820876908, 0.184960473656602], [0.017628307341157584, 0.3286651329044119], [-0.20679584809582463, 0.1158091333477787], [-0.11432926321480671, 0.2035959935352472], [-0.2608652590194853, 0.05139048020912377], [-0.05480584242193884, 0.2572783996506371], [-0.14849010530101242, 0.1697258255599362], [0.032741863006015635, 0.3642133550286139], [-0.1399765601461097, 0.1731894543996116], [-0.1734172192203597, 0.14687815183305306], [-0.23317451546775128, 0.10047182539569047], [-0.32010671732304913, 0.011861814277378088], [-0.2022403276164361, 0.11961356994482703], [-0.06927177122317661, 0.2538048970937525], [0.009011310767623779, 0.32119234061707536], [-0.12362917864080097, 0.19830138815408968], [-0.0531472010717859, 0.2708373842583604], [-0.1792377913245645, 0.1457740189909398], [-0.19976080259521972, 0.115667276705863], [-0.21952884279957194, 0.09845994728782843], [-0.12496601930078953, 0.19687881335036614], [-0.1970752972910009, 0.10952681384467469], [-0.14619358963257884, 0.1757959956434916], [-0.13841140335635738, 0.17539790830424787], [0.019409757936658143, 0.3361716515306081], [-0.20951012296411278, 0.12478304380773338], [-0.2421614124011946, 0.05657262265732117], [-0.019954274015954104, 0.2998861819571114], [-0.23077801468611325, 0.0745255401969839], [-0.21721729919200272, 0.10510004996429177], [-0.1897287918699209, 0.12470530362177357], [-0.2204461391028901, 0.09143719143550537], [-0.18205920649133375, 0.13511231684424127], [-0.11440650033535148, 0.20473431665366953], [-0.10134705806223501, 0.20762118288970746], [-0.15049455107807275, 0.17841168411248234], [-0.12068040081373849, 0.203293923032515], [0.011532372485486182, 0.33565584356674255], [-0.2788933056658253, 0.036225138087140056], [-0.34113839566571946, -0.017438407922130673], [-0.1725105898617517, 0.13693046699532832], [-0.25691318192499424, 0.06722855867361388], [-0.19648015202714847, 0.11596853197619317]]","[0.0, 0.9187296903983788, 0.17523774301719652, 0.8361898323682027, 0.9785356961042695, 0.36481609363670764, 0.15920029327518115, 0.1466139594964061, 0.7100117906240975, 0.02898148943933543, 0.5804363822236004, 0.5852093799169059, 0.18908637803978223, 0.20449189229933695, 0.8918201120828648, 0.018736359002808012, 0.8382590045153799, 0.8719646754996828, 0.4383113624510472, 0.06884849016145311, 0.6168843917112857, 0.26371501884534476, 0.03810256330097339, 0.6502258387889992, 0.18868136282514336, 0.842595992989909, 0.6028163376917199, 0.45754979959532505, 0.6619691343083031, 0.5784670319365341, 0.8568010554878049, 0.8187095015412006, 0.027682331044269648, 0.6187066929140164, 0.22396980897632712, 0.08656641728249659, 0.31669521104547105, 0.49748432140483545, 0.6882646966064798, 0.41881095656301337, 0.7748497169001114, 0.5794568012097207, 0.49989209368247134, 0.8676851585597849, 0.6167028837790569, 0.03569254831464708, 0.13182649542536906, 0.02978333269332356, 0.8223528308393764, 0.2520626088842127, 0.6164620326548207]"
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import math
|
|
2
2
|
from dataclasses import dataclass
|
|
3
|
-
from typing import Callable
|
|
3
|
+
from typing import Callable, Literal
|
|
4
4
|
|
|
5
5
|
import numpy as np
|
|
6
6
|
import scipy
|
|
@@ -15,6 +15,9 @@ class LRTResult:
|
|
|
15
15
|
chi2: float
|
|
16
16
|
pvalue: float
|
|
17
17
|
bse_backcorrected: float
|
|
18
|
+
valid: bool
|
|
19
|
+
n_iter: int
|
|
20
|
+
failure_reason: Literal["step_halving", "max_iter", "nonfinite"] | None = None
|
|
18
21
|
|
|
19
22
|
|
|
20
23
|
@dataclass
|
|
@@ -24,6 +27,47 @@ class _SlicedQuantities:
|
|
|
24
27
|
fisher_info: NDArray[np.float64]
|
|
25
28
|
|
|
26
29
|
|
|
30
|
+
def lrt_result_from_loglik(
|
|
31
|
+
*,
|
|
32
|
+
beta: float,
|
|
33
|
+
loglik_full: float,
|
|
34
|
+
loglik_constrained: float,
|
|
35
|
+
converged: bool,
|
|
36
|
+
n_iter: int,
|
|
37
|
+
failure_reason: Literal["step_halving", "max_iter", "nonfinite"] | None = None,
|
|
38
|
+
) -> LRTResult:
|
|
39
|
+
if not converged:
|
|
40
|
+
return LRTResult(
|
|
41
|
+
chi2=math.nan,
|
|
42
|
+
pvalue=math.nan,
|
|
43
|
+
bse_backcorrected=math.nan,
|
|
44
|
+
valid=False,
|
|
45
|
+
n_iter=n_iter,
|
|
46
|
+
failure_reason=failure_reason,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
if not math.isfinite(loglik_full) or not math.isfinite(loglik_constrained):
|
|
50
|
+
return LRTResult(
|
|
51
|
+
chi2=math.nan,
|
|
52
|
+
pvalue=math.nan,
|
|
53
|
+
bse_backcorrected=math.nan,
|
|
54
|
+
valid=False,
|
|
55
|
+
n_iter=n_iter,
|
|
56
|
+
failure_reason="nonfinite",
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
chi2 = max(0.0, 2.0 * (loglik_full - loglik_constrained))
|
|
60
|
+
pval = scipy.stats.chi2.sf(chi2, df=1)
|
|
61
|
+
bse = abs(beta) / math.sqrt(chi2) if chi2 > 0 else math.inf
|
|
62
|
+
return LRTResult(
|
|
63
|
+
chi2=chi2,
|
|
64
|
+
pvalue=pval,
|
|
65
|
+
bse_backcorrected=bse,
|
|
66
|
+
valid=True,
|
|
67
|
+
n_iter=n_iter,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
|
|
27
71
|
def constrained_lrt_1df(
|
|
28
72
|
*,
|
|
29
73
|
idx: int,
|
|
@@ -78,6 +122,13 @@ def constrained_lrt_1df(
|
|
|
78
122
|
p-value from chi-squared distribution with 1 degree of freedom.
|
|
79
123
|
bse_backcorrected : float
|
|
80
124
|
Back-corrected standard error, |beta[idx]| / sqrt(chi2).
|
|
125
|
+
valid : bool
|
|
126
|
+
Whether inference is valid. False if the constrained fit did not
|
|
127
|
+
converge or either penalized log-likelihood is non-finite.
|
|
128
|
+
n_iter : int
|
|
129
|
+
Number of constrained-fit Newton steps.
|
|
130
|
+
failure_reason : {'step_halving', 'max_iter', 'nonfinite'} or None
|
|
131
|
+
Reason inference was withheld when the constrained fit was invalid.
|
|
81
132
|
"""
|
|
82
133
|
k = beta_hat_full.shape[0]
|
|
83
134
|
free_indices = [i for i in range(k) if i != idx]
|
|
@@ -100,20 +151,36 @@ def constrained_lrt_1df(
|
|
|
100
151
|
fisher_info=q.fisher_info[ix_grid],
|
|
101
152
|
)
|
|
102
153
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
154
|
+
converged = True
|
|
155
|
+
n_iter = 0
|
|
156
|
+
failure_reason = None
|
|
157
|
+
|
|
158
|
+
if k == 1:
|
|
159
|
+
# No nuisance parameters remain, so the constrained model is specified by
|
|
160
|
+
# beta[idx] = 0 and there is nothing to optimize
|
|
161
|
+
loglik_constrained = compute_quantities_full(beta_full).loglik
|
|
162
|
+
else:
|
|
163
|
+
reduced_result = newton_raphson(
|
|
164
|
+
compute_quantities=constrained_quantities,
|
|
165
|
+
n_features=k - 1,
|
|
166
|
+
max_iter=max_iter,
|
|
167
|
+
max_step=max_step,
|
|
168
|
+
max_halfstep=max_halfstep,
|
|
169
|
+
gtol=gtol,
|
|
170
|
+
xtol=xtol,
|
|
171
|
+
beta_init=beta_init_free,
|
|
172
|
+
warn_on_failure=False,
|
|
173
|
+
)
|
|
174
|
+
loglik_constrained = reduced_result.loglik
|
|
175
|
+
converged = reduced_result.converged
|
|
176
|
+
n_iter = reduced_result.n_iter
|
|
177
|
+
failure_reason = reduced_result.failure_reason
|
|
178
|
+
|
|
179
|
+
return lrt_result_from_loglik(
|
|
180
|
+
beta=beta_hat_full[idx],
|
|
181
|
+
loglik_full=loglik_full,
|
|
182
|
+
loglik_constrained=loglik_constrained,
|
|
183
|
+
converged=converged,
|
|
184
|
+
n_iter=n_iter,
|
|
185
|
+
failure_reason=failure_reason,
|
|
112
186
|
)
|
|
113
|
-
|
|
114
|
-
chi2 = max(0.0, 2.0 * (loglik_full - reduced_result.loglik))
|
|
115
|
-
pval = scipy.stats.chi2.sf(chi2, df=1)
|
|
116
|
-
|
|
117
|
-
# back-corrected SE: |beta|/sqrt(chi2), ensures (beta/SE)^2 = chi2
|
|
118
|
-
bse = abs(beta_hat_full[idx]) / math.sqrt(chi2) if chi2 > 0 else math.inf
|
|
119
|
-
return LRTResult(chi2=chi2, pvalue=pval, bse_backcorrected=bse)
|
|
@@ -518,7 +518,7 @@ def newton_raphson_cox(
|
|
|
518
518
|
if status != 0:
|
|
519
519
|
return beta, loglik, fisher_info, 0, status
|
|
520
520
|
|
|
521
|
-
for iteration in range(
|
|
521
|
+
for iteration in range(max_iter + 1):
|
|
522
522
|
fisher_work[:] = fisher_info
|
|
523
523
|
|
|
524
524
|
info = dpotrf(fisher_work)
|
|
@@ -537,6 +537,9 @@ def newton_raphson_cox(
|
|
|
537
537
|
if max_score < gtol and max_delta < xtol:
|
|
538
538
|
return beta, loglik, fisher_info, iteration, _STATUS_CONVERGED
|
|
539
539
|
|
|
540
|
+
if iteration == max_iter:
|
|
541
|
+
break
|
|
542
|
+
|
|
540
543
|
if max_delta > max_step:
|
|
541
544
|
scale = max_step / max_delta
|
|
542
545
|
for i in range(k):
|
|
@@ -702,8 +705,10 @@ def constrained_lrt_1df_cox(
|
|
|
702
705
|
)
|
|
703
706
|
if status != 0:
|
|
704
707
|
return loglik, 0, status
|
|
708
|
+
if free_k == 0:
|
|
709
|
+
return loglik, 0, _STATUS_CONVERGED
|
|
705
710
|
|
|
706
|
-
for iteration in range(
|
|
711
|
+
for iteration in range(max_iter + 1):
|
|
707
712
|
for i in range(free_k):
|
|
708
713
|
score_free[i] = modified_score[free_idx[i]]
|
|
709
714
|
|
|
@@ -734,6 +739,9 @@ def constrained_lrt_1df_cox(
|
|
|
734
739
|
if max_score < gtol and max_delta < xtol:
|
|
735
740
|
return loglik, iteration, _STATUS_CONVERGED
|
|
736
741
|
|
|
742
|
+
if iteration == max_iter:
|
|
743
|
+
break
|
|
744
|
+
|
|
737
745
|
if max_delta > max_step:
|
|
738
746
|
scale = max_step / max_delta
|
|
739
747
|
for i in range(free_k):
|
|
@@ -910,7 +918,7 @@ def profile_ci_bound_cox(
|
|
|
910
918
|
temp = np.empty(k, dtype=np.float64)
|
|
911
919
|
|
|
912
920
|
# Appendix steps 4-9: Modified Newton-Raphson
|
|
913
|
-
for iteration in range(
|
|
921
|
+
for iteration in range(max_iter + 1):
|
|
914
922
|
# Appendix step 4: compute score and Hessian at theta(i)
|
|
915
923
|
loglik, status = compute_cox_quantities(
|
|
916
924
|
X=X,
|
|
@@ -942,6 +950,9 @@ def profile_ci_bound_cox(
|
|
|
942
950
|
if max_abs(F) <= tol:
|
|
943
951
|
return theta[idx], _STATUS_CONVERGED, iteration
|
|
944
952
|
|
|
953
|
+
if iteration == max_iter:
|
|
954
|
+
break
|
|
955
|
+
|
|
945
956
|
# D = d2l/dtheta2 at current theta (Appendix step 4)
|
|
946
957
|
for i in range(k):
|
|
947
958
|
for j in range(k):
|
|
@@ -139,6 +139,19 @@ def compute_logistic_quantities(
|
|
|
139
139
|
return loglik, 0
|
|
140
140
|
|
|
141
141
|
info = dpotrf(fisher_info)
|
|
142
|
+
if info == 0:
|
|
143
|
+
# check pivots, dpotrf can return info=0 on a singular matrix on Accelerate
|
|
144
|
+
diag_max = fisher_info[0, 0]
|
|
145
|
+
diag_min = fisher_info[0, 0]
|
|
146
|
+
for i in range(1, k):
|
|
147
|
+
d = fisher_info[i, i]
|
|
148
|
+
if d > diag_max:
|
|
149
|
+
diag_max = d
|
|
150
|
+
if d < diag_min:
|
|
151
|
+
diag_min = d
|
|
152
|
+
chol_tol = np.sqrt(max(n, k) * np.finfo(np.float64).eps) * diag_max
|
|
153
|
+
if diag_min <= chol_tol:
|
|
154
|
+
info = 1
|
|
142
155
|
if info == 0:
|
|
143
156
|
logdet = 0.0
|
|
144
157
|
for i in range(k):
|
|
@@ -286,7 +299,7 @@ def newton_raphson_logistic(
|
|
|
286
299
|
if status != 0:
|
|
287
300
|
return beta, loglik, fisher_info_aug, 0, status
|
|
288
301
|
|
|
289
|
-
for iteration in range(
|
|
302
|
+
for iteration in range(max_iter + 1):
|
|
290
303
|
fisher_info[:, :] = fisher_info_aug
|
|
291
304
|
|
|
292
305
|
info = dpotrf(fisher_info)
|
|
@@ -309,6 +322,9 @@ def newton_raphson_logistic(
|
|
|
309
322
|
if max_score < gtol and max_delta < xtol:
|
|
310
323
|
return beta, loglik, fisher_info_aug, iteration, _STATUS_CONVERGED
|
|
311
324
|
|
|
325
|
+
if iteration == max_iter:
|
|
326
|
+
break
|
|
327
|
+
|
|
312
328
|
if max_delta > max_step:
|
|
313
329
|
scale = max_step / max_delta
|
|
314
330
|
for i in range(k):
|
|
@@ -426,8 +442,10 @@ def constrained_lrt_1df_logistic(
|
|
|
426
442
|
)
|
|
427
443
|
if status != 0:
|
|
428
444
|
return loglik, 0, status
|
|
445
|
+
if free_k == 0:
|
|
446
|
+
return loglik, 0, _STATUS_CONVERGED
|
|
429
447
|
|
|
430
|
-
for iteration in range(
|
|
448
|
+
for iteration in range(max_iter + 1):
|
|
431
449
|
for i in range(free_k):
|
|
432
450
|
score_free[i] = modified_score[free_idx[i]]
|
|
433
451
|
|
|
@@ -460,6 +478,9 @@ def constrained_lrt_1df_logistic(
|
|
|
460
478
|
if max_score < gtol and max_delta < xtol:
|
|
461
479
|
return loglik, iteration, _STATUS_CONVERGED
|
|
462
480
|
|
|
481
|
+
if iteration == max_iter:
|
|
482
|
+
break
|
|
483
|
+
|
|
463
484
|
if max_delta > max_step:
|
|
464
485
|
scale = max_step / max_delta
|
|
465
486
|
for i in range(free_k):
|
|
@@ -607,7 +628,7 @@ def profile_ci_bound_logistic(
|
|
|
607
628
|
temp = np.empty(k, dtype=np.float64)
|
|
608
629
|
|
|
609
630
|
# Appendix steps 4-9: Modified Newton-Raphson
|
|
610
|
-
for iteration in range(
|
|
631
|
+
for iteration in range(max_iter + 1):
|
|
611
632
|
# Appendix step 4: compute score and Hessian at theta(i)
|
|
612
633
|
loglik, status = compute_logistic_quantities(
|
|
613
634
|
X, y, theta, sample_weight, offset, workspace, penalty_weight
|
|
@@ -627,6 +648,9 @@ def profile_ci_bound_logistic(
|
|
|
627
648
|
if max_abs(F) <= tol:
|
|
628
649
|
return theta[idx], _STATUS_CONVERGED, iteration
|
|
629
650
|
|
|
651
|
+
if iteration == max_iter:
|
|
652
|
+
break
|
|
653
|
+
|
|
630
654
|
# D = d2l/dtheta2 at current theta (Appendix step 4)
|
|
631
655
|
for i in range(k):
|
|
632
656
|
for j in range(k):
|
|
@@ -112,7 +112,7 @@ def profile_ci_bound(
|
|
|
112
112
|
theta = theta + h * tangent
|
|
113
113
|
|
|
114
114
|
# Appendix steps 4-9: Modified Newton-Raphson
|
|
115
|
-
for iteration in range(
|
|
115
|
+
for iteration in range(max_iter + 1):
|
|
116
116
|
# Appendix step 4: compute score and Hessian at theta(i)
|
|
117
117
|
q = compute_quantities_full(theta)
|
|
118
118
|
|
|
@@ -131,6 +131,9 @@ def profile_ci_bound(
|
|
|
131
131
|
n_iter=iteration,
|
|
132
132
|
)
|
|
133
133
|
|
|
134
|
+
if iteration == max_iter:
|
|
135
|
+
break
|
|
136
|
+
|
|
134
137
|
# D = d2l/dtheta2 at current theta (Appendix step 4)
|
|
135
138
|
D = -q.fisher_info
|
|
136
139
|
G = D.copy(order="F")
|