{"id":20751016,"url":"https://github.com/vaaaaanquish/lightgbm-rs","last_synced_at":"2025-04-28T12:55:00.049Z","repository":{"id":43342545,"uuid":"326394024","full_name":"vaaaaanquish/lightgbm-rs","owner":"vaaaaanquish","description":"LightGBM Rust binding","archived":false,"fork":false,"pushed_at":"2023-10-31T09:03:31.000Z","size":69,"stargazers_count":67,"open_issues_count":16,"forks_count":28,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-04-14T07:20:47.645Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/vaaaaanquish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["vaaaaanquish"]}},"created_at":"2021-01-03T11:45:47.000Z","updated_at":"2024-04-13T19:11:49.000Z","dependencies_parsed_at":"2022-08-28T07:42:05.309Z","dependency_job_id":null,"html_url":"https://github.com/vaaaaanquish/lightgbm-rs","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaaaanquish%2Flightgbm-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaaaanquish%2Flightgbm-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaaaanquish%2Flightgbm-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaaaanquish%2Flightgbm-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaaaaanquish","download_url":"https://codeload.github.com/vaaaaanquish/lightgbm-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225017364,"owners_count":17407757,"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":[],"created_at":"2024-11-17T08:29:41.835Z","updated_at":"2024-11-17T08:29:42.469Z","avatar_url":"https://github.com/vaaaaanquish.png","language":"Rust","readme":"# lightgbm-rs\nLightGBM Rust binding\n\n\n# Require\n\nYou need an environment that can build LightGBM.\n\n```\n# linux\napt install -y cmake libclang-dev libc++-dev gcc-multilib\n\n# OS X\nbrew install cmake libomp\n```\n\nOn Windows\n\n1. Install CMake and VS Build Tools.\n1. Install LLVM and set an environment variable `LIBCLANG_PATH` to PATH_TO_LLVM_BINARY (example: `C:\\Program Files\\LLVM\\bin`)\n\nPlease see below for details.\n\n- [LightGBM Installation-Guide](https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html)\n\n# Usage\n\nExample LightGBM train.\n```\nextern crate serde_json;\nuse lightgbm::{Dataset, Booster};\nuse serde_json::json;\n\nlet data = vec![vec![1.0, 0.1, 0.2, 0.1],\n               vec![0.7, 0.4, 0.5, 0.1],\n               vec![0.9, 0.8, 0.5, 0.1],\n               vec![0.2, 0.2, 0.8, 0.7],\n               vec![0.1, 0.7, 1.0, 0.9]];\nlet label = vec![0.0, 0.0, 0.0, 1.0, 1.0];\nlet dataset = Dataset::from_mat(data, label).unwrap();\nlet params = json!{\n   {\n        \"num_iterations\": 3,\n        \"objective\": \"binary\",\n        \"metric\": \"auc\"\n    }\n};\nlet bst = Booster::train(dataset, \u0026params).unwrap();\n```\n\nPlease see the `./examples` for details.\n\n|example|link|\n|---|---|\n|binary classification|[link](https://github.com/vaaaaanquish/lightgbm-rs/blob/main/examples/binary_classification/src/main.rs)|\n|multiclass classification|[link](https://github.com/vaaaaanquish/lightgbm-rs/blob/main/examples/multiclass_classification/src/main.rs)|\n|regression|[link](https://github.com/vaaaaanquish/lightgbm-rs/blob/main/examples/regression/src/main.rs)|\n\n\n\n# Develop\n\n```\ngit clone --recursive https://github.com/vaaaaanquish/lightgbm-rs\n```\n\n```\ndocker build -t lgbmrs .\ndocker run -it -v $PWD:/app lgbmrs bash\n\n# cargo build\n```\n\n\n# Thanks\n\nMuch reference was made to implementation and documentation. Thanks.\n\n- [microsoft/LightGBM](https://github.com/microsoft/LightGBM)\n- [davechallis/rust-xgboost](https://github.com/davechallis/rust-xgboost)\n","funding_links":["https://github.com/sponsors/vaaaaanquish"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaaaaanquish%2Flightgbm-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaaaaanquish%2Flightgbm-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaaaaanquish%2Flightgbm-rs/lists"}