regressio 1.0.1 → 1.1.1
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/LICENSE +21 -0
- package/README.md +19 -2
- package/dist/index.cjs +735 -677
- package/dist/index.d.cts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +465 -490
- package/dist/regressio_wasm_bg-5tapzraw.wasm +0 -0
- package/dist/shared/{chunk-0ebx6ns2.js → chunk-p1j3h9jr.js} +93 -31
- package/package.json +20 -8
- package/dist/regressio_wasm_bg-vab4kvnm.wasm +0 -0
- package/dist/shared/chunk-0sb1tn3y.js +0 -42
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Maxime Golfier
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Zero-dependency TypeScript regression, classification & statistics library with full statistical outputs, diagnostics, and preprocessing. Ships with an optional Rust/WASM engine for accelerated linear algebra.
|
|
4
4
|
|
|
5
|
+
[Open the live browser proof suite](https://maxgfr.github.io/regressio/) to run all 36 public exports against synthetic datasets, inspect fitted traces and diagnostics, and confirm the WebAssembly engine is active.
|
|
6
|
+
|
|
5
7
|
## Install
|
|
6
8
|
|
|
7
9
|
```bash
|
|
@@ -303,9 +305,11 @@ regressio ships with a pre-compiled Rust/WASM engine that activates automaticall
|
|
|
303
305
|
|
|
304
306
|
**Accelerated operations:**
|
|
305
307
|
- Matrix: multiply, transpose, add, subtract, scale, dot product, norm, determinant
|
|
306
|
-
- Decompositions: QR, Cholesky, SVD, eigenvalues
|
|
308
|
+
- Decompositions: QR, Cholesky, SVD, eigenvalues (tridiagonal QL)
|
|
307
309
|
- Solvers: forward/back substitution
|
|
308
|
-
- Models: Lasso/Elastic Net coordinate descent, softmax, KNN distance matrices
|
|
310
|
+
- Models: Lasso/Elastic Net coordinate descent, logistic regression IRLS, softmax, KNN distance matrices
|
|
311
|
+
- Diagnostics: correlation matrix, VIF (via correlation matrix inverse)
|
|
312
|
+
- Predictions: bootstrap OLS (1000+ resamples in a single WASM call)
|
|
309
313
|
|
|
310
314
|
If WASM is unavailable (e.g. unsupported runtime), all operations fall back silently to pure TypeScript.
|
|
311
315
|
|
|
@@ -327,6 +331,19 @@ The pre-built WASM binary is included in the package. To rebuild from Rust sourc
|
|
|
327
331
|
bun run build:wasm
|
|
328
332
|
```
|
|
329
333
|
|
|
334
|
+
## Browser proof suite
|
|
335
|
+
|
|
336
|
+
The site in [`site/`](site/) is a Vite application that runs regressio in a Web Worker. Its scenario registry covers every runtime export and every declared public class method. The generated charts and values come from the library itself; no result is hard-coded.
|
|
337
|
+
|
|
338
|
+
```bash
|
|
339
|
+
bun run dev:site # local development
|
|
340
|
+
bun run build:site # production output in site-dist/
|
|
341
|
+
bun run test:site # export and public-method coverage
|
|
342
|
+
bun run test:e2e # Chromium + mobile WebKit, WASM + fallback
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
GitHub Pages is deployed from `.github/workflows/pages.yml` after the unit, browser, and accessibility checks pass.
|
|
346
|
+
|
|
330
347
|
## License
|
|
331
348
|
|
|
332
349
|
MIT
|