LoginSignup
0
0

More than 1 year has passed since last update.

Training API:lightGBMのラベルエラー LightGBMError: Label must be in [0, 4), but found 4 in label

Posted at

参加コンペ

エラー内容

Training APIによるLightgbmの多クラス分類を実行する際に次のエラーが発生
*Scikit-learn APIの場合は実行可能

LightGBMError: Label must be in [0, 4), but found 4 in label

原因

元データに付与されているラベルが[1,2,3,4]と0から始まっていないことが原因

解決法

ラベルを0から始まるように修正
[1,2,3,4]->[0,1,2,3]

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0