nmf

Crates.ionmf
lib.rsnmf
version0.1.1
sourcesrc
created_at2020-12-05 13:07:46.203461
updated_at2020-12-13 15:17:03.827916
descriptionNon-negative matrix factorization.
homepage
repositoryhttps://github.com/curlywurlycraig/nmf
max_upload_size
id319837
size5,769
Craig Wilkinson (curlywurlycraig)

documentation

README

Non-negative matrix factorisation is a method for factoring an input matrix into two other matrices. This has many applications, particularly in problems of determining how some feature vectors can be composed of other "template" feature vectors.

This Rust library currently implements a fast update step for the activation matrix (usually labelled "H") given some input ("V") and template library ("W"). This largely builds on the work in "Real-time polyphonic music transcription with non-negative matrix factorization and beta-divergence", by Arnaud Dessein et. al.

In the future, it may add support for update steps for "W" too.

Usage

let mut nmf = FixedTemplateNmf::new(templates, activation_coef, &input, 0.5);

for _ in 1..5 {
    nmf.update_activation_coef();
}

let activation = nmf.get_activation_coef();
Commit count: 8

cargo fmt