Skip to content

Commit 818723e

Browse files
malik97160Ivanidzo4ka
authored andcommitted
Bug in check for existence of Group field dotnet#1372 (dotnet#1377)
1 parent 0cdde0f commit 818723e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.ML.LightGBM/LightGbmTrainerBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ private void GetMetainfo(IChannel ch, FloatLabelCursor.Factory factory,
425425
bool hasGroup = false;
426426
if (PredictionKind == PredictionKind.Ranking)
427427
{
428-
ch.Check(factory.Data.Schema != null, "The data for ranking task should have group field.");
428+
ch.Check(factory.Data.Schema.Group != null, "The data for ranking task should have group field.");
429429
hasGroup = true;
430430
}
431431
List<float> weightList = hasWeights ? new List<float>() : null;

0 commit comments

Comments
 (0)