go-treelite: TreeLite binding in Go
This binding currently works for treelite 3.4.0.
install treelite (see .devcontainer/Dockerfile)
the following package is installed.
- g++
- cmake
- make
git clone https://github.com/dmlc/treelite.git -b 3.4.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}
Add this library to your project.
go get github.com/getumen/go-treelite
The documentation is hosted at here. You can also take a look at example_test.go.