mirecl/catboost-cgo
mirecl/catboost-cgo has 26 GitHub stars and 2 forks. Star changes are not measured yet. Last checked 2026-11-14 11:32 UTC. Last push 2026-11-09.
What you can do
- CatBoostRegressor ✅
- CatBoostClassifier ✅
- CatBoostRanker ✅
- RawFormulaVal ✅
Crecimiento de estrellas medido
- in 24h
- Recopilando historial
- in 7 days
- Recopilando historial
- in 15 days
- Recopilando historial
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
Acerca de
CatBoost a fast, scalable, high performance Gradient Boosting on Decision Trees library. Golang using Cgo for blazing fast inference CatBoost Model 🚀
Aprendizaje automáticoREADME.md
OriginalCatBoost-Cgo
Evaluation library is the fastest way for inference a model CatBoost. The library provides a C API.
The C API interface can be accessed from any programming language (example Golang + Cgo).
Prebuilt shared library (*.so | *.dylib) artifacts are available of the releases page on GitHub CatBoost project.
The shared library:
- Should be in
/usr/local/lib - Or set path in environment
CATBOOST_LIBRARY_PATH - Or set path manual in source code
SetSharedLibraryPath(see example below)
For more information, see https://catboost.ai/en/docs/concepts/c-plus-plus-api_dynamic-c-pluplus-wrapper.
Compatibility
| Previous versions | v1.2.2 | v1.2.3 | v1.2.4 | v1.2.5 | v1.2.6 | v1.2.7 | v1.2.8 |
|---|---|---|---|---|---|---|---|
| 🚫 (not testing) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Features
Supported functionality (https://catboost.ai/en/docs/concepts/python-quickstart):
- CatBoostRegressor ✅
- CatBoostClassifier ✅
- CatBoostRanker ✅
Supported prediction types (https://github.com/catboost/catboost/blob/master/catboost/libs/model/enums.h):
- RawFormulaVal ✅
- Probability ✅
- Class ✅
- RMSEWithUncertainty ✅
- Exponent ✅
Limitation
Supported operating system and architectures:
| Operating system | CPU architectures | GPU support using CUDA |
|---|---|---|
| MacOS | ✅ (x86_64) | 🚫 |
| Linux | ✅ (x86_64) | ✅ (x86_64) |
| Windows 10 and 11 | 🚫 | 🚫 |
If you use GPU - only device 0 is supported for now. More details: https://github.com/catboost/catboost/issues/2774.
Supported Type:
- Numeric ✅
- Categorical ✅ (https://catboost.ai/en/docs/features/categorical-features)
- Text ✅ (https://catboost.ai/en/docs/features/text-features)
- Embeddings 🚫 (https://catboost.ai/en/docs/features/embeddings-features)
Installation
- Install catboost-cgo:
go get github.com/mirecl/catboost-cgo
Download CatBoost shared library from release page: https://github.com/catboost/catboost/releases
Save CatBoost shared library in
/usr/local/libor manual set path:
import (
cb "github.com/mirecl/catboost-cgo/catboost"
)
func main(){
cb.SetSharedLibraryPath(...)
}
- See examples of use
Usage
Thanks
Explorar proyectos relacionados
catboost/catboost
Una biblioteca rápida, escalable y de alto rendimiento de aumento de gradiente sobre árboles de decisión, para Python, R, Java y C++. Se utiliza en tareas de aprendizaje automático como clasificación por ranking, clasificación, regresión y otras. Permite realizar cálculos en CPU y GPU.
kossisoroyce/timber
Ollama for classical ML models. AOT compiler that turns XGBoost, LightGBM, scikit-learn, CatBoost & ONNX models into native C99 inference code. One command to load, one command to serve. 336x faster than Python inference.
benedekrozemberczki/awesome-decision-tree-papers
A collection of research papers on decision, classification and regression trees with implementations.
benedekrozemberczki/awesome-gradient-boosting-papers
A curated list of gradient boosting research papers with implementations.