From c6c83f31eccd9fe9871d5b29c91bc58e97bb1229 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Jul 2026 12:22:01 +0000 Subject: [PATCH 1/4] style: fix code style in `stats/base/dists/binomial/logpmf` Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01CcfqHPLE5kNhYPv3GmVwJ1 --- .../base/dists/binomial/logpmf/src/addon.c | 2 +- .../dists/binomial/logpmf/test/test.native.js | 48 +++++++++---------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/binomial/logpmf/src/addon.c b/lib/node_modules/@stdlib/stats/base/dists/binomial/logpmf/src/addon.c index 14a57757c935..bfe0ce220498 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/binomial/logpmf/src/addon.c +++ b/lib/node_modules/@stdlib/stats/base/dists/binomial/logpmf/src/addon.c @@ -19,4 +19,4 @@ #include "stdlib/stats/base/dists/binomial/logpmf.h" #include "stdlib/math/base/napi/ternary.h" -STDLIB_MATH_BASE_NAPI_MODULE_DID_D( stdlib_base_dists_binomial_logpmf ); +STDLIB_MATH_BASE_NAPI_MODULE_DID_D( stdlib_base_dists_binomial_logpmf ) diff --git a/lib/node_modules/@stdlib/stats/base/dists/binomial/logpmf/test/test.native.js b/lib/node_modules/@stdlib/stats/base/dists/binomial/logpmf/test/test.native.js index 0b1f80b6bae8..28703e83f7ff 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/binomial/logpmf/test/test.native.js +++ b/lib/node_modules/@stdlib/stats/base/dists/binomial/logpmf/test/test.native.js @@ -155,13 +155,13 @@ tape( 'the function evaluates the logpmf for `x` given large `n` and `p`', opts, n = highHigh.n; p = highHigh.p; for ( i = 0; i < x.length; i++ ) { - y = logpmf( x[i], n[i], p[i] ); - if ( y === expected[i] ) { - t.strictEqual( y, expected[i], 'x: '+x[i]+', n: '+n[i]+', p: '+p[i]+', y: '+y+', expected: '+expected[i] ); + y = logpmf( x[ i ], n[ i ], p[ i ] ); + if ( y === expected[ i ] ) { + t.strictEqual( y, expected[ i ], 'x: '+x[ i ]+', n: '+n[ i ]+', p: '+p[ i ]+', y: '+y+', expected: '+expected[ i ] ); } else { - delta = abs( y - expected[i] ); - tol = 30.0 * EPS * abs( expected[i] ); - t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. n: '+n[i]+'. p: '+p[i]+'. y: '+y+'. Expected: '+expected[i]+'. tol: '+tol+'. delta: '+delta+'.' ); + delta = abs( y - expected[ i ] ); + tol = 30.0 * EPS * abs( expected[ i ] ); + t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[ i ]+'. n: '+n[ i ]+'. p: '+p[ i ]+'. y: '+y+'. Expected: '+expected[ i ]+'. tol: '+tol+'. delta: '+delta+'.' ); } } t.end(); @@ -182,13 +182,13 @@ tape( 'the function evaluates the logpmf for `x` given large `n` and small `p`', n = highSmall.n; p = highSmall.p; for ( i = 0; i < x.length; i++ ) { - y = logpmf( x[i], n[i], p[i] ); - if ( y === expected[i] ) { - t.strictEqual( y, expected[i], 'x: '+x[i]+', n: '+n[i]+', p: '+p[i]+', y: '+y+', expected: '+expected[i] ); + y = logpmf( x[ i ], n[ i ], p[ i ] ); + if ( y === expected[ i ] ) { + t.strictEqual( y, expected[ i ], 'x: '+x[ i ]+', n: '+n[ i ]+', p: '+p[ i ]+', y: '+y+', expected: '+expected[ i ] ); } else { - delta = abs( y - expected[i] ); - tol = 20.0 * EPS * abs( expected[i] ); - t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. n: '+n[i]+'. p: '+p[i]+'. y: '+y+'. Expected: '+expected[i]+'. tol: '+tol+'. delta: '+delta+'.' ); + delta = abs( y - expected[ i ] ); + tol = 20.0 * EPS * abs( expected[ i ] ); + t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[ i ]+'. n: '+n[ i ]+'. p: '+p[ i ]+'. y: '+y+'. Expected: '+expected[ i ]+'. tol: '+tol+'. delta: '+delta+'.' ); } } t.end(); @@ -209,13 +209,13 @@ tape( 'the function evaluates the logpmf for `x` given small `n` and large `p`', n = smallHigh.n; p = smallHigh.p; for ( i = 0; i < x.length; i++ ) { - y = logpmf( x[i], n[i], p[i] ); - if ( y === expected[i] ) { - t.strictEqual( y, expected[i], 'x: '+x[i]+', n: '+n[i]+', p: '+p[i]+', y: '+y+', expected: '+expected[i] ); + y = logpmf( x[ i ], n[ i ], p[ i ] ); + if ( y === expected[ i ] ) { + t.strictEqual( y, expected[ i ], 'x: '+x[ i ]+', n: '+n[ i ]+', p: '+p[ i ]+', y: '+y+', expected: '+expected[ i ] ); } else { - delta = abs( y - expected[i] ); - tol = 20.0 * EPS * abs( expected[i] ); - t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. n: '+n[i]+'. p: '+p[i]+'. y: '+y+'. Expected: '+expected[i]+'. tol: '+tol+'. delta: '+delta+'.' ); + delta = abs( y - expected[ i ] ); + tol = 20.0 * EPS * abs( expected[ i ] ); + t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[ i ]+'. n: '+n[ i ]+'. p: '+p[ i ]+'. y: '+y+'. Expected: '+expected[ i ]+'. tol: '+tol+'. delta: '+delta+'.' ); } } t.end(); @@ -236,13 +236,13 @@ tape( 'the function evaluates the logpmf for `x` given small `n` and `p`', opts, n = smallSmall.n; p = smallSmall.p; for ( i = 0; i < x.length; i++ ) { - y = logpmf( x[i], n[i], p[i] ); - if ( y === expected[i] ) { - t.strictEqual( y, expected[i], 'x: '+x[i]+', n: '+n[i]+', p: '+p[i]+', y: '+y+', expected: '+expected[i] ); + y = logpmf( x[ i ], n[ i ], p[ i ] ); + if ( y === expected[ i ] ) { + t.strictEqual( y, expected[ i ], 'x: '+x[ i ]+', n: '+n[ i ]+', p: '+p[ i ]+', y: '+y+', expected: '+expected[ i ] ); } else { - delta = abs( y - expected[i] ); - tol = 10.0 * EPS * abs( expected[i] ); - t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[i]+'. n: '+n[i]+'. p: '+p[i]+'. y: '+y+'. Expected: '+expected[i]+'. tol: '+tol+'. delta: '+delta+'.' ); + delta = abs( y - expected[ i ] ); + tol = 10.0 * EPS * abs( expected[ i ] ); + t.strictEqual( delta <= tol, true, 'within tolerance. x: '+x[ i ]+'. n: '+n[ i ]+'. p: '+p[ i ]+'. y: '+y+'. Expected: '+expected[ i ]+'. tol: '+tol+'. delta: '+delta+'.' ); } } t.end(); From d60063f200ea5b41de5587f748edd1d248db0d16 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Jul 2026 12:22:08 +0000 Subject: [PATCH 2/4] style: fix code style in `stats/base/dists/binomial/quantile` Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01CcfqHPLE5kNhYPv3GmVwJ1 --- .../base/dists/binomial/quantile/lib/native.js | 2 +- .../dists/binomial/quantile/test/test.native.js | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/binomial/quantile/lib/native.js b/lib/node_modules/@stdlib/stats/base/dists/binomial/quantile/lib/native.js index 042ae7c64b0f..513bf23df38e 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/binomial/quantile/lib/native.js +++ b/lib/node_modules/@stdlib/stats/base/dists/binomial/quantile/lib/native.js @@ -31,7 +31,7 @@ var addon = require( './../src/addon.node' ); * @private * @param {Probability} r - input value * @param {NonNegativeInteger} n - number of trials -* @param {Probability} p - success probability +* @param {Probability} p - success probability * @returns {NonNegativeInteger} evaluated quantile function * * @example diff --git a/lib/node_modules/@stdlib/stats/base/dists/binomial/quantile/test/test.native.js b/lib/node_modules/@stdlib/stats/base/dists/binomial/quantile/test/test.native.js index c707a8db3268..ac96cefdaeb4 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/binomial/quantile/test/test.native.js +++ b/lib/node_modules/@stdlib/stats/base/dists/binomial/quantile/test/test.native.js @@ -185,8 +185,8 @@ tape( 'the function evaluates the quantile for `r` given large `n` and `p`', opt n = highHigh.n; p = highHigh.p; for ( i = 0; i < r.length; i++ ) { - y = quantile( r[i], n[i], p[i] ); - t.strictEqual( y, expected[i], 'r: '+r[i]+', n: '+n[i]+', p: '+p[i]+', y: '+y+', expected: '+expected[i] ); + y = quantile( r[ i ], n[ i ], p[ i ] ); + t.strictEqual( y, expected[ i ], 'r: '+r[ i ]+', n: '+n[ i ]+', p: '+p[ i ]+', y: '+y+', expected: '+expected[ i ] ); } t.end(); }); @@ -204,8 +204,8 @@ tape( 'the function evaluates the quantile for `r` given large `n` and small `p` n = highSmall.n; p = highSmall.p; for ( i = 0; i < r.length; i++ ) { - y = quantile( r[i], n[i], p[i] ); - t.strictEqual( y, expected[i], 'r: '+r[i]+', n: '+n[i]+', p: '+p[i]+', y: '+y+', expected: '+expected[i] ); + y = quantile( r[ i ], n[ i ], p[ i ] ); + t.strictEqual( y, expected[ i ], 'r: '+r[ i ]+', n: '+n[ i ]+', p: '+p[ i ]+', y: '+y+', expected: '+expected[ i ] ); } t.end(); }); @@ -223,8 +223,8 @@ tape( 'the function evaluates the quantile for `r` given small `n` and large `p` n = smallHigh.n; p = smallHigh.p; for ( i = 0; i < r.length; i++ ) { - y = quantile( r[i], n[i], p[i] ); - t.strictEqual( y, expected[i], 'r: '+r[i]+', n: '+n[i]+', p: '+p[i]+', y: '+y+', expected: '+expected[i] ); + y = quantile( r[ i ], n[ i ], p[ i ] ); + t.strictEqual( y, expected[ i ], 'r: '+r[ i ]+', n: '+n[ i ]+', p: '+p[ i ]+', y: '+y+', expected: '+expected[ i ] ); } t.end(); }); @@ -242,8 +242,8 @@ tape( 'the function evaluates the quantile for `r` given small `n` and `p`', opt n = smallSmall.n; p = smallSmall.p; for ( i = 0; i < r.length; i++ ) { - y = quantile( r[i], n[i], p[i] ); - t.strictEqual( y, expected[i], 'r: '+r[i]+', n: '+n[i]+', p: '+p[i]+', y: '+y+', expected: '+expected[i] ); + y = quantile( r[ i ], n[ i ], p[ i ] ); + t.strictEqual( y, expected[ i ], 'r: '+r[ i ]+', n: '+n[ i ]+', p: '+p[ i ]+', y: '+y+', expected: '+expected[ i ] ); } t.end(); }); From 83d794b1fec509891d220e918c415a85112e3782 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Jul 2026 12:22:10 +0000 Subject: [PATCH 3/4] chore: update keywords in `ml/base/sgd-classification/penalties` Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01CcfqHPLE5kNhYPv3GmVwJ1 --- .../@stdlib/ml/base/sgd-classification/penalties/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/ml/base/sgd-classification/penalties/package.json b/lib/node_modules/@stdlib/ml/base/sgd-classification/penalties/package.json index 057f5c45e57b..3d3ec63623f8 100644 --- a/lib/node_modules/@stdlib/ml/base/sgd-classification/penalties/package.json +++ b/lib/node_modules/@stdlib/ml/base/sgd-classification/penalties/package.json @@ -54,8 +54,7 @@ "ml", "machine", "learning", - "sgd", - "classification", + "sgd classification", "penalties", "utilities", "utility", From 251000bb0519f2046cdb20a87779fb79b0b26773 Mon Sep 17 00:00:00 2001 From: Athan Date: Fri, 24 Jul 2026 14:55:47 -0700 Subject: [PATCH 4/4] Discard changes to lib/node_modules/@stdlib/ml/base/sgd-classification/penalties/package.json --- .../@stdlib/ml/base/sgd-classification/penalties/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ml/base/sgd-classification/penalties/package.json b/lib/node_modules/@stdlib/ml/base/sgd-classification/penalties/package.json index 3d3ec63623f8..057f5c45e57b 100644 --- a/lib/node_modules/@stdlib/ml/base/sgd-classification/penalties/package.json +++ b/lib/node_modules/@stdlib/ml/base/sgd-classification/penalties/package.json @@ -54,7 +54,8 @@ "ml", "machine", "learning", - "sgd classification", + "sgd", + "classification", "penalties", "utilities", "utility",