Skip to content

Commit eb959c3

Browse files
authored
Adding defaults for labelColumn and groupIdColumn to Ranking evaluator. (#2684)
1 parent b604b07 commit eb959c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Microsoft.ML.Data/TrainCatalog.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,10 @@ internal RankingTrainers(RankingCatalog catalog)
623623
/// <param name="groupId">The name of the groupId column in <paramref name="data"/>.</param>
624624
/// <param name="score">The name of the score column in <paramref name="data"/>.</param>
625625
/// <returns>The evaluation results for these calibrated outputs.</returns>
626-
public RankerMetrics Evaluate(IDataView data, string label, string groupId, string score = DefaultColumnNames.Score)
626+
public RankerMetrics Evaluate(IDataView data,
627+
string label = DefaultColumnNames.Label,
628+
string groupId = DefaultColumnNames.GroupId,
629+
string score = DefaultColumnNames.Score)
627630
{
628631
Environment.CheckValue(data, nameof(data));
629632
Environment.CheckNonEmpty(label, nameof(label));

0 commit comments

Comments
 (0)