@seantalts/stanli 0.12.0 → 0.14.0
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/index.mjs +2 -1
- package/package.json +1 -1
- package/stancjs.bc.js +3 -6
- package/stanli-compiler.js +5743 -5713
- package/stanli.js +1 -1
- package/stanli.wasm +0 -0
- package/worker.js +5 -1
package/index.mjs
CHANGED
|
@@ -127,7 +127,8 @@ function pathfinderInitOptions(value) {
|
|
|
127
127
|
* `stanc --O1 --debug-optimized-mir` at build time). When given, neither
|
|
128
128
|
* browser compiler loads: the runtime alone is ~1.5 MB gzipped.
|
|
129
129
|
* @param {Object|string} [opts.data] Data as an object or JSON text.
|
|
130
|
-
* @param {number} [opts.seed=1]
|
|
130
|
+
* @param {number} [opts.seed=1] Run seed: transformed-data RNG at
|
|
131
|
+
* model construction (as CmdStan seeds it), then sampler and GQ RNG.
|
|
131
132
|
* @param {number} [opts.warmup=1000]
|
|
132
133
|
* @param {number} [opts.samples=1000]
|
|
133
134
|
* @param {number} [opts.delta=0.8] Adaptation target acceptance (NUTS).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seantalts/stanli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Full Stan in the browser: stanc3 compiles the model in JS, a WASM runtime lowers it to an op graph and runs NUTS. No server, no C++ toolchain.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.mjs",
|
package/stancjs.bc.js
CHANGED
|
@@ -85,12 +85,9 @@ j=h(2,c-15)*(d===0?1+b*g:-1-b*g);return j}}(),He=Math.pow(2,-24);function
|
|
|
85
85
|
wX(a){throw a}function
|
|
86
86
|
p0(){wX(dn["predef:Division_by_zero"])}var
|
|
87
87
|
bv=0xff,c0=0xffffff,bd=0x000000,he=0x8000;class
|
|
88
|
-
bg{constructor(a,b,c){this.lo=a&c0;this.mi=b&c0;this.hi=c&c4;this.caml_custom="_j"}static
|
|
89
|
-
|
|
90
|
-
bg(c0,c0,
|
|
91
|
-
SIGNED_MAX=new
|
|
92
|
-
bg(c0,c0,0x7fff);static
|
|
93
|
-
SIGNED_MIN=new
|
|
88
|
+
bg{constructor(a,b,c){this.lo=a&c0;this.mi=b&c0;this.hi=c&c4;this.caml_custom="_j"}static UNSIGNED_MAX=new
|
|
89
|
+
bg(c0,c0,c4);static SIGNED_MAX=new
|
|
90
|
+
bg(c0,c0,0x7fff);static SIGNED_MIN=new
|
|
94
91
|
bg(bd,bd,he);slice(){return new
|
|
95
92
|
bg(this.lo,this.mi,this.hi)}ucompare(a){if(this.hi>a.hi)return 1;if(this.hi<a.hi)return-1;if(this.mi>a.mi)return 1;if(this.mi<a.mi)return-1;if(this.lo>a.lo)return 1;if(this.lo<a.lo)return-1;return 0}compare(a){var
|
|
96
93
|
b=this.hi<<16,c=a.hi<<16;if(b>c)return 1;if(b<c)return-1;if(this.mi>a.mi)return 1;if(this.mi<a.mi)return-1;if(this.lo>a.lo)return 1;if(this.lo<a.lo)return-1;return 0}neg(){var
|