weka 决策树

这篇博客详细介绍了如何使用weka工具构建决策树,包括训练文件设置、交叉验证选项、模型保存和加载,以及特定于J48决策树算法的参数如剪枝策略、最小叶子节点数等。此外,还提到了概率预测和非剪枝选项对模型的影响。
摘要由CSDN通过智能技术生成

1.参数说明:

General options:

-h or -help
Output help information.
-synopsis or -info
Output synopsis for classifier (use in conjunction  with -h)
-t <name of training file>  (train file,训练文件,通常训练时只需要此文件即可,会进行10 交叉验证)
Sets training file.
-T <name of test file>  (测试文件,如果设置,则不进行交叉验证)
Sets test file. If missing, a cross-validation will be performed
on the training data.
-c <class index>  (分类类型是第几列,是可以指定的不是通过训练文件指定的)
Sets index of class attribute (default: last).
-x <number of folds> (指定交叉验证数,使用默认值即可)
Sets number

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值