I have managed to load images in a folder using the command line sklearn: load_sample_images()
load_sample_images()
I would now like to convert it to a numpy.ndarray
numpy.ndarray
If you have a list of lists, you only needed to use ...
import numpy as np ... npa = np.asarray(someListOfLists, dtype=np.float32)
per this LINK in the scipy / numpy documentation. You just needed to define dtype inside the call to asarray.