{"id":22612974,"url":"https://github.com/mirecl/leaves-rs","last_synced_at":"2026-02-18T06:31:02.936Z","repository":{"id":263379186,"uuid":"890193718","full_name":"mirecl/leaves-rs","owner":"mirecl","description":"🌿 Leaves is a library implementing prediction code GBRT (Gradient Boosting Regression Trees) for inference models from popular ML-frameworks on Pure Rust 🦀","archived":false,"fork":false,"pushed_at":"2025-04-14T12:10:11.000Z","size":205,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-06T03:19:12.905Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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}},"created_at":"2024-11-18T06:38:49.000Z","updated_at":"2025-01-13T19:02:16.000Z","dependencies_parsed_at":"2024-12-06T16:31:52.551Z","dependency_job_id":"fee09c20-9261-4c7b-a7ae-b1d6e3679cc8","html_url":"https://github.com/mirecl/leaves-rs","commit_stats":null,"previous_names":["mirecl/leaves-rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mirecl/leaves-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirecl%2Fleaves-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirecl%2Fleaves-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirecl%2Fleaves-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirecl%2Fleaves-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirecl","download_url":"https://codeload.github.com/mirecl/leaves-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirecl%2Fleaves-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29570326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T06:19:27.422Z","status":"ssl_error","status_checked_at":"2026-02-18T06:18:44.348Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-12-08T17:14:40.731Z","updated_at":"2026-02-18T06:31:02.921Z","avatar_url":"https://github.com/mirecl.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest version](https://img.shields.io/crates/v/leaves-rs.svg)](https://crates.io/crates/leaves-rs) ![License](https://img.shields.io/crates/l/leaves-rs.svg)\n\n# 🌿 leaves-rs\n\n🌿 \u003cins\u003eLeaves\u003c/ins\u003e is a library implementing prediction code for GBRT (\u003cins\u003eGradient Boosting Regression Trees\u003c/ins\u003e).\\\nThe goal of the project - make it possible to inference models from popular ML-frameworks on **Pure Rust** 🦀.\n\n### 📝 Install library\n\nRun the following Cargo command in your project directory:\n\n```sh\ncargo add leaves-rs\n```\n\nOr add the following line to your **Cargo.toml**:\n\n```toml\nleaves-rs = \"0.0.1\"\n```\n\n### 📖 Proposal API for LightGBM\n\n+ Import library for example `LGBMClassifier`:\n\n```rust\nuse leaves::LGBMClassifier;\n```\n\n+ Load models:\n\n```rust\nlet model = LGBMClassifier::from_file(\"model.bin\");\n```\n\n+ Predict models:\n\n```rust\n// Create features vector.\nlet features = vec![1.0, 2.0, 3.0];\n\n// Inference model `Classifier`.\nlet preds = model.predict(features);\nlet preds_proba = model.predict_proba(features);\n```\n\n\u003e ❗The models `LGBMRegressor` and `LGBMRanker` will be executed in a similar manner.\n\n### 🤔 Supported framework\n\n+ [ ] LightGBM (\u003chttps://github.com/microsoft/LightGBM\u003e) (in progress 🟡)\n+ [ ] XGBoost (\u003chttps://github.com/dmlc/xgboost\u003e)\n+ [ ] CatBoost (\u003chttps://github.com/catboost/catboost\u003e)\n+ [ ] Scikit-Learn (\u003chttps://github.com/scikit-learn/scikit-learn\u003e)\n\n### 🫵 Usage\n\n+ [Regression](examples/regression)\n+ [Titanic](examples/titanic)\n\n### 👏 Thanks\n\n+ [@dmitryikh](https://github.com/dmitryikh) for \u003chttps://github.com/dmitryikh/leaves\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirecl%2Fleaves-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirecl%2Fleaves-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirecl%2Fleaves-rs/lists"}