Skip to content

Instantly share code, notes, and snippets.

@mblondel
mblondel / nmf_cd.py
Last active June 12, 2019 20:00
NMF by coordinate descent
"""
NMF by coordinate descent, designed for sparse data (without missing values)
"""
# Author: Mathieu Blondel <[email protected]>
# License: BSD 3 clause
import numpy as np
import scipy.sparse as sp
import numba