chore: update dependencies to latest - #29
Merged
Merged
Conversation
Bump devDependencies to their latest versions and raise the ml-matrix requirement to ^6.14.0, which adds Matrix.transposeMultiply(). TypeScript stays on ^6: typescript-eslint does not support the TS 7 API yet (typescript-eslint/typescript-eslint#10940), so `npm run eslint` fails outright under TS 7.0. Also add .DS_Store to src/.npmignore. Assisted-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
X.transpose().mmul(Y) materialized the transpose and multiplied densely.
transposeMultiply() (new in ml-matrix 6.14.0) streams each shared row as
a rank-1 update and skips zero entries, so both operands stay row-major
and sparse predictors cost far less. The result is identical.
Measured on Node 26, median of 5-40 runs, seeded inputs:
XtY alone fcnnls() end to end
dense X 300x40 Y 300x30 0.39 -> 0.27 ms 4.44 -> 4.40 ms
sparse X 1000x60 Y 1000x50 3.19 -> 0.34 ms 14.53 -> 10.83 ms (1.34x)
sparse X 2000x80 Y 2000x60 10.3 -> 0.73 ms 35.22 -> 25.95 ms (1.36x)
The dense case barely moves because XtY is a small share of the total
work there; on the sparse matrices typical of deconvolution it is around
a quarter of the runtime.
Assisted-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
interceptAtZero was never documented, and the options example assigned
the whole result to `K` even though `info: true` returns `{ K, info }`.
Add an options table with defaults and describe the info shape.
Assisted-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #29 +/- ##
==========================================
- Coverage 93.38% 93.35% -0.03%
==========================================
Files 18 18
Lines 272 271 -1
Branches 54 54
==========================================
- Hits 254 253 -1
Misses 15 15
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bump devDependencies to their latest versions and raise the ml-matrix
requirement to ^6.14.0, which adds Matrix.transposeMultiply().