I am creating a dataset made of many images which are created by preprocessing a long time series. Each image is an array of (128,128) and the there are four classes. I would like to build a dataset similar to the MNIST in scikit-learn.database but I have no idea how to do it.
My aim is to have something that I can call like this:
(x_train, y_train), (x_test, y_test) = my_data()
Should I save them as figures? or as csv? Which is the best way to implement this?