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)

 

posted @ 2017-01-16 14:03  similarface  阅读(160)  评论(0编辑  收藏  举报