I want to create my own datasets, and use it in scikit-learn. Scikit-learn has some datasets like 'The Boston Housing Dataset' (.csv), user can use it by:
from sklearn import datasets
boston = datasets.load_boston()
and codes below can get the data
and target
of this dataset:
X = boston.data
y = boston.target
The question is how to create my own dataset and can be used in that way? Any answers is appreciated, Thanks!
Here's a quick and dirty way to achieve what you intend:
my_datasets.py
my_fancy_dataset.csv
Demo