Questions tagged [lightgbm]

LightGBM is a gradient boosting framework that uses tree based learning algorithms. It is designed to be distributed and efficient with the following advantages: ... Support of parallel and GPU learning. Capable of handling large-scale data.

LightGBM is a high performance gradient boosting (GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks. It is under the umbrella of the DMTK(http://github.com/microsoft/dmtk) project of Microsoft.

Resources:

676 questions
0
votes
1 answer

cannot install lightgbm in R with devtools on macOS

I tried to install the R package "lightgbm" with devtools on mac (High Sierra 10.13.5; R version 3.5.0; devtools 1.13.5). However an error occurred and the message below was showed. > library(devtools) > install_github("Microsoft/LightGBM", subdir =…
toshi71
  • 23
  • 4
0
votes
1 answer

Lightgbm can't access data from Dataset get_field method

I have got a simple lgbm dataset: import lightgbm as lgbm dataset = lgbm.Dataset(data=X, label=y, feature_name=X.columns.tolist()) Where X is a pandas df, and y a pandas series. I want to access a specific column of X in my custom objective…
0
votes
0 answers

LightGBM selection of target for regression (GPU)

I compiled/installed the GPU variation of LightGBM and I am able to run the regression example. Now I would like to use another dataset for regression. How do I specified which column is the target and which ones are the predictors?
call me Steve
  • 1,709
  • 3
  • 18
  • 31
0
votes
3 answers

How to deal with multiple data files using lightGBM

I am trying to use lightGBM as a classifier. My data are saved in multiple csv files, but I find there is no way to directly use multiple files as the input. I have considered to combine all the data into a big one (numpy array), but my computer…
Yuxiao Xu
  • 13
  • 5
0
votes
2 answers

LightGBM Python API. Best_iteration and best_score for custom evaluation function (feval)

I'm using lightgbm.train with valid_sets, early_stopping_rounds and feval function for multiclass problem with "objective": "multiclass". I want to find best_iteration and best_score for my custom evaluation function. But it finds them for…
0
votes
2 answers

how to set max_bin params in LightGBM

Following code throws error saying "Unexpected keyword arguemnt 'max_bin'". Later I found 'max_bin' is depreciated. So how can I pass max_bin using 'params'? Can anyone show me a piece of sample code? lgb.Dataset(x_train, lable=y,…
Dustin Sun
  • 5,292
  • 9
  • 49
  • 87
0
votes
1 answer

lightgbm linear regression model building

I am new to lightgbm package I am trying to build linear regression model with following sample train data having medianhousevalue as response variable in rstudio housingMedianAge totalRooms totalBedrooms population households medianIncome …
vijaynadal
  • 55
  • 5
0
votes
0 answers

considering sample weight in lightGBM

The sample set we used for modeling is sampled from a large whole dataset. Usually when we use logistic regression for scorecard model, we will consider the change of the ratio of good to bad sample between sample set and whole dataset as factor or…
Kai Wang
  • 53
  • 1
  • 6
0
votes
1 answer

Find path of LightGBM for pyLightGBM

I have the latest version of LightGBM installed in my machine running on Windows 10. I pip installed LightGBM via Anaconda Prompt and it is working fine. I found out about pyLightGBM and I want to use it. I installed it from this github link as…
Sreeram TP
  • 11,346
  • 7
  • 54
  • 108
0
votes
0 answers

Mysterious interaction between lightgbm and sklearn

Importing lightgbm on my system is somehow interfering with the performance of sklearn: import lightgbm import numpy as np from sklearn import datasets, linear_model diabetes = datasets.load_diabetes() diabetes_X = diabetes.data[:, np.newaxis,…
zkurtz
  • 3,230
  • 7
  • 28
  • 64
0
votes
1 answer

Error importing LGBMResgressor to lightgib

I'm getting the following error while importing LGBMResgressor to lightgbm: ImportError Traceback (most recent call last) in () 5 from sklearn.kernel_ridge import KernelRidge 6 import lightgbm as…
Zhixin Zhang
  • 71
  • 1
  • 3
  • 7
-1
votes
0 answers

How to optimize recall in ml

I have an unbalanced binary problem where i'm interested in optimizing the recall of the 1% of the points with the highest score given by the algorithm itself. I'm using a lightgbm with these feval MeanChosen and fobj MeanChosen_loss to see if I get…
-1
votes
0 answers

ValueError: Classification metrics can't handle a mix of binary and continuous targets for early stopping rounds lgbm and custom metrics

I need to test a custom metrics on a early stoppinig rounds for LGBM Classifier and I have this error : ValueError: Classification metrics can't handle a mix of binary and continuous targets Description of the set : My Y_train is a 0 or 1 and I…
Rocheteau
  • 43
  • 7
-1
votes
1 answer

Rust project failing to compile trying to link to libomp

After an update to the new macOS (Ventura 13.1, M1 Pro) version rust project started to crash on build when tries to link libomp. The error on cargo build -vv: error: linking with `cc` failed: exit status: 1 | = note: "cc" "-arch" "arm64"…
-1
votes
2 answers

LightGBM binary classification model: predicted score to class probability

I'm training a LGBM model on a classification (binary) dataset. import lightgbm as lgb def lgb_train(train_set, features, train_label_col, sample_weight_col=None, hyp = hyp): train_data = lgb.Dataset(data=train_set[features],…
Zabir Al Nazi
  • 10,298
  • 4
  • 33
  • 60
1 2 3
44
45