Add Alpha parameter to LightGbmRegressionTrainer for Quantile Regression (Resolves #7603)#7605
Open
Sam7 wants to merge 2 commits intodotnet:mainfrom
Open
Add Alpha parameter to LightGbmRegressionTrainer for Quantile Regression (Resolves #7603)#7605Sam7 wants to merge 2 commits intodotnet:mainfrom
Sam7 wants to merge 2 commits intodotnet:mainfrom
Conversation
Author
|
@dotnet-policy-service agree |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7605 +/- ##
=======================================
Coverage 69.60% 69.60%
=======================================
Files 1484 1484
Lines 273604 273696 +92
Branches 27948 27951 +3
=======================================
+ Hits 190433 190501 +68
- Misses 75813 75837 +24
Partials 7358 7358
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR exposes the
Alphaparameter inLightGbmRegressionTrainer.Options, bringing the ML.NET LightGBM wrapper into parity with the native C++ LightGBM library for Quantile Regression.Resolves #7603
Background & Motivation
Currently, ML.NET users cannot perform native Quantile Regression (predicting the 5th or 95th percentiles instead of the mean) because the underlying LightGBM
alphaparameter is hidden. This addition allows users to setAlphadirectly in the options, unlocking probabilistic bounding and percentile estimation for regression tasks without needing to leave the native C# ML.NET ecosystem.Changes Made
public double? Alpha { get; set; }toLightGbmRegressionTrainer.Options(and mapped it to theLightGbmArguments).Alphais successfully passed through when specified.API Impact & Safety
This is a strictly additive API change. The default behavior for standard L2 (Mean Squared Error) regression remains completely unaffected. If
Alphais not explicitly provided by the user, the trainer behaves exactly as it did before.cc @michaelgsharp @luisquintanilla — Tagging you for visibility on the API addition! Since this exposes existing native C++ functionality and doesn't break default behavior, I'm hoping it's a smooth API review. Let me know if you need any adjustments to the tests or parameter mapping!