@nirs4all/methods 1.3.18 → 1.3.19
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/README.md +1 -1
- package/dist/estimatorRolesGenerated.js +1 -1
- package/dist/n4m.wasm +0 -0
- package/dist/preflightDiagnostics.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ restores the original typed label table; omitting it exposes native class IDs.
|
|
|
57
57
|
import * as n4m from "@nirs4all/methods";
|
|
58
58
|
|
|
59
59
|
await n4m.loadModule();
|
|
60
|
-
console.log(n4m.version()); // "1.3.
|
|
60
|
+
console.log(n4m.version()); // "1.3.19+abi.2.23.0"
|
|
61
61
|
console.log(n4m.abiVersion()); // [2, 23, 0]
|
|
62
62
|
|
|
63
63
|
const rows = 40, cols = 6;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// SPDX-License-Identifier: CECILL-2.1 OR AGPL-3.0-or-later
|
|
2
2
|
// Generated by scripts/generate_js_roles.py from `n4m_cli --manifest-json`. Do not edit.
|
|
3
|
-
// Native ABI 2.
|
|
3
|
+
// Native ABI 2.23.0.
|
|
4
4
|
import { NativeEstimator, NativeMethod, NativeProcedure, } from "./estimatorRoles.js";
|
|
5
5
|
/** Native `aom_pop.aom_chain_fixed_fit` (regressor). */
|
|
6
6
|
export class AOMFixedCandidate extends NativeEstimator {
|
package/dist/n4m.wasm
CHANGED
|
Binary file
|
|
@@ -18,7 +18,7 @@ function validatePermutation(nPermutations, seed) {
|
|
|
18
18
|
function validateMatrix(X) {
|
|
19
19
|
if (!Number.isSafeInteger(X.rows) || !Number.isSafeInteger(X.cols) ||
|
|
20
20
|
X.rows < 1 || X.cols < 1 || X.data.length !== X.rows * X.cols) {
|
|
21
|
-
throw new RangeError("invalid
|
|
21
|
+
throw new RangeError("invalid diagnostic matrix dimensions");
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
/** Integer in [lo, hi] and representable as a C int32_t (Emscripten passes
|
|
@@ -46,7 +46,7 @@ class NativeScope {
|
|
|
46
46
|
releases = [];
|
|
47
47
|
alloc(bytes) {
|
|
48
48
|
if (!Number.isSafeInteger(bytes) || bytes < 0 || bytes > 0x7fffffff) {
|
|
49
|
-
throw new RangeError("
|
|
49
|
+
throw new RangeError("diagnostic buffer exceeds WASM allocation limit");
|
|
50
50
|
}
|
|
51
51
|
const m = getModule();
|
|
52
52
|
const ptr = m._malloc(Math.max(1, bytes));
|
package/package.json
CHANGED