scientific-computing-system 2.2.22 → 2.2.23
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.
- package/CHANGELOG.md +26 -0
- package/README.md +10 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -42,6 +42,32 @@ what the history supports; it does not claim that a tag exists.
|
|
|
42
42
|
- Centroids are rounded to 9 decimals and inertia to 6 before hashing, so compiler-level float noise cannot fail the cross-OS gate while a change in cluster assignments or split decisions still does.
|
|
43
43
|
- The workload fails when the clustering leaves a cluster empty or the forest predicts a single label, which keeps the sampled payload meaningful.
|
|
44
44
|
|
|
45
|
+
## [v2.2.23] - 2026-11-19
|
|
46
|
+
|
|
47
|
+
### Numerical kernels
|
|
48
|
+
|
|
49
|
+
- `math_utils.svd` now runs Hestenes' one-sided Jacobi method on the columns of `A` itself instead of diagonalizing the Gram matrix `AᵀA`. The condition number is no longer squared, so small singular values keep relative accuracy: closed-form oracles pin a ~1e-12 singular value to machine relative error where the Gram approach lost it under ~1e-8 absolute noise. The `svd` / `rank` / `condition_number` API is unchanged; the docstrings now state the condition-number limit (~1/eps) explicitly.
|
|
50
|
+
- `diffeq.rk45_system` adds the adaptive Dormand-Prince integrator for ODE systems: the same embedded 4th/5th-order pair as the scalar `rk45`, with a per-component scaled RMS error norm, step rejection/growth control, backward integration and endpoint snap. It returns the new `ODESystemSolution` dataclass. The scalar `rk45` and fixed-step `solve_system` are unchanged; both RK45 variants share one tableau.
|
|
51
|
+
- `diffeq.rk45_system` no longer raises `OverflowError` when a component carries zero tolerance (`atol=rtol=0`) on a zero state: the embedded pair's combinations are summed with `math.fsum`, whose correct rounding makes `y5 - y4` cancel exactly on every supported Python version (3.11's plain `sum()` left ulp-level noise that the `NEAR_MIN_FLOAT` fallback scale amplified past the float range), and the scaled error is squared by multiplication, which saturates to a rejected step instead of raising out of the solver. The fail-closed contract is unchanged: a representable error estimate under zero tolerance rejects the step, while an estimate that rounds to zero still integrates.
|
|
52
|
+
- `math_utils.determinant` classifies "nearly singular" columns with a scale-relative threshold per column (`NEAR_ZERO` × the column's original largest entry) instead of inheriting LU's global-scale cutoff. Well-conditioned mixed-scale matrices such as `diag(1e-20, 1e20)` now return their true determinant (1) instead of 0; the classification rule and its accuracy limits are documented.
|
|
53
|
+
|
|
54
|
+
### Statistics
|
|
55
|
+
|
|
56
|
+
- `stats.kpss_statistic` no longer labels its N(0,1) upper-tail heuristic as a p-value: `StationarityResult.p_value` is renamed to `normal_tail_probability`, because the KPSS asymptotic null distribution is non-standard and the old field was not a valid p-value. The old name survives as a deprecated read/write alias and constructor keyword that emit `DeprecationWarning`; `is_stationary` still applies the published 5% critical value (0.463).
|
|
57
|
+
- `stats.hypothesis_tests.__all__` no longer advertises the private Numerical-Recipes helpers (`_betacf`, `_gser`, `_EPS`, ...). They remain directly importable for backward compatibility; the star-import surface is now the 15 public statistical names.
|
|
58
|
+
|
|
59
|
+
### Documentation and release metadata
|
|
60
|
+
|
|
61
|
+
- `src/cds/_version.py`'s `__version_tuple__` is back in lockstep with `__version__`, and `scripts/check_version_lockstep.py` now audits the tuple textually and at runtime (7 locked surfaces).
|
|
62
|
+
- README and CONTRIBUTING document the environment that actually passes the suite: `.[test,dev,docs,pandas,plot,property,io]` plus `hatchling==1.32.4` — the zero-skip gate in `tests/conftest.py` counts every skipped test as a failure. Verified by running the documented install and the full suite.
|
|
63
|
+
- README example count corrected to 35 (32 `.py`, 3 `.ipynb`) and pinned to `examples/` by a new surface test; export-count pins updated to 507 names (343 functions, 164 classes).
|
|
64
|
+
- Benchmark artifact headers now describe the data: "Approaching C-Speed", "Hardware Saturation" and "Algorithmic Intelligence" replaced with descriptive labels, the bare `CPU Cores Saturated` cpu_count row replaced by the sampling-mode row the generator actually emits, and the quantum speedup labelled as an extrapolation derived once from the displayed timings (53.3x in both the table and the conclusion). The `docs/benchmarks.md` generated block is re-rendered verbatim from `benchmarks/results.json`, a new gate compares them row for row, and regeneration now splices between the GENERATED markers instead of overwriting the hand-written analysis.
|
|
65
|
+
- `docs/ml_reference.md` consistently names scikit-learn 1.9.0 (the version the frozen reference constants were computed with); a new test pins doc/script agreement.
|
|
66
|
+
|
|
67
|
+
### Dependency locks
|
|
68
|
+
|
|
69
|
+
- `requirements-dev.lock` bumps `soupsieve` 2.9.2 → 4.1.2 (CVE-2026-126190, CVE-2026-126191, CVE-2026-126192, CVE-2026-126193), `tornado` 6.6 → 6.6.1 (CVE-2026-126347) and `mistune` 3.3.3 → 3.3.4 (CVE-2026-97698, CVE-2026-97699) so the lock-file audit gate (`pip-audit -r requirements-dev.lock --strict`) passes again. The runtime dependency set stays zero: `requirements.lock` remains comment-only.
|
|
70
|
+
|
|
45
71
|
## [v2.2.22] - 2026-11-07
|
|
46
72
|
|
|
47
73
|
### Adaptive Simpson returns its error estimate
|
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ and what to register to close the npm gap.
|
|
|
79
79
|
|
|
80
80
|
`src/cds/` holds **34 subpackages plus `causal.py` and `sensitivity.py`**. That is
|
|
81
81
|
35 public feature modules — the `cds` CLI entry point is the 36th subpackage —
|
|
82
|
-
exporting **
|
|
82
|
+
exporting **507 names** (343 functions, 164 classes), all pure standard library.
|
|
83
83
|
`tests/test_readme_surface.py` derives these numbers from the package, so they
|
|
84
84
|
cannot drift silently.
|
|
85
85
|
|
|
@@ -87,7 +87,7 @@ cannot drift silently.
|
|
|
87
87
|
|---|---|---|
|
|
88
88
|
| Core models | `cds.core` | Shared `Domain`, `Hypothesis`, `HypothesisStatus` types |
|
|
89
89
|
| Linear algebra & calculus | `cds.math_utils`, `cds.interpolate` | SVD, QR, Cholesky, LU, power iteration, derivatives, integrals |
|
|
90
|
-
| ODE / PDE | `cds.diffeq`, `cds.pde` | Euler, RK4, adaptive RK45, implicit stiff methods, symplectic integrators; 1-D heat & wave equations |
|
|
90
|
+
| ODE / PDE | `cds.diffeq`, `cds.pde` | Euler, RK4, adaptive RK45 (scalar + systems), implicit stiff methods, symplectic integrators; 1-D heat & wave equations |
|
|
91
91
|
| Quadrature | `cds.numerical_integration` | Trapezoid, Simpson 1/3 & 3/8, Romberg, Gauss-Legendre, adaptive Simpson, 2-D tensor rules |
|
|
92
92
|
| Optimization | `cds.optimization` | Gradient descent, Newton, Adam, Nelder-Mead, annealing, constrained search |
|
|
93
93
|
| Statistics | `cds.stats`, `cds.probability`, `cds.bayes` | Descriptive stats, regression, t/chi-square/ANOVA, effect sizes, nonparametric ranks, time series, multiple testing, Bayesian conjugate updates |
|
|
@@ -118,7 +118,7 @@ The authoritative per-module list is the [API reference](https://furox-art.githu
|
|
|
118
118
|
|
|
119
119
|
### Runnable examples and the dashboard
|
|
120
120
|
|
|
121
|
-
- **[`examples/`](examples/)** —
|
|
121
|
+
- **[`examples/`](examples/)** — 35 runnable scripts and notebooks (32 `.py`, 3
|
|
122
122
|
`.ipynb`), each self-contained and dependency-free unless noted. Every tutorial
|
|
123
123
|
page in the docs has a matching example.
|
|
124
124
|
- **[`dashboard/app.py`](dashboard/app.py)** — a Streamlit dashboard:
|
|
@@ -214,14 +214,17 @@ NumPy or the 2.0 build instead.
|
|
|
214
214
|
## Contributing
|
|
215
215
|
|
|
216
216
|
```bash
|
|
217
|
-
pip install -e ".[dev,
|
|
217
|
+
pip install -e ".[test,dev,docs,pandas,plot,property,io]" "hatchling==1.32.4"
|
|
218
218
|
pytest # CI also enforces 100% blended coverage (statement + branch)
|
|
219
219
|
mkdocs serve # docs at http://127.0.0.1:8000/
|
|
220
220
|
```
|
|
221
221
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
That is the same environment CI installs, and it is the smallest one that
|
|
223
|
+
passes the full suite: `tests/conftest.py` counts every skipped test as a
|
|
224
|
+
failure, so the optional backends the suite exercises (matplotlib, pandas,
|
|
225
|
+
h5py/netCDF4, Hypothesis) must be present, and `hatchling` is required by the
|
|
226
|
+
editable install and the release-toolchain tests. `.[all]` adds the dashboard
|
|
227
|
+
and the scientific backends on top.
|
|
225
228
|
|
|
226
229
|
Issues and PRs welcome; see [CONTRIBUTING.md](CONTRIBUTING.md) and
|
|
227
230
|
[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scientific-computing-system",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.23",
|
|
4
4
|
"description": "Scientific Computing System launcher - a thin Node wrapper that forwards to the pure-Python `cds` CLI. This npm package ships NO Python code: it requires the Python distribution to be installed (`pip install scientific-computing-system`), otherwise `scs` exits non-zero with an actionable message.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|