{"id":16653769,"url":"https://github.com/mirecl/catboost-cgo","last_synced_at":"2025-10-13T11:06:06.009Z","repository":{"id":253745391,"uuid":"842068696","full_name":"mirecl/catboost-cgo","owner":"mirecl","description":"CatBoost a fast, scalable, high performance Gradient Boosting on Decision Trees library. Golang using Cgo for blazing fast inference CatBoost Model 🚀","archived":false,"fork":false,"pushed_at":"2025-09-28T05:38:38.000Z","size":844,"stargazers_count":18,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-28T07:19:57.269Z","etag":null,"topics":["catboost","cgo","deep-learning","golang","gradient-boosting","inference"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mirecl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["mirecl"]}},"created_at":"2024-08-13T15:53:52.000Z","updated_at":"2025-09-28T05:38:35.000Z","dependencies_parsed_at":"2024-10-28T11:27:02.486Z","dependency_job_id":"c04309ca-5047-4522-ac97-a9d317b3fcce","html_url":"https://github.com/mirecl/catboost-cgo","commit_stats":null,"previous_names":["mirecl/catboost-cgo"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/mirecl/catboost-cgo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirecl%2Fcatboost-cgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirecl%2Fcatboost-cgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirecl%2Fcatboost-cgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirecl%2Fcatboost-cgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirecl","download_url":"https://codeload.github.com/mirecl/catboost-cgo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirecl%2Fcatboost-cgo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014751,"owners_count":26085593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["catboost","cgo","deep-learning","golang","gradient-boosting","inference"],"created_at":"2024-10-12T09:47:30.925Z","updated_at":"2025-10-13T11:06:05.989Z","avatar_url":"https://github.com/mirecl.png","language":"C","funding_links":["https://github.com/sponsors/mirecl"],"categories":["Machine Learning","机器学习"],"sub_categories":["Search and Analytic Databases","检索及分析资料库"],"readme":"[![PkgGoDev](https://pkg.go.dev/badge/mod/github.com/mirecl/catboost-cgo)](https://pkg.go.dev/mod/github.com/mirecl/catboost-cgo) ![GitHub Release](https://img.shields.io/github/v/release/mirecl/catboost-cgo)\n![](https://img.shields.io/github/go-mod/go-version/mirecl/catboost-cgo) [![CI](https://github.com/mirecl/catboost-cgo/actions/workflows/ci.yml/badge.svg)](https://github.com/mirecl/catboost-cgo/actions/workflows/ci.yml) [![codecov](https://codecov.io/github/mirecl/catboost-cgo/graph/badge.svg?token=HUG4WWSSZN)](https://codecov.io/github/mirecl/catboost-cgo)\n[![Go Report Card](https://goreportcard.com/badge/github.com/mirecl/catboost-cgo)](https://goreportcard.com/report/github.com/mirecl/catboost-cgo) [![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)  \\\n![](https://img.shields.io/badge/platform-Linux-black?logo=linux\u0026logoColor=white) ![](https://img.shields.io/badge/platform-MacOS-black?logo=apple\u0026logoColor=white)\n\n## CatBoost-Cgo\n\nEvaluation library is the fastest way for inference a model CatBoost. The library provides a [C API](https://github.com/catboost/catboost/blob/master/catboost/libs/model_interface/c_api.h).\\\nThe [C API](https://github.com/catboost/catboost/blob/master/catboost/libs/model_interface/c_api.h) interface can be accessed from any programming language (example Golang + [Cgo](https://go.dev/wiki/cgo)).\n\nPrebuilt shared library (`*.so` | `*.dylib`) artifacts are available of the [releases](https://github.com/catboost/catboost/releases) page on GitHub CatBoost project.\\\nThe shared library:\n\n1) Should be in `/usr/local/lib`\n2) Or set path in environment `CATBOOST_LIBRARY_PATH`\n3) Or set path manual in source code `SetSharedLibraryPath` (see example below)\n\nFor more information, see \u003chttps://catboost.ai/en/docs/concepts/c-plus-plus-api_dynamic-c-pluplus-wrapper\u003e.\n\n## Compatibility\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003ePrevious versions\u003c/th\u003e\n    \u003cth\u003ev1.2.2\u003c/th\u003e\n    \u003cth\u003ev1.2.3\u003c/th\u003e\n    \u003cth\u003ev1.2.4\u003c/th\u003e\n    \u003cth\u003ev1.2.5\u003c/th\u003e\n    \u003cth\u003ev1.2.6\u003c/th\u003e\n    \u003cth\u003ev1.2.7\u003c/th\u003e\n    \u003cth\u003ev1.2.8\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e🚫 (not testing)\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e✅\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Features\n\n**Supported functionality** (\u003chttps://catboost.ai/en/docs/concepts/python-quickstart\u003e):\n\n+ CatBoostRegressor ✅\n+ CatBoostClassifier ✅\n+ CatBoostRanker ✅\n\n**Supported prediction types** (\u003chttps://github.com/catboost/catboost/blob/master/catboost/libs/model/enums.h\u003e):\n\n+ RawFormulaVal ✅\n+ Probability ✅\n+ Class ✅\n+ RMSEWithUncertainty ✅\n+ Exponent ✅\n\n## Limitation\n\n**Supported operating system and architectures:**\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003eOperating system\u003c/th\u003e\n    \u003cth\u003eCPU architectures\u003c/th\u003e\n    \u003cth\u003eGPU support using CUDA\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eMacOS\u003c/td\u003e\n    \u003ctd \u003e✅ (x86_64)\u003c/td\u003e\n    \u003ctd\u003e🚫\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eLinux\u003c/td\u003e\n    \u003ctd\u003e✅ (x86_64)\u003c/td\u003e\n    \u003ctd\u003e✅ (x86_64)\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eWindows 10 and 11\u003c/td\u003e\n    \u003ctd\u003e🚫\u003c/td\u003e\n    \u003ctd\u003e🚫\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003e_If you use GPU - only device 0 is supported for now. More details: \u003chttps://github.com/catboost/catboost/issues/2774\u003e._\n\n**Supported Type:**\n\n+ Numeric ✅\n+ Categorical ✅ (\u003chttps://catboost.ai/en/docs/features/categorical-features\u003e)\n+ Text 🚫 (\u003chttps://catboost.ai/en/docs/features/text-features\u003e)\n+ Embeddings 🚫 (\u003chttps://catboost.ai/en/docs/features/embeddings-features\u003e)\n\n## Installation\n\n1) Install **[catboost-cgo](https://github.com/mirecl/catboost-cgo)**:\n\n```go\ngo get github.com/mirecl/catboost-cgo\n```\n\n2) Download CatBoost shared library from release page: \u003chttps://github.com/catboost/catboost/releases\u003e\n\n3) Save CatBoost shared library in  `/usr/local/lib` or manual set path:\n\n```go\nimport (\n cb \"github.com/mirecl/catboost-cgo/catboost\"\n)\n\nfunc main(){\n  cb.SetSharedLibraryPath(...)\n}\n```\n\n4) See [examples](example) of use\n\n### Usage\n\n+ [Regression](example/regressor)\n+ [Binary classification](example/classifier)\n+ [Multiclassification](example/multiclassification)\n+ [Ranker](example/ranker)\n+ [Titanic](example/titanic)\n+ [Metadata](example/metadata)\n+ [Uncertainty](example/uncertainty)\n+ [Survival](example/survival)\n\n### Thanks\n\n+ [@lukangping](https://github.com/lukangping) for \u003chttps://github.com/lukangping/catboost-go\u003e\n+ [@bourbaki](https://github.com/bourbaki) for \u003chttps://github.com/bourbaki/catboost-go\u003e\n+ [@yalue](https://github.com/yalue) for \u003chttps://github.com/yalue/onnxruntime_go\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirecl%2Fcatboost-cgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirecl%2Fcatboost-cgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirecl%2Fcatboost-cgo/lists"}