Practical overview
When it fits
Consider Tgboost when a tabular prediction workflow needs gradient-boosted trees, particularly when categorical or missing values need explicit handling and training is performed on a single machine.
Who it is for
- Developers building regression or classification workflows for tabular data.
- Java users and Python users seeking a gradient-boosted tree implementation.
- Practitioners working with categorical features or missing values.
Documented uses
- Train regression models with square-error loss or classification models with logistic loss.
- Evaluate on validation data and use early stopping.
- Generate feature-importance output and apply regularization, sampling or sample weights.
- Produce predictions and save or reload trained models.
Requirements & limits
The repository is public and lists an MIT license. The documented implementation requires a JDK; a Python binding is provided.
- The core implementation is Java, while Python users can install a binding from the repository's python-package directory.
- The documented training workflow takes training and validation files; prediction uses a test file and writes to an output path.
- Missing values are handled by evaluating left, right and separate missing-value child assignments; categorical values are ordered using gradient and Hessian statistics at each node.
- The repository describes parallel learning on a single machine.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install the Python binding
Install Tgboost’s Python package from its repository.
Before you start
- A JDK is required for Tgboost.
- Python and the repository's documented setup.py installation procedure.
Steps
Clone the wepe/tgboost repository.
Change into the python-package directory.
Run sudo python setup.py install.
Expected outcome
The documented installation procedure installs the Python binding.
Guide limitations
- This procedure covers installation only; it does not verify that installation or a model run succeeds.
Train, predict, and save a model with the Python binding
Use the documented Python example to train a model, generate predictions, and preserve the trained model for later prediction.
Before you start
- Tgboost's Python binding installed.
- Training, validation, and test data files.
Steps
Set training and validation file paths and provide model parameters, including the loss and any categorical feature names.
Call tgb.train with the training file, validation file, and parameters.
Call model.predict with the test file and an output-file path.
Save the model, then load it with tgb.load_model and call predict again.
Expected outcome
The documented workflow writes test predictions and demonstrates saving and reloading a model for prediction.
Guide limitations
- The repository's example refers to a separate data download; the guide does not verify that dataset or run the example.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 20 November 2026
- Original website title
- wepe/tgboost · Official homepage title · retained in its source language

