I´m new with Nmf
with python . I´m trying to create a list of images to then get the components. Here is the code:
from skimage import color
from skimage import io
import matplotlib.pyplot as plt
f=color.rgb2gray(io.imread('f.jpg'))
e=color.rgb2gray(io.imread('e.jpg'))
images2= (e,f)
from sklearn.decomposition import NMF
model=NMF(n_components=2)
features=model.fit_transform(images2)
And then the next error appears:
Found array with dim 3. Estimator expected <= 2.