質問するログイン新規登録

質問編集履歴

1

2021/02/15 12:39

投稿

3naoki
3naoki

スコア12

title CHANGED
File without changes
body CHANGED
@@ -5,32 +5,4 @@
5
5
  ※サーバー側の問題は0と考えて頂いて大丈夫です。
6
6
 
7
7
 
8
- 参考サイト:[Github_LightGBM](https://github.com/Microsoft/LightGBM/blob/master/examples/python-guide/advanced_example.py)
8
+ 参考サイト:[Github_LightGBM](https://github.com/Microsoft/LightGBM/blob/master/examples/python-guide/advanced_example.py)
9
- ```python
10
- train_data = lgb.Dataset(
11
- train_X,
12
- label=train_Y,
13
- categorical_feature='auto'
14
- )
15
- avg_best_num_boost_round=100
16
- params = {
17
- 'task': 'train',
18
- 'objective': 'regression',
19
- 'boosting_type': 'gbdt',
20
- 'metric': 'rmse',
21
- 'num_leaves': 8,
22
- 'max_depth': 8,
23
- 'min_data_in_leaf': 5,
24
- 'learning_rate': 0.01,
25
- 'random_state':random_state,
26
- 'n_jobs': n_jobs,
27
- 'save_binary':True,
28
- }
29
- gbm = lgb.train(
30
- params,
31
- train_data,
32
- num_boost_round=avg_best_num_boost_round,
33
- init_model=model_name,
34
- )
35
-
36
- ```