Skip to content

Quantized Grad Randomly Fails best_split_info.left_count check #5994

Closed
@bbstats

Description

Description

When using the new 'use_quantized_grad' in python, lightgbm will randomly fail, giving this error:

LightGBMError: Check failed: (best_split_info.right_count) > (0) at /__w/1/s/lightgbm-python/src/treelearner/serial_tree_learner.cpp, line 855 .

Even when locking in the random state, it will fail randomly. Run the below code multiple times and you'll see it occasionally passes but fails maybe 1/2 the time?

Reproducible example

In google colab,

%pip install -U lightgbm
from lightgbm import LGBMRegressor
from sklearn.datasets import make_regression
X,y=make_regression()
while True:
    model = LGBMRegressor(use_quantized_grad=True, random_state=4, verbose=-1)
    model.fit(X,y)
    print('pass')

Environment info

Google Colab
Python 3.10.6
LightGBM version or commit hash: 4.0.0

Command(s) you used to install LightGBM

%pip install -U lightgbm

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions