首页 > 技术文章 > sklearn函数白板

similarface 2017-01-16 14:03 原文

 


 

#使用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)

 

推荐阅读