-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Adding sample for LightGbm ranking #2729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2729 +/- ##
==========================================
- Coverage 71.67% 71.65% -0.02%
==========================================
Files 808 808
Lines 142261 142296 +35
Branches 16138 16141 +3
==========================================
- Hits 101960 101959 -1
- Misses 35861 35898 +37
+ Partials 4440 4439 -1
|
Codecov Report
@@ Coverage Diff @@
## master #2729 +/- ##
==========================================
- Coverage 71.66% 71.65% -0.02%
==========================================
Files 808 808
Lines 142254 142281 +27
Branches 16119 16122 +3
==========================================
- Hits 101951 101950 -1
- Misses 35866 35893 +27
- Partials 4437 4438 +1
|
@@ -1,8 +1,8 @@ | |||
using Microsoft.ML.Transforms.Categorical; | |||
|
|||
namespace Microsoft.ML.Samples.Dynamic | |||
namespace Microsoft.ML.Samples.Dynamic.Trainers.BinaryClassification |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think it is necessary to organize by namespaces to this granularity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change was suggested by @shmoradims in an earlier version of this PR. Can we get an agreement on the namespaces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have trainers with the same name under different catalogs (binary, multi, regression, etc). We either have to use namespaces or class names to differentiate them. E.g:
Microsoft.ML.Samples.Dynamic.LightGbmBinaryClassification vs
Microsoft.ML.Samples.Dynamic.Trainers.BinaryClassification.LightGbm
We also have LightGbm in multiclass and ranking.
I prefer the latter option because class names are identical to the extension method APIs, and namespaces mirror the catalog path.
In reply to: 260413531 [](ancestors = 260413531)
...s/Microsoft.ML.Samples/Dynamic/Trainers/BinaryClassification/LightGBMBinaryClassification.cs
Show resolved
Hide resolved
|
||
// NOTE: | ||
// | ||
// This sample is currently broken due to a bug in setting the GroupId column in LightGbm when using Options. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setting [](start = 63, length = 7)
this has tendency to get lost.
Can you sign off on this one: #2742?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ivanidzo4ka Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replacing PR #2704 and #2650 as I messed up commit history there.
Fixes #2530
Fixes #776