Microsoft.ML.LightGbm
                              
                            
                                5.0.0-preview.25527.5
                            
                        
                            
                                
                                
                                    Prefix Reserved
                                
                            
                    dotnet add package Microsoft.ML.LightGbm --version 5.0.0-preview.25527.5
NuGet\Install-Package Microsoft.ML.LightGbm -Version 5.0.0-preview.25527.5
<PackageReference Include="Microsoft.ML.LightGbm" Version="5.0.0-preview.25527.5" />
<PackageVersion Include="Microsoft.ML.LightGbm" Version="5.0.0-preview.25527.5" />
<PackageReference Include="Microsoft.ML.LightGbm" />
paket add Microsoft.ML.LightGbm --version 5.0.0-preview.25527.5
#r "nuget: Microsoft.ML.LightGbm, 5.0.0-preview.25527.5"
#:package Microsoft.ML.LightGbm@5.0.0-preview.25527.5
#addin nuget:?package=Microsoft.ML.LightGbm&version=5.0.0-preview.25527.5&prerelease
#tool nuget:?package=Microsoft.ML.LightGbm&version=5.0.0-preview.25527.5&prerelease
About
ML.NET is a cross-platform open-source machine learning framework which makes machine learning accessible to .NET developers.
For more information, see the ML.NET documentation.
This package adds the ability to use LightGBM based transformers, a gradient boosting framework that uses tree based learning algorithms.
Key Features
- Classification/Categorization - Automatically divide customer feedback into positive and negative categories
 - Regression/Predict continuous values - Predict the price of houses based on size and location
 - Recommendations - Suggest products that online shoppers may want to buy, based on their previous purchases
 
How to Use
See Machine Learning Samples for an assortment of samples that show how to get started using ML.NET.
Main Types
Some of the types provided by this library are:
Microsoft.ML.Trainers.LightGbm.GradientBoosterMicrosoft.ML.Trainers.LightGbm.DartBoosterMicrosoft.ML.Trainers.LightGbm.GossBoosterMicrosoft.ML.Trainers.LightGbm.LightGbmBinaryTrainer
Additional Documentation
Related Packages
- Main Package: Microsoft.ML
 - Core data abstraction: Microsoft.ML.DataView
 - Fast Tree: Microsoft.ML.FastTree
 - Image analytics: Microsoft.ML.ImageAnalytics
 - Recommender: Microsoft.ML.Recommender
 - Time series: Microsoft.ML.TimeSeries
 - Automatic model selection / tuning: Microsoft.ML.AutoML
 - Exporting Onnx Models: Microsoft.ML.OnnxConverter
 - Loading Onnx models: Microsoft.ML.OnnxTransformer
 - Text tokenizers: Microsoft.ML.Tokenizers
 
Feedback & Contributing
Microsoft.ML is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
| Product | Versions Compatible and additional computed target framework versions. | 
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. | 
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. | 
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. | 
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. | 
| MonoAndroid | monoandroid was computed. | 
| MonoMac | monomac was computed. | 
| MonoTouch | monotouch was computed. | 
| Tizen | tizen40 was computed. tizen60 was computed. | 
| Xamarin.iOS | xamarinios was computed. | 
| Xamarin.Mac | xamarinmac was computed. | 
| Xamarin.TVOS | xamarintvos was computed. | 
| Xamarin.WatchOS | xamarinwatchos was computed. | 
- 
                                                    
.NETStandard 2.0
- LightGBM (>= 4.6.0)
 - Microsoft.Bcl.AsyncInterfaces (>= 9.0.4)
 - Microsoft.ML (>= 5.0.0-preview.25527.5)
 - Microsoft.ML.FastTree (>= 5.0.0-preview.25527.5)
 - Newtonsoft.Json (>= 13.0.3)
 - System.Buffers (>= 4.6.1)
 - System.CodeDom (>= 9.0.4)
 - System.Collections.Immutable (>= 9.0.4)
 - System.Memory (>= 4.6.3)
 - System.Numerics.Tensors (>= 9.0.4)
 - System.Reflection.Emit.Lightweight (>= 4.7.0)
 - System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
 - System.Threading.Channels (>= 9.0.4)
 
 
NuGet packages (9)
Showing the top 5 NuGet packages that depend on Microsoft.ML.LightGbm:
| Package | Downloads | 
|---|---|
| 
                                                        
                                                            Microsoft.ML.AutoML
                                                        
                                                            
                                                         ML.NET AutoML: Optimizes an ML pipeline for your dataset, by automatically locating the best feature engineering, model, and hyperparameters  | 
                                                    |
| 
                                                        
                                                            dexih.functions.ml
                                                        
                                                         Data transformation and Anaytics library - Machine Learning Functions  | 
                                                    |
| 
                                                        
                                                            Microsoft.ProgramSynthesis.Transformation.Formula.MachineLearning
                                                        
                                                            
                                                         Supporting library for Machine Learning capabilities in the Transformation.Formula DSL.  | 
                                                    |
| 
                                                        
                                                            ProteoformExplorer
                                                        
                                                         Proteoform Dashboard for WPF Applications  | 
                                                    |
| 
                                                        
                                                            Vintasoft.Imaging.Ocr.ML
                                                        
                                                         Recognize line of handwritten digits in image using neural network.  | 
                                                    
GitHub repositories (7)
Showing the top 7 popular GitHub repositories that depend on Microsoft.ML.LightGbm:
| Repository | Stars | 
|---|---|
| 
                                                        
                                                            CodeMazeBlog/CodeMazeGuides
                                                        
                                                         
                                                            The main repository for all the Code Maze guides
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            zLulus/NotePractice
                                                        
                                                         
                                                            My_Note 笔记练习demo
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            buraksenyurt/skynet
                                                        
                                                         
                                                            Some kinds of programming tutorials on MacOS/Windows/Linux. There are 41 sample applications.
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            maker-community/ElectronBot.DotNet
                                                        
                                                         
                                                            一个为ElectronBot机器人和瀚文键盘(HelloWorldKeyboard)开发的上位机软件(包含机器人USB操作SDK和瀚文键盘HID操作SDK),采用Windows App SDK框架编写界面。   A host computer software developed for ElectronBot robots (including robot USB operation SDK), using the Windows App SDK framework to write UI.
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            SoftUni/csharp-web
                                                        
                                                         
                                                            This is the official GitHub repository for the C# Web Development courses @ SoftUni
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            changhuixu/dotnetlabs
                                                        
                                                         
                                                            .NET Labs -- Show Me the Tips and Tricks and Code
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            jeffprosise/ML.NET
                                                        
                                                         
                                                            Code samples utilizing Microsoft's ML.NET machine-learning library
                                                         
                                                     | 
                                                    
| Version | Downloads | Last Updated | 
|---|---|---|
| 5.0.0-preview.25527.5 | 179 | 10/29/2025 | 
| 5.0.0-preview.25503.2 | 332 | 10/3/2025 | 
| 5.0.0-preview.25373.1 | 970 | 7/28/2025 | 
| 5.0.0-preview.1.25127.4 | 3,367 | 2/28/2025 | 
| 5.0.0-preview.1.25125.4 | 193 | 2/25/2025 | 
| 4.0.3 | 852 | 10/28/2025 | 
| 4.0.2 | 66,347 | 2/26/2025 | 
| 4.0.1 | 19,910 | 1/15/2025 | 
| 4.0.0 | 25,463 | 11/13/2024 | 
| 4.0.0-preview.24522.7 | 379 | 10/23/2024 | 
| 4.0.0-preview.24378.1 | 1,598 | 7/29/2024 | 
| 4.0.0-preview.24271.1 | 1,467 | 5/21/2024 | 
| 4.0.0-preview.24162.2 | 1,669 | 3/13/2024 | 
| 3.0.1 | 216,087 | 1/18/2024 | 
| 3.0.0 | 37,668 | 11/27/2023 | 
| 3.0.0-preview.23511.1 | 866 | 10/13/2023 | 
| 3.0.0-preview.23266.6 | 10,662 | 5/17/2023 | 
| 3.0.0-preview.22621.2 | 2,550 | 12/22/2022 | 
| 2.0.1 | 219,583 | 2/1/2023 | 
| 2.0.1-preview.22573.9 | 1,550 | 11/24/2022 | 
| 2.0.0 | 70,057 | 11/8/2022 | 
| 2.0.0-preview.22551.1 | 1,308 | 11/1/2022 | 
| 2.0.0-preview.22313.1 | 4,842 | 6/14/2022 | 
| 1.7.1 | 756,181 | 3/9/2022 | 
| 1.7.0 | 191,546 | 11/9/2021 | 
| 1.7.0-preview.final | 610 | 10/22/2021 | 
| 1.6.0 | 46,735 | 7/15/2021 | 
| 1.5.5 | 3,100,849 | 3/4/2021 | 
| 1.5.4 | 62,386 | 12/17/2020 | 
| 1.5.2 | 56,435 | 9/11/2020 | 
| 1.5.1 | 32,727 | 7/11/2020 | 
| 1.5.0 | 31,696 | 5/26/2020 | 
| 1.5.0-preview2 | 20,912 | 3/12/2020 | 
| 1.5.0-preview | 23,588 | 12/26/2019 | 
| 1.4.0 | 166,394 | 11/5/2019 | 
| 1.4.0-preview2 | 4,216 | 10/8/2019 | 
| 1.4.0-preview | 4,849 | 8/30/2019 | 
| 1.3.1 | 38,444 | 8/6/2019 | 
| 1.2.0 | 36,604 | 7/3/2019 | 
| 1.1.0 | 11,533 | 6/4/2019 | 
| 1.0.0 | 125,519 | 5/2/2019 | 
| 1.0.0-preview | 81,158 | 4/2/2019 | 
| 0.11.0 | 3,217 | 3/6/2019 | 
| 0.10.0 | 2,397 | 2/5/2019 | 
| 0.9.0 | 9,726 | 1/8/2019 | 
| 0.8.0 | 2,289 | 12/4/2018 | 
| 0.7.0 | 2,275 | 11/6/2018 | 
| 0.6.0 | 5,162 | 10/2/2018 | 
| 0.5.0 | 2,280 | 9/5/2018 | 
| 0.4.0 | 2,214 | 8/7/2018 | 
| 0.3.0 | 98,691 | 7/3/2018 |