-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kernel dying mac os Mojave 10.14 #1976
Comments
I am also stuck at that point using the predict, hopping for feedback! |
I hope someone with a better knowledge would help. |
@efago @drabrucelee What about simple Please post a log from the Jupyter console. You haven't share a MCVE, so without any logs it's hard to say what's going wrong here. |
@StrikerRUS thanks for your reply here's the log: |
@StrikerRUS I have fixed the problem. During the installation of lightgbm, I was having problems and I installed and uninstalled lightgbm a couple of times without taking care of openmp. So I ended up with multiple openmp packages in my system and it was the cause of the crash. Thanks for your help. |
@efago Glad that you've solved your problem! We have a workaround for this OpenMP issue in case of conda + Homebrew in our FAQ: https://lightgbm.readthedocs.io/en/latest/FAQ.html#lightgbm - Question 10. |
Thanks a lot, the problem is solved. |
@efago I seem to have the same problem. How did you remove the additional openmp packages/clean up afterwards? Thank you |
After grappling with installation of LightGBM, which I couldn't get an easy installation with anaconda, I couldn't run lightgbm on jupyter because it is crashing instantly. Please give me your feedback, I am stuck. :(
Environment info
Operating System: Mac Mojave 14
CPU/GPU model: 16 GB 2400 MHz DDR4, 2.2 GHz Intel Core i7
C++/Python/R version: python 3.7
LightGBM version or commit hash: 2.2
Error message
The kernel appears to have died. It will restart automatically.
Reproducible examples
Steps to reproduce
param = {'num_leaves': 111,
'min_data_in_leaf': 149,
'objective':'regression',
'max_depth': 9,
'learning_rate': 0.005,
"boosting": "gbdt",
"feature_fraction": 0.7522,
"bagging_freq": 1,
"bagging_fraction": 0.7083 ,
"bagging_seed": 11,
"metric": 'rmse',
"lambda_l1": 0.2634,
"random_state": 133,
"verbosity": -1}
folds = KFold(n_splits=5, shuffle=True, random_state=15)
oof = np.zeros(len(train))
for fold_, (trn_idx, val_idx) in enumerate(folds.split(train.values, target.values)):
train_mat = lgb.Dataset(train.iloc[trn_idx][features],
label=target.iloc[trn_idx],
)
val_mat = lgb.Dataset(train.iloc[val_idx][features],
label=target.iloc[val_idx],
categorical_feature=categorical_feats
)
The text was updated successfully, but these errors were encountered: