{
  "id": 411740,
  "title": "Getting LightGBMError ( GPU )",
  "url": "/competitions/tlvmc-parkinsons-freezing-gait-prediction/discussion/411740",
  "author_name": "",
  "post_date": "2023-05-20T18:27:56.650637100Z",
  "votes": null,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Hi All, </p>\n<p>I am getting the LightGBMError while running the following code:</p>\n<pre><code>    params={}\n    params[]=\n    params[]= \n    params[]= \n    params[]= \n    params[]=\n\n    gbm = lgb.LGBMClassifier(\n                                device = ,\n                                num_class=(target_encoder.classes_),\n                                n_estimators=NUM_OF_BOOST_ROUND, \n                                random_state = current_seed,\n                                **params\n                            )\n</code></pre>\n<p>LightGBMError: Check failed: (best_split_info.left_count) &gt; (0) at /usr/local/src/LightGBM/src/treelearner/serial_tree_learner.cpp, line 653 .</p>\n<p><strong>Any guidance , how to resolve this ?</strong></p>\n<p><strong>Note:</strong> device = 'cpu' is not giving the error. This error is only coming for the GPU </p>",
  "messages": [
    {
      "id": "2267271",
      "postDate": "05/20/2023 18:27:56",
      "content": "<p>Hi All, </p>\n<p>I am getting the LightGBMError while running the following code:</p>\n<pre><code>    params={}\n    params[]=\n    params[]= \n    params[]= \n    params[]= \n    params[]=\n\n    gbm = lgb.LGBMClassifier(\n                                device = ,\n                                num_class=(target_encoder.classes_),\n                                n_estimators=NUM_OF_BOOST_ROUND, \n                                random_state = current_seed,\n                                **params\n                            )\n</code></pre>\n<p>LightGBMError: Check failed: (best_split_info.left_count) &gt; (0) at /usr/local/src/LightGBM/src/treelearner/serial_tree_learner.cpp, line 653 .</p>\n<p><strong>Any guidance , how to resolve this ?</strong></p>\n<p><strong>Note:</strong> device = 'cpu' is not giving the error. This error is only coming for the GPU </p>",
      "rawMarkdown": "Hi All, \n\nI am getting the LightGBMError while running the following code:\n```python\n\n    params={}\n    params['learning_rate']=0.03\n    params['boosting_type']='gbdt' #GradientBoostingDecisionTree\n    params['objective']='multiclass' #Multi-class target feature\n    params['metric']='multi_logloss' #metric for multi-class\n    params['max_depth']=7\n\n    gbm = lgb.LGBMClassifier(\n                                device = \"gpu\",\n                                num_class=len(target_encoder.classes_),\n                                n_estimators=NUM_OF_BOOST_ROUND, \n                                random_state = current_seed,\n                                **params\n                            )\n```\n    \nLightGBMError: Check failed: (best_split_info.left_count) > (0) at /usr/local/src/LightGBM/src/treelearner/serial_tree_learner.cpp, line 653 .\n\n**Any guidance , how to resolve this ?**\n\n**Note:** device = 'cpu' is not giving the error. This error is only coming for the GPU",
      "votes": null
    },
    {
      "id": "2267737",
      "postDate": "05/21/2023 07:50:36",
      "content": "<p>Had you followed <a href=\"https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#build-gpu-version\" target=\"_blank\">https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#build-gpu-version</a> ?</p>",
      "rawMarkdown": "Had you followed https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#build-gpu-version ?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2267737,
      "author_name": "atamazian",
      "author_url": "",
      "post_date": "05/21/2023 07:50:36",
      "content": "<p>Had you followed <a href=\"https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#build-gpu-version\" target=\"_blank\">https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#build-gpu-version</a> ?</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2267271": "Hi All, \n\nI am getting the LightGBMError while running the following code:\n```python\n\n    params={}\n    params['learning_rate']=0.03\n    params['boosting_type']='gbdt' #GradientBoostingDecisionTree\n    params['objective']='multiclass' #Multi-class target feature\n    params['metric']='multi_logloss' #metric for multi-class\n    params['max_depth']=7\n\n    gbm = lgb.LGBMClassifier(\n                                device = \"gpu\",\n                                num_class=len(target_encoder.classes_),\n                                n_estimators=NUM_OF_BOOST_ROUND, \n                                random_state = current_seed,\n                                **params\n                            )\n```\n    \nLightGBMError: Check failed: (best_split_info.left_count) > (0) at /usr/local/src/LightGBM/src/treelearner/serial_tree_learner.cpp, line 653 .\n\n**Any guidance , how to resolve this ?**\n\n**Note:** device = 'cpu' is not giving the error. This error is only coming for the GPU",
    "2267737": "Had you followed https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#build-gpu-version ?"
  },
  "source": "meta"
}