Dearest S/O community, I can't seem to pinpoint the reason my python kernel dies throwing
`Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)`,
be it when I attempt to load an LGBM model from a pickle file or train anew.
Example code would be
import lightgbm as lgb
import numpy as np
# generate sample data
data = np.random.rand(500, 10)
label = np.random.randint(2, size=500)
train_data = lgb.Dataset(data, label=label)
# set metrics
param = dict(num_leaves=31, objective="binary", metric="auc")
# training
num_round = 10
best_model = lgb.train(params=param,
train_set=train_data,
num_boost_round=num_round)
There were no errors thrown when LightGBM was installed as brew install lightgbm
or when pip install lightgbm
in a conda env.
System information:
Last updated: 2021-08-15T16:50:19.355453+02:00
Python implementation: CPython
Python version : 3.9.5
IPython version : 7.25.0
Compiler : Clang 10.0.0
OS : Darwin
Release : 20.5.0
Machine : x86_64
Processor : i386
CPU cores : 12
Architecture: 64bit
Some of the packages installed in the environment
pandas : 1.3.0
numpy : 1.21.0
sklearn : 0.24.2
lightgbm: 3.2.1
Need help!
Cheers :)