Skip to content

Microsoft.ML nuget package no longer has a way to specify number of bins for binning normalization #3109

Closed
@eerhardt

Description

@eerhardt

In v0.11.0, it was possible to write code like the following:

var normalizer = mLContext.Transforms.Normalize(
    new NormalizingEstimator.BinningColumnOptions(outputColumnName: "Label", numBins: 2));

This allowed you to create a binning normalizer with the number of bins set to 2.

However, this API is no longer public in Microsoft.ML. There is a public API where you can specify mode: NormalizingEstimator.NormalizationMode.Binning, but there is no way to set the number of bins. So when you use this mode, you always MaximumBinCount set to the default 1024.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions