0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Jupyter Lab で lgb.train を実行すると処理が終わらない問題

Posted at

某Udemy の講座で Jupyter Lab で lgb.train を実行すると処理が終わらない問題が解決したので記載

Jupyter Lab で重い処理を実行するとカーネルが再起動する(らしい)。
その際、実行中のステータス(*)は表示されたままになり、「見かけはbusyだが実際はアイドル状態」という問題が発生している。

GoogleColabで同じコードを実行した際の警告文が解決につながった。
警告文は「ちょっとbin数多すぎんよ」的な内容だったので、ビニング処理を行った。

具体的にはこんな感じGPRe5GlbUAAXU-K.png

結果、GoogleColabでは警告文が表示されなくなり、Jupyter Lab でも無事実行できた。

もっとスマートな解決法とかもっと綺麗なコードの書き方とか、この記事に足りないものは星の数ほどあると思うので、適宜修正していく予定。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?