
上QQ阅读APP看书,第一时间看更新
Getting ready
Very similar to getting built-in datasets, fetching new datasets, and creating sample datasets, the functions that are used follow the naming convention make_*. Just to be clear, this data is purely artificial:
from sklearn import datasets
datasets.make_*?
datasets.make_biclusters
datasets.make_blobs
datasets.make_checkerboard
datasets.make_circles
datasets.make_classification
...
To save typing, import the datasets module as d, and numpy as np:
import sklearn.datasets as d
import numpy as np