1 unstable release
0.1.0 | Feb 21, 2023 |
---|
#6 in #non-negative
111 downloads per month
9KB
152 lines
Non-negative Matrix Factorization (with nalgebra)
Takes a matrix V of size R*C, splits it into two smaller matricies W (R*K) and H (K*C) such that W * V approximates V.
- Uses multiplicative update rule
- Generic over allocation strategy, matrix size, and scalar type.
- Doesn't do allocation in the loop :)
- 195 lines of code!
- PRs welcome!
Dependencies
~5.5MB
~108K SLoC