From b49e908f6078ba82dd99076c9a4b9fa91e07f8a3 Mon Sep 17 00:00:00 2001 From: Zeeshan Siddiqui Date: Tue, 9 Apr 2019 09:26:24 -0700 Subject: [PATCH] Fix LightGBM Ranking sample runtime exception. --- .../Dynamic/Trainers/Ranking/LightGbmWithOptions.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/Ranking/LightGbmWithOptions.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/Ranking/LightGbmWithOptions.cs index 1cb039bb18..e31eeeac0c 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/Ranking/LightGbmWithOptions.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/Ranking/LightGbmWithOptions.cs @@ -29,7 +29,8 @@ public static void Example() Booster = new GradientBooster.Options { FeatureFraction = 0.9 - } + }, + RowGroupColumnName = "GroupId" }); // Fit this pipeline to the training Data. @@ -43,7 +44,7 @@ public static void Example() // Expected output: // DCG: @1:1.71, @2:3.88, @3:7.93 - // NDCG: @1:7.98, @2:12.14, @3:16.62 + // NDCG: @1:0.08, @2:0.12, @3:0.17 } } }