dotnet / dotnet/machinelearning

GetNormalizerModelParameters would be nice to accept name of column instead of index

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

Description

```
var normalize = mlContext.Transforms.NormalizeMinMax(new InputOutputColumnPair[] { new InputOutputColumnPair("ANorm", "A"), new InputOutputColumnPair("BNorm", "B") }, fixZero: false);
```

So right now in order to get parameters for `BNorm` column I need to do this:
```
(normalizeTransform.GetNormalizerModelParameters(1) as Microsoft.ML.Transforms.NormalizingTransformer.AffineNormalizerModelParameters>);
```

Can we have another function which would accept name of column instead of index in `InputOutputColumnPair` array?

```
(normalizeTransform.GetNormalizerModelParameters("BNorm") as Microsoft.ML.Transforms.NormalizingTransformer.AffineNormalizerModelParameters>);
```

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.