sklearn函数白板


#使用make_classification构造500个样本,每个样本有20个feature

from sklearn.datasets import make_classification 
X, y = make_classification(500, n_features=20, n_informative=2, n_redundant=2, n_classes=2, random_state=0)

原文地址:https://www.cnblogs.com/similarface/p/6289402.html