回答編集履歴
1
コードを詳しく
answer
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
試してませんが
|
2
2
|
|
3
3
|
```python
|
4
|
+
gbm=lgb.train(params,train_data)
|
5
|
+
lgb.plot_importance(gbm,height=0.5,figsize=(8,16))
|
6
|
+
plt.savefig('importance.png')
|
7
|
+
|
8
|
+
lgb.create_tree_digraph(gb
|
4
|
-
plt.savefig('
|
9
|
+
plt.savefig('tree_digraph.png')
|
5
10
|
```
|
6
11
|
|
7
|
-
で保存できると思います。一度お試しください。
|
12
|
+
で保存できると思います。一度お試しください。ファイル名は適宜変更してください。
|
8
13
|
|
9
14
|
詳しいパラメータはこちら。
|
10
15
|
[https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.savefig.html](https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.savefig.html)
|