Skip to content

Commit 2ea089e

Browse files
authored
Do not auto-group columns with suggested purpose = 'Ignore' (dotnet#273)
1 parent 50f8f62 commit 2ea089e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Microsoft.ML.Auto/ColumnInference/ColumnGroupingInference.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ into g
8383

8484
private static int GetPurposeGroupId(int columnIndex, ColumnPurpose purpose)
8585
{
86-
if (purpose == ColumnPurpose.CategoricalFeature || purpose == ColumnPurpose.TextFeature)
86+
if (purpose == ColumnPurpose.CategoricalFeature ||
87+
purpose == ColumnPurpose.TextFeature ||
88+
purpose == ColumnPurpose.Ignore)
8789
return columnIndex;
8890
return 0;
8991
}

0 commit comments

Comments
 (0)