回答編集履歴

2

コード書式変更

2021/12/13 00:40

投稿

jbpb0
jbpb0

スコア7653

test CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  ```
24
24
 
25
- ↓ 「'num_class': 4」を追加
25
+ ↓ 「'num_class':4」を追加
26
26
 
27
27
  ```python
28
28
 
@@ -44,7 +44,7 @@
44
44
 
45
45
  'predictor':'cpu_predictor',
46
46
 
47
- 'num_class': 4}
47
+ 'num_class':4}
48
48
 
49
49
  ```
50
50
 

1

説明の追記

2021/12/13 00:40

投稿

jbpb0
jbpb0

スコア7653

test CHANGED
@@ -47,3 +47,9 @@
47
47
  'num_class': 4}
48
48
 
49
49
  ```
50
+
51
+ 上記の変更をする前は、下記のエラーが出ました
52
+
53
+
54
+
55
+ > XGBoostError: value 0 for Parameter num_class should be greater equal to 1