make_classification参数解释

参数类型默认说明
n_samplesint类型可选 (default=100)样本数量.
n_featuresint可选 (default=20)总的特征数量,是从有信息的数据点,冗余数据点,重复数据点,和特征点-有信息的点-冗余的点-重复点中随机选择的。
n_informativeintoptional (default=2)informative features数量
n_redundantintoptional (default=2)redundant features数量
n_repeatedintoptional (default=0)duplicated features数量
n_classesintoptional (default=2)类别或者标签数量
n_clusters_per_classintoptional (default=2)每个class中cluster数量
weightsfloats列表 or None(default=None)每个类的权重,用于分配样本点
flip_yfloatoptional (default=0.01)随机交换样本的一段
class_sepfloatoptional (default=1.0)The factor multiplying the hypercube dimension.
hypercubebooleanoptional (default=True)If True the clusters are put on the vertices of a hypercube. If False,the clusters are put on the vertices of a random polytope.
shiftfloat,array of shape [n_features] or Noneoptional (default=0.0)Shift features by the specified value. If None,then features are shifted by a random value drawn in [-class_sep,class_sep].
scalefloat array of shape [n_features] or Noneoptional (default=1.0)Multiply features by the specified value. If None,then features are scaled by a random value drawn in [1,100]. Note that scaling happens after shifting.
shufflebooleanoptional (default=True)Shuffle the samples and the features.
random_stateint,RandomState instance or Noneoptional (default=None)If int,random_state is the seed used by the random number generator; If RandomState instance,random_state is the random number generator; If None,the random number generator is the RandomState instance used by np.random
  • 9
    点赞
  • 61
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值