dotnet / dotnet/machinelearning

Duplicate column name exception when adding an Ignored column to AutoML framework

Open
#4,263 0 comments 0 reactions 0 assignees View on GitHub
area-AutoML Priority:2
Dominant language
C#
Stars
9.4k
Forks
2k
Avg merge
2d 20h
Merged PRs (30d)
11

Description

### System information

- **OS version/distro**: Windows 10.0.18362
- **.NET Version (eg., dotnet --info)**: core 3.0.100

### Issue

- **What did you do?**
Add a column that AutoML should ignore.

- **What happened?**
Get an exception that the column name is duplicated.

- **What did you expect?**
When you add a column to the ignored collection you don't have to remove it from another collection (there are more than one) because the columns are inferred from the dataset at runtime.

### Source code / logs
ColumnInformation columnInformation = columnInference.ColumnInformation;
columnInformation.NumericColumnNames.Remove("payment_type");
columnInformation.IgnoredColumnNames.Add("payment_type");

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.