lightgbm参数说明

  1. 关于lightgbm params的说明
  2. # 配置目标是用于训练
  3. task = train
  4. # 训练方式
  5. boosting_type = gbdt
  6. #目标 二分类
  7. objective = binary
  8. # 损失函数
  9. metric = binary_logloss,auc
  10. # frequence for metric output
  11. metric_freq = 1
  12. # true if need output metric for training data, alias: tranining_metric, train_metric
  13. is_training_metric = true
  14. # 特征最大分割
  15. max_bin = 255
  16. #训练数据地址
  17. data = /Users/shuubiasahi/Documents/githup/LightGBM/examples/binary_classification/binary.train
  18. #测试数据
  19. #valid_data = binary.test
  20. # 树的棵树
  21. num_trees = 100
  22. # 学习率
  23. learning_rate = 0.1
  24. # number of leaves for one tree, alias: num_leaf
  25. num_leaves = 63
  26. tree_learner = serial
  27. # 最大线程个数
  28. # num_threads = 8
  29. # feature sub-sample, will random select 80% feature to train on each iteration
  30. # alias: sub_feature
  31. feature_fraction = 0.8
  32. # Support bagging (data sub-sample), will perform bagging every 5 iterations
  33. bagging_freq = 5
  34. # Bagging farction, will random select 80% data on bagging
  35. # alias: sub_row
  36. bagging_fraction = 0.8
  37. # minimal number data for one leaf, use this to deal with over-fit
  38. # alias : min_data_per_leaf, min_data
  39. min_data_in_leaf = 50
  40. # minial sum hessians for one leaf, use this to deal with over-fit
  41. min_sum_hessian_in_leaf = 5.0
  42. # save memory and faster speed for sparse feature, alias: is_sparse
  43. is_enable_sparse = true
  44. # when data is bigger than memory size, set this to true. otherwise set false will have faster speed
  45. # alias: two_round_loading, two_round
  46. use_two_round_loading = false
  47. # true if need to save data to binary file and application will auto load data from binary file next time
  48. # alias: is_save_binary, save_binary
  49. is_save_binary_file = false
  50. # 模型输出文件
  51. output_model = /Users/shuubiasahi/Documents/githup/LightGBM/examples/binary_classification/LightGBM_model.txt
  52. machine_list_file = /Users/shuubiasahi/Documents/githup/LightGBM/examples/binary_classification/LightGBM_model.txt/mlist.txt
  • 3
    点赞
  • 26
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值