
leaves
Prediction with gradient boosting regression tree models is implemented in leaves, a Go software library.

About leaves
leaves is a Go library that implements prediction for GBRT (Gradient Boosting Regression Trees) models in pure Go, so Go programs can use models from LightGBM, XGBoost, and scikit-learn without C API bindings. It supports parallel predictions for batches, multiclass predictions, sigmoid and softmax transformations, missing values for XGBoost, and retrieval of decision-tree leaf indices.
Limits stated in the source include transformation support restricted to sigmoid and softmax, experimental scikit-learn support limited to GradientBoostingClassifier in pickle protocol 0, and an API subject to change before the 1.0.0 release.
Key features
- Run GBRT prediction in pure Go without C bindings
- Support parallel predictions for batches
- Support multiclass predictions for LightGBM and XGBoost
- Read LightGBM text and JSON models including gbdt, rf, dart
- Read XGBoost binary models including gbtree, gblinear, dart
- Read experimental scikit-learn GradientBoostingClassifier pickle protocol 0
- Works in pure Go without C API bindings
- Reads LightGBM, XGBoost, and scikit-learn model inputs
- Supports parallel batch predictions and multiclass predictions
- API is subject to change before 1.0.0 release
- Transformation functions limited to sigmoid and softmax
- scikit-learn support is experimental and limited to GradientBoostingClassifier pickle protocol 0
leaves at a glance
- Website
- github.com/dmitryikh/leaves
- Category
- Development › Developer Tools
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Yes · Source code
- Language
- English
- Last checked
- Oct 6, 2026 · Online when checked
- Listed
- Oct 5, 2026
Guides for Developer Tools
leaves alternatives
Tools and sites you could use instead, ranked by how closely they match.
Machine learning pipelines can use whylogs, an open-source library for logging data quality and model performance.
This Node.js library implements Latent Dirichlet Allocation topic modeling in JavaScript.
Netron displays neural network, deep learning, and machine learning models across formats such as ONNX, TensorFlow, and PyTorch.
Weights & Biases supports model training, fine tuning, and management from experimentation through production.
Automatic machine learning, hyperparameter tuning, and pipeline abstractions are provided by the Neuraxle software library.
Python developers can use Zipline’s event-driven library to backtest algorithmic trading strategies.
Popular in Developer Tools
Well-known listings from the same topic.
leaves FAQ
Which model files can leaves read?
Which model types are supported?
Does leaves require C bindings?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.













