coxstream 0.1.0__cp313-cp313-macosx_10_13_universal2.whl

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.
coxstream/__init__.py ADDED
@@ -0,0 +1,18 @@
1
+ """coxstream: exact out-of-core Cox proportional hazards via streaming NR.
2
+
3
+ Public API
4
+ ----------
5
+ CoxStream
6
+ Exact Efron Cox proportional hazards estimator. Computes the score and
7
+ observed information in a single descending-time pass per Newton-Raphson
8
+ iteration, with O(p^2) working memory independent of the cohort size.
9
+ ``fit`` takes in-memory arrays; ``fit_parquet`` streams out-of-core.
10
+ check_sorted
11
+ Dry run for the ``fit_parquet`` precondition: validate that a Parquet file
12
+ is descending-time sorted, from footer statistics alone (no full pass), so a
13
+ sort mistake fails fast instead of yielding a silently wrong fit.
14
+ """
15
+ from coxstream.coxstream import CoxStream, check_sorted
16
+
17
+ __all__ = ["CoxStream", "check_sorted"]
18
+ __version__ = "0.1.0"