Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Jun 4, 2021
Embed
What would you like to do?
from sklearn.datasets import load_iris
from sklearn.decomposition import NMF
data = load_iris()
nmf = NMF(n_components=3, init='random', l1_ratio=0.1)
x = nmf.fit_transform(data.data)
print(nmf.inverse_transform(x[0]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment