Skip to main content
Filter by
Sorted by
Tagged with
Advice
1 vote
2 replies
54 views

I am using lightgbm to solve a binary classification problem. After training process, I use gain importance to analyse the model. The top 20 feature importance (gain) looks like the following | ...
airforce-001's user avatar
1 vote
1 answer
129 views

I'm using Optuna to optimize LightGBM hyperparameters, and I'm running into an issue with the variability of best_iteration across different random seeds. Current Setup I train multiple models with ...
invalid syntax's user avatar
0 votes
0 answers
86 views

I have an issue with training lightgbm models through tidymodels. There seems to be some sort of issues in how the hyperparameters are translated between tidymodels and lightgbm. This is my code: ...
Marco De Virgilis's user avatar
1 vote
1 answer
60 views

I was using lightgbm with early_stopping and min_delta, but according to the result, min_delta seems to have no effect. final_model = lgb.train( params, train_data, ...
Mihong Jelly's user avatar
0 votes
0 answers
92 views

I have gone through the entire docs on SynapseML LightGBMRanker module. There was no attribute I could pass to tell the model to use CUDA GPU for training. For e.g. for the plain LightGBM library, ...
Siddhant Yadav's user avatar
5 votes
1 answer
183 views

Problem I am running a LightGBMModel via Darts with some (future) covariates. I want to understand the relevance of the different (lagged) features. In particular, I would like to retrieve the feature ...
basejumping_turtle's user avatar
6 votes
1 answer
708 views

I have a pandas dataframe that records the outcome of F1 races: data = { "Race_ID": [0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4], "Racer_Number": [1, 2, 3, ...
Ishigami's user avatar
  • 592
1 vote
0 answers
35 views

import numpy as np import lightgbm as lgb def custom_mse_objective(preds, train_data): labels = train_data.get_label() grad = (preds - labels) hess = np.ones_like(labels) return grad, ...
Rolnan's user avatar
  • 43
3 votes
1 answer
508 views

Im trying to find a way to train a lightgbm model forcing to have some features to be in the splits, i.e.: "to be in the feature importance", then the predictions are afected by these ...
PeCaDe's user avatar
  • 488
1 vote
1 answer
215 views

I'm trying to run a multi-classification problem. I have run a baseline lightGBM model with around 80% accuracy rate. I'm trying to further fine-tuning its hyperparameter using Hyperopt. However, when ...
Duy Ngo's user avatar
  • 21
3 votes
1 answer
75 views

I am trying to reproduce by myself the LGBMRegressor predictions so when I succeed I will switch mean with median. But for now it seems that I am not able to. Here is a simple script that I created ...
anat's user avatar
  • 173
-1 votes
1 answer
111 views

I wanna understand why in this code, I get the following results: # Import necessary libraries import pandas as pd from sklearn.metrics import f1_score from sklearn.model_selection import ...
Legna's user avatar
  • 151
2 votes
1 answer
166 views

I am migrating from XGBoost to LightGBM (since I need it's exact handling of interaction constraints) and I am struggling to understand the result of LightGBM CV. In the example below, the minimum log-...
usdn's user avatar
  • 514
1 vote
2 answers
134 views

I'm using LGBM to forecast the relative change of a numerical quantity. I'm using the MSLE (Mean Squared Log Error) loss function to optimize my model and to get the correct scaling of errors. Since ...
puffadder's user avatar
  • 113
1 vote
0 answers
118 views

I have the following dataframe which records the IQ, Hours (number of hours of studying) and Score (past exam score for student 1,2,3,4 in different classes (Class_ID) and I would like to use these ...
Ishigami's user avatar
  • 592

15 30 50 per page
1
2 3 4 5
â€Ķ
47