go-treelite: TreeLite binding in Go

Go Report Card CodeQL Go Go.Dev reference

This binding currently works for treelite 2.3.0.

Prerequirements

install treelite

install treelite (see .devcontainer/Dockerfile)

1. install packages to install treelite

the following package is installed.

  • g++
  • cmake
  • make

2. install treelite

git clone https://github.com/dmlc/treelite.git -b 2.3.0
cd treelite \
mkdir build && cd build \
cmake .. \
sudo make install \
export LIBRARY_PATH=/usr/local/lib${LIBRARY_PATH:+:$LIBRARY_PATH}
export LD_LIBRARY_PATH=/usr/local/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}

Usage

Add this library to your project.

go get github.com/getumen/go-treelite

Documentation

The documentation is hosted at here. You can also take a look at example_test.go.

GitHub

View Github