This file contains 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
""" | |
NMF by coordinate descent, designed for sparse data (without missing values) | |
""" | |
# Author: Mathieu Blondel <mathieu@mblondel.org> | |
# License: BSD 3 clause | |
import numpy as np | |
import scipy.sparse as sp | |
import numba |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
#!/usr/bin/env python | |
""" | |
Draws Hinton diagrams using matplotlib ( http://matplotlib.sf.net/ ). | |
Hinton diagrams are a handy way of visualizing weight matrices, using | |
colour to denote sign and area to denote magnitude. | |
By David Warde-Farley -- user AT cs dot toronto dot edu (user = dwf) | |
with thanks to Geoffrey Hinton for providing the MATLAB code off of | |
which this is modeled. |