OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Tgboost

Tgboost is an open-source gradient-boosted decision-tree implementation for regression and classification, written in Java with a Python binding. It uses XGBoost's scoring function and SLIQ-style level-wise tree construction, and supports model training, prediction, saving and loading.

Independent OpenViST project profile, based on linked sources.

Tgboost — Regression and classification on tabular data
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Clone the wepe/tgboost repository.

  2. Change into the python-package directory.

  3. 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.
Source-based practical guide

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

  1. Set training and validation file paths and provide model parameters, including the loss and any categorical feature names.

  2. Call tgb.train with the training file, validation file, and parameters.

  3. Call model.predict with the test file and an output-file path.

  4. 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.
Evidence and transparency

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