From 04e1ac2cbeb1f64e65e2b3836330c0305fbbd708 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 30 Sep 2026 08:37:11 +0000 Subject: [PATCH 1/3] docs: fix enumeration example in `ml/base/sgd/loss-functions` The JSDoc note in `lib/enum.js` cited `HINGE == 0`, but the enumeration maps `epsilon-insensitive` to `0` and `hinge` to `1`, as does `STDLIB_ML_SGD_EPSILON_INSENSITIVE = 0` in the C header. Corrected the example to `EPSILON_INSENSITIVE == 0`, matching the member mapped to 0 (8/9 sibling packages carrying this note, 89%). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01T5eqmcfD2xBYKR3EwFfPx1 --- lib/node_modules/@stdlib/ml/base/sgd/loss-functions/lib/enum.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ml/base/sgd/loss-functions/lib/enum.js b/lib/node_modules/@stdlib/ml/base/sgd/loss-functions/lib/enum.js index c1171c01f482..117d9eaed5af 100644 --- a/lib/node_modules/@stdlib/ml/base/sgd/loss-functions/lib/enum.js +++ b/lib/node_modules/@stdlib/ml/base/sgd/loss-functions/lib/enum.js @@ -25,7 +25,7 @@ * * ## Notes * -* - Downstream consumers of this mapping should **not** rely on specific integer values (e.g., `HINGE == 0`). Instead, the object should be used in an opaque manner. +* - Downstream consumers of this mapping should **not** rely on specific integer values (e.g., `EPSILON_INSENSITIVE == 0`). Instead, the object should be used in an opaque manner. * - The main purpose of this function is JavaScript and C inter-operation. * * @returns {Object} object mapping supported loss functions to integer values From 346aee5cc805e7890ce161f5b4037c8eb7ef8017 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 30 Sep 2026 08:37:11 +0000 Subject: [PATCH 2/3] bench: add missing `none` penalty to `ml/base/sgd/penalty-resolve-enum` benchmarks Added `none` to the string and integer value lists in `benchmark/benchmark.js`, so the benchmarks cover every supported penalty, as the `penalty-enum2str` and `penalty-str2enum` benchmarks do (10/12 sibling benchmarks enumerate the full value set, 83%). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01T5eqmcfD2xBYKR3EwFfPx1 --- .../ml/base/sgd/penalty-resolve-enum/benchmark/benchmark.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/ml/base/sgd/penalty-resolve-enum/benchmark/benchmark.js b/lib/node_modules/@stdlib/ml/base/sgd/penalty-resolve-enum/benchmark/benchmark.js index 30a8def772f0..fcc60424110a 100644 --- a/lib/node_modules/@stdlib/ml/base/sgd/penalty-resolve-enum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/ml/base/sgd/penalty-resolve-enum/benchmark/benchmark.js @@ -38,7 +38,8 @@ bench( format( '%s::string', pkg ), function benchmark( b ) { values = [ 'elasticnet', 'l1', - 'l2' + 'l2', + 'none' ]; b.tic(); @@ -64,7 +65,8 @@ bench( format( '%s::integer', pkg ), function benchmark( b ) { values = [ str2enum( 'elasticnet' ), str2enum( 'l1' ), - str2enum( 'l2' ) + str2enum( 'l2' ), + str2enum( 'none' ) ]; b.tic(); From 5950ef20f03814c41014609d2c6e1327cdaa15dd Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 30 Sep 2026 08:37:12 +0000 Subject: [PATCH 3/3] bench: add missing `none` penalty to `ml/base/sgd/penalty-resolve-str` benchmarks Added `none` to the string and integer value lists in `benchmark/benchmark.js`, so the benchmarks cover every supported penalty, as the `penalty-enum2str` and `penalty-str2enum` benchmarks do (10/12 sibling benchmarks enumerate the full value set, 83%). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01T5eqmcfD2xBYKR3EwFfPx1 --- .../ml/base/sgd/penalty-resolve-str/benchmark/benchmark.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/ml/base/sgd/penalty-resolve-str/benchmark/benchmark.js b/lib/node_modules/@stdlib/ml/base/sgd/penalty-resolve-str/benchmark/benchmark.js index 76de1842a447..4f91661bedda 100644 --- a/lib/node_modules/@stdlib/ml/base/sgd/penalty-resolve-str/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/ml/base/sgd/penalty-resolve-str/benchmark/benchmark.js @@ -38,7 +38,8 @@ bench( format( '%s::string', pkg ), function benchmark( b ) { values = [ 'elasticnet', 'l1', - 'l2' + 'l2', + 'none' ]; b.tic(); @@ -64,7 +65,8 @@ bench( format( '%s::integer', pkg ), function benchmark( b ) { values = [ str2enum( 'elasticnet' ), str2enum( 'l1' ), - str2enum( 'l2' ) + str2enum( 'l2' ), + str2enum( 'none' ) ]; b.tic();