All Projects → lantanacamara → lightgbmExplainer

lantanacamara / lightgbmExplainer

Licence: other
An R package that makes lightgbm models fully interpretable (take reference from https://github.com/AppliedDataSciencePartners/xgboostExplainer)

Programming Languages

r
7636 projects

Labels

Projects that are alternatives of or similar to lightgbmExplainer

Gbm Perf
Performance of various open source GBM implementations
Stars: ✭ 177 (+704.55%)
Mutual labels:  lightgbm
JLBoost.jl
A 100%-Julia implementation of Gradient-Boosting Regression Tree algorithms
Stars: ✭ 65 (+195.45%)
Mutual labels:  lightgbm
Kaggle
Kaggle Kernels (Python, R, Jupyter Notebooks)
Stars: ✭ 26 (+18.18%)
Mutual labels:  lightgbm
Mmlspark
Simple and Distributed Machine Learning
Stars: ✭ 2,899 (+13077.27%)
Mutual labels:  lightgbm
decision-trees-for-ml
Building Decision Trees From Scratch In Python
Stars: ✭ 61 (+177.27%)
Mutual labels:  lightgbm
kaggle-recruit-restaurant
🏆 Kaggle 8th place solution
Stars: ✭ 102 (+363.64%)
Mutual labels:  lightgbm
Lightgbm
A fast, distributed, high performance gradient boosting (GBT, GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks.
Stars: ✭ 13,293 (+60322.73%)
Mutual labels:  lightgbm
datascienv
datascienv is package that helps you to setup your environment in single line of code with all dependency and it is also include pyforest that provide single line of import all required ml libraries
Stars: ✭ 53 (+140.91%)
Mutual labels:  lightgbm
fast retraining
Show how to perform fast retraining with LightGBM in different business cases
Stars: ✭ 56 (+154.55%)
Mutual labels:  lightgbm
MSDS696-Masters-Final-Project
Earthquake Prediction Challenge with LightGBM and XGBoost
Stars: ✭ 58 (+163.64%)
Mutual labels:  lightgbm
Eli5
A library for debugging/inspecting machine learning classifiers and explaining their predictions
Stars: ✭ 2,477 (+11159.09%)
Mutual labels:  lightgbm
docker-kaggle-ko
머신러닝/딥러닝(PyTorch, TensorFlow) 전용 도커입니다. 한글 폰트, 한글 자연어처리 패키지(konlpy), 형태소 분석기, Timezone 등의 설정 등을 추가 하였습니다.
Stars: ✭ 46 (+109.09%)
Mutual labels:  lightgbm
stackgbm
🌳 Stacked Gradient Boosting Machines
Stars: ✭ 24 (+9.09%)
Mutual labels:  lightgbm
Unbiased lambdamart
Code for WWW'19 "Unbiased LambdaMART: An Unbiased Pairwise Learning-to-Rank Algorithm", which is based on LightGBM
Stars: ✭ 180 (+718.18%)
Mutual labels:  lightgbm
AutoTabular
Automatic machine learning for tabular data. ⚡🔥⚡
Stars: ✭ 51 (+131.82%)
Mutual labels:  lightgbm
Mars
Mars is a tensor-based unified framework for large-scale data computation which scales numpy, pandas, scikit-learn and Python functions.
Stars: ✭ 2,308 (+10390.91%)
Mutual labels:  lightgbm
Deep-Learning-for-Human-Activity-Recognition
Keras implementation of CNN, DeepConvLSTM, and SDAE and LightGBM for sensor-based Human Activity Recognition (HAR).
Stars: ✭ 48 (+118.18%)
Mutual labels:  lightgbm
ml-pipeline
Using Kafka-Python to illustrate a ML production pipeline
Stars: ✭ 90 (+309.09%)
Mutual labels:  lightgbm
mlforecast
Scalable machine 🤖 learning for time series forecasting.
Stars: ✭ 96 (+336.36%)
Mutual labels:  lightgbm
neptune-client
📒 Experiment tracking tool and model registry
Stars: ✭ 348 (+1481.82%)
Mutual labels:  lightgbm

Build Status

lightgbmExplainer

An R package that makes LightGBM models fully interpretable

Example

library(lightgbm) # v2.1.0 or above
library(lightgbmExplainer)

# Load Data
data(agaricus.train, package = "lightgbm")
# Train a model
lgb.dtrain <- lgb.Dataset(agaricus.train$data, label = agaricus.train$label)
lgb.params <- list(objective = "binary")
lgb.model <- lgb.train(lgb.params, lgb.dtrain, 5)
# Build Explainer
lgb.trees <- lgb.model.dt.tree(lgb.model) # First get a lgb tree
explainer <- buildExplainer(lgb.trees)
# compute contribution for each data point
pred.breakdown <- explainPredictions(lgb.model, explainer, agaricus.train$data)
# Show waterfall for the 8th observation
showWaterfall(lgb.model, explainer, lgb.dtrain, agaricus.train$data,  8, type = "binary")

Take reference from xgboostExplainer and credit to David Foster.

Note: LightGBM provides similar function lgb.interprete and lgb.plot.interpretation. lgb.interprete could be faster if you only want to interprete a few data point, but it could be much slower if you want to interprete many data point.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].