-
关于lightgbm params的说明
-
# 配置目标是用于训练
-
task = train
-
# 训练方式
-
boosting_type = gbdt
-
#目标 二分类
-
objective = binary
-
# 损失函数
-
metric = binary_logloss,auc
-
# frequence for metric output
-
metric_freq = 1
-
# true if need output metric for training data, alias: tranining_metric, train_metric
-
is_training_metric = true
-
# 特征最大分割
-
max_bin = 255
-
#训练数据地址
-
data = /Users/shuubiasahi/Documents/githup/LightGBM/examples/binary_classification/binary.train
-
#测试数据
-
#valid_data = binary.test
-
# 树的棵树
-
num_trees = 100
-
# 学习率
-
learning_rate = 0.1
-
# number of leaves for one tree, alias: num_leaf
-
num_leaves = 63
-
tree_learner = serial
-
# 最大线程个数
-
# num_threads = 8
-
# feature sub-sample, will random select 80% feature to train on each iteration
-
# alias: sub_feature
-
feature_fraction = 0.8
-
-
# Support bagging (data sub-sample), will perform bagging every 5 iterations
-
bagging_freq = 5
-
-
# Bagging farction, will random select 80% data on bagging
-
# alias: sub_row
-
bagging_fraction = 0.8
-
-
# minimal number data for one leaf, use this to deal with over-fit
-
# alias : min_data_per_leaf, min_data
-
min_data_in_leaf = 50
-
-
# minial sum hessians for one leaf, use this to deal with over-fit
-
min_sum_hessian_in_leaf = 5.0
-
# save memory and faster speed for sparse feature, alias: is_sparse
-
is_enable_sparse = true
-
# when data is bigger than memory size, set this to true. otherwise set false will have faster speed
-
# alias: two_round_loading, two_round
-
use_two_round_loading = false
-
-
# true if need to save data to binary file and application will auto load data from binary file next time
-
# alias: is_save_binary, save_binary
-
is_save_binary_file = false
-
# 模型输出文件
-
output_model = /Users/shuubiasahi/Documents/githup/LightGBM/examples/binary_classification/LightGBM_model.txt
-
-
machine_list_file = /Users/shuubiasahi/Documents/githup/LightGBM/examples/binary_classification/LightGBM_model.txt/mlist.txt
lightgbm参数说明
最新推荐文章于 2024-03-11 15:18:18 发布