XGBoost bindings for golang
Перейти к файлу
Jaakko Lukkari 9fef4a1847
Merge pull request #4 from Applifier/feature/dockerfile_path
Use script dir instead of referencing a relative path for project root (fixes #3)
2018-09-24 17:03:38 +03:00
core Fix expected results 2018-08-29 13:41:51 +03:00
scripts Use script dir instead of referencing a relative path for project root (fixes #3) 2018-09-24 14:49:45 +03:00
.travis.yml Add travis 2018-08-17 14:00:22 +03:00
LICENSE more matrix funcs 2018-08-17 15:43:26 +03:00
Makefile WIP implementation of the simplified prediction api 2018-08-20 14:56:28 +03:00
README.md Fix travis badge 2018-08-20 17:16:16 +03:00
booster.go add possibility to close predictor 2018-08-20 15:18:56 +03:00
booster_test.go Add expected output 2018-08-29 13:43:24 +03:00

README.md

WORK IN PROGRESS... USE AT OWN RISK :-)

Build Status GoDoc

go-xgboost

Go bindings for XGBoost

import "github.com/Applifier/go-xgboost"

Usage

This library is meant for running predictions against a pre-trained XGBoost model. Limited training related functionality is implemented under core but training the model in python or using the xgboost cli is encouraged.


// Create predictor for a model and define the number of workers (and other settings)
predictor, _ := xgboost.NewPredictor(modelPath, runtime.NumCPU(), 0, 0, -1)

// Make prediction for one row
res, _ := predictor.Predict(xgboost.FloatSliceVector([]float32{1, 2, 3}))
fmt.Printf("Results: %+v\n", res)
// output: Results: [1.08002]

License

MIT