{"id":19409681,"url":"https://github.com/seznam/xgboostpredictor","last_synced_at":"2025-04-14T10:32:45.282Z","repository":{"id":66233420,"uuid":"288696104","full_name":"seznam/xgboostpredictor","owner":"seznam","description":"C++ header-only thread-safe XGBoost predictor","archived":false,"fork":false,"pushed_at":"2020-08-24T06:06:24.000Z","size":145,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-27T23:41:50.785Z","etag":null,"topics":["cpp","predictor","xgboost"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seznam.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}},"created_at":"2020-08-19T09:58:44.000Z","updated_at":"2024-05-27T07:04:17.000Z","dependencies_parsed_at":"2023-03-30T11:35:45.063Z","dependency_job_id":null,"html_url":"https://github.com/seznam/xgboostpredictor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seznam%2Fxgboostpredictor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seznam%2Fxgboostpredictor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seznam%2Fxgboostpredictor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seznam%2Fxgboostpredictor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seznam","download_url":"https://codeload.github.com/seznam/xgboostpredictor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248862590,"owners_count":21173837,"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","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":["cpp","predictor","xgboost"],"created_at":"2024-11-10T12:12:47.471Z","updated_at":"2025-04-14T10:32:45.253Z","avatar_url":"https://github.com/seznam.png","language":"C++","readme":"# XGBoostPredictor\nC++ header-only thread-safe library of [XGBoost](https://github.com/dmlc/xgboost/) predictor without dependency on xgboost library. \n\n## Requirements\n* C++17 compiler\n* [RapidJSON](https://rapidjson.org/) library installed\n* XGBoost model saved to [json format](https://xgboost.readthedocs.io/en/latest/tutorials/saving_model.html) (requires xgboost \u003e= 1.0)\n\n## Using library in C++\n\n```cpp\n#include \"xgboostpredictor.h\"\n#include \u003ciostream\u003e\n\nusing namespace xgboost::predictor;\n\nint main()\n{\n    // load xgboost json model\n    XGBoostPredictor predictor(\"model.json\");\n\n    // prepare features (3 features total)\n    XGBoostPredictor::Data data(3);\n\n    // set features\n    // NOTE: feature 0 is set to 1.2, feature 1 is missing and feature 2 is set to 3.4\n    data[0] = 1.2f;\n    data[2] = 3.4f;\n    \n    // make prediction\n    const auto prediction = predictor.predict(data);\n\n    // print predicted value\n    std::cout \u003c\u003c prediction[0] \u003c\u003c std::endl;\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseznam%2Fxgboostpredictor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseznam%2Fxgboostpredictor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseznam%2Fxgboostpredictor/lists"}