3 instantiations of NormalizingTransformer
Microsoft.ML.Data (3)
Transforms\Normalizer.cs (3)
608return new NormalizingTransformer(env, result); 660return new NormalizingTransformer(env.Register(nameof(NormalizingTransformer)), ctx); 671var transformer = new NormalizingTransformer(env.Register(nameof(NormalizingTransformer)), ctx, input);
160 references to NormalizingTransformer
Microsoft.ML.Data (42)
Transforms\NormalizeColumn.cs (12)
49/// and <see cref="NormalizingTransformer"/> rather than this structure. 428public abstract NormalizingTransformer.NormalizerModelParametersBase GetNormalizerModelParams(); 470public override NormalizingTransformer.NormalizerModelParametersBase GetNormalizerModelParams() 471=> new NormalizingTransformer.AffineNormalizerModelParameters<TFloat>(Scale, Offset); 518public override NormalizingTransformer.NormalizerModelParametersBase GetNormalizerModelParams() 519=> new NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<TFloat>>(ImmutableArray.Create(Scale), ImmutableArray.Create(Offset)); 547public abstract NormalizingTransformer.NormalizerModelParametersBase GetNormalizerModelParams(); 593public override NormalizingTransformer.NormalizerModelParametersBase GetNormalizerModelParams() 594=> new NormalizingTransformer.CdfNormalizerModelParameters<TFloat>(Mean, Stddev, UseLog); 637public override NormalizingTransformer.NormalizerModelParametersBase GetNormalizerModelParams() 638=> new NormalizingTransformer.CdfNormalizerModelParameters<ImmutableArray<TFloat>>(ImmutableArray.Create(Mean), ImmutableArray.Create(Stddev), UseLog); 683public abstract NormalizingTransformer.NormalizerModelParametersBase GetNormalizerModelParams();
Transforms\NormalizeColumnDbl.cs (4)
1226public override NormalizingTransformer.NormalizerModelParametersBase GetNormalizerModelParams() 1227=> new NormalizingTransformer.BinNormalizerModelParameters<TFloat>(ImmutableArray.Create(_binUpperBounds), _den, _offset); 1376public override NormalizingTransformer.NormalizerModelParametersBase GetNormalizerModelParams() 1377=> new NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<TFloat>>(_binUpperBounds.Select(b => ImmutableArray.Create(b)).ToImmutableArray(),
Transforms\NormalizeColumnSng.cs (4)
1387public override NormalizingTransformer.NormalizerModelParametersBase GetNormalizerModelParams() 1388=> new NormalizingTransformer.BinNormalizerModelParameters<TFloat>(ImmutableArray.Create(_binUpperBounds), _den, _offset); 1538public override NormalizingTransformer.NormalizerModelParametersBase GetNormalizerModelParams() 1539=> new NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<TFloat>>(
Transforms\Normalizer.cs (21)
19[assembly: LoadableClass(typeof(NormalizingTransformer), null, typeof(SignatureLoadModel), 20"", NormalizingTransformer.LoaderSignature)] 22[assembly: LoadableClass(typeof(IRowMapper), typeof(NormalizingTransformer), null, typeof(SignatureLoadRowMapper), 23"", NormalizingTransformer.LoaderSignature)] 25[assembly: LoadableClass(typeof(IDataTransform), typeof(NormalizingTransformer), null, typeof(SignatureLoadDataTransform), 26"", NormalizingTransformer.LoaderSignature, "NormalizeTransform")] 31/// <see cref="IEstimator{TTransformer}"/> for the <see cref="NormalizingTransformer"/>. 80public sealed class NormalizingEstimator : IEstimator<NormalizingTransformer> 332/// Trains and returns a <see cref="NormalizingTransformer"/>. 334public NormalizingTransformer Fit(IDataView input) 337return NormalizingTransformer.Train(_host, input, _columns); 392loaderAssemblyName: typeof(NormalizingTransformer).Assembly.FullName); 404loaderAssemblyName: typeof(NormalizingTransformer).Assembly.FullName); 525: base(env.Register(nameof(NormalizingTransformer)), columns.Select(x => (x.Name, x.InputColumnName)).ToArray()) 531internal static NormalizingTransformer Train(IHostEnvironment env, IDataView data, NormalizingEstimator.ColumnOptionsBase[] columns) 655private static NormalizingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 660return new NormalizingTransformer(env.Register(nameof(NormalizingTransformer)), ctx); 671var transformer = new NormalizingTransformer(env.Register(nameof(NormalizingTransformer)), ctx, input); 722private readonly NormalizingTransformer _parent; 727public Mapper(NormalizingTransformer parent, DataViewSchema schema)
Transforms\NormalizeUtils.cs (1)
70NormalizingTransformer.NormalizerModelParametersBase GetNormalizerModelParams();
Microsoft.ML.IntegrationTests (9)
IntrospectiveTraining.cs (2)
271var normalizer = model.LastTransformer; 275var config = normalizer.GetNormalizerModelParameters(0) as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<float>>;
ModelFiles.cs (7)
332var model = pipeline.Fit(data); 416Assert.IsType<NormalizingTransformer>(Assert.Single(compositeLoader.Transformer)); 428var model = estimator.Fit(data); 443Assert.IsType<NormalizingTransformer>(loadedWithSchema); 444Assert.IsType<NormalizingTransformer>(loadedWithLoader); 460var model = estimator.Fit(loader.Load(file)); 467Assert.True(loadedWithSchema is NormalizingTransformer);
Microsoft.ML.Samples (25)
Dynamic\Transforms\NormalizeBinning.cs (3)
7using static Microsoft.ML.Transforms.NormalizingTransformer; 45var normalizeTransform = normalize.Fit(data); 47var normalizeFixZeroTransform = normalizeFixZero.Fit(data);
Dynamic\Transforms\NormalizeBinningMulticolumn.cs (2)
7using static Microsoft.ML.Transforms.NormalizingTransformer; 46var normalizeTransform = normalize.Fit(data);
Dynamic\Transforms\NormalizeLogMeanVariance.cs (3)
7using static Microsoft.ML.Transforms.NormalizingTransformer; 43var normalizeTransform = normalize.Fit(data); 45var normalizeNoCdfTransform = normalizeNoCdf.Fit(data);
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (3)
7using static Microsoft.ML.Transforms.NormalizingTransformer; 36var normalizeTransform = normalize.Fit(data); 38var normalizeNoCdfTransform = normalizeNoCdf.Fit(data);
Dynamic\Transforms\NormalizeMeanVariance.cs (3)
7using static Microsoft.ML.Transforms.NormalizingTransformer; 42var normalizeTransform = normalize.Fit(data); 44var normalizeNoCdfTransform = normalizeNoCdf.Fit(data);
Dynamic\Transforms\NormalizeMinMax.cs (3)
7using static Microsoft.ML.Transforms.NormalizingTransformer; 41var normalizeTransform = normalize.Fit(data); 43var normalizeFixZeroTransform = normalizeFixZero.Fit(data);
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (3)
7using static Microsoft.ML.Transforms.NormalizingTransformer; 65var normalizeTransform = normalize.Fit(data); 67var normalizeFixZeroTransform = normalizeFixZero.Fit(data);
Dynamic\Transforms\NormalizeSupervisedBinning.cs (3)
7using static Microsoft.ML.Transforms.NormalizingTransformer; 59var normalizeTransform = normalize.Fit(data); 61var normalizeFixZeroTransform = normalizeFixZero.Fit(data);
Dynamic\WithOnFitDelegate.cs (2)
8using static Microsoft.ML.Transforms.NormalizingTransformer; 42NormalizingTransformer binningTransformer = null;
Microsoft.ML.Tests (84)
OnnxConversionTest.cs (1)
276private (IDataView, List<IEstimator<ITransformer>>, EstimatorChain<NormalizingTransformer>) GetEstimatorsForOnnxConversionTests()
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (2)
19using static Microsoft.ML.Transforms.NormalizingTransformer; 100NormalizingTransformer binningTransformer = null;
Transformers\NormalizerTests.cs (81)
22using static Microsoft.ML.Transforms.NormalizingTransformer; 139var transformer = est.Fit(data); 141var floatAffineData = transformer.Columns[0].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<float>; 145var floatAffineDataVec = transformer.Columns[1].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<float>>; 149var doubleAffineData = transformer.Columns[2].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<double>; 153var doubleAffineDataVec = transformer.Columns[3].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<double>>; 157var floatBinData = transformer.Columns[4].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<float>; 162var floatBinDataVec = transformer.Columns[5].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<float>>; 168var doubleBinData = transformer.Columns[6].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<double>; 173var doubleBinDataVec = transformer.Columns[7].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<double>>; 178var floatCdfMeanData = transformer.Columns[8].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<float>; 182var floatCdfMeanDataVec = transformer.Columns[9].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<float>>; 187var doubleCdfMeanData = transformer.Columns[10].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<double>; 191var doubleCdfMeanDataVec = transformer.Columns[11].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<double>>; 195var floatCdfLogMeanData = transformer.Columns[12].ModelParameters as NormalizingTransformer.CdfNormalizerModelParameters<float>; 200var floatCdfLogMeanDataVec = transformer.Columns[13].ModelParameters as NormalizingTransformer.CdfNormalizerModelParameters<ImmutableArray<float>>; 205var doubleCdfLogMeanData = transformer.Columns[14].ModelParameters as NormalizingTransformer.CdfNormalizerModelParameters<double>; 210var doubleCdfLogMeanDataVec = transformer.Columns[15].ModelParameters as NormalizingTransformer.CdfNormalizerModelParameters<ImmutableArray<double>>; 258var floatAffineModel = ((NormalizingTransformer)transformers[0]).Columns[0].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<float>; 262var floatAffineModelVec = ((NormalizingTransformer)transformers[0]).Columns[1].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<float>>; 266var doubleAffineModel = ((NormalizingTransformer)transformers[0]).Columns[2].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<double>; 270var doubleAffineModelVector = ((NormalizingTransformer)transformers[0]).Columns[3].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<double>>; 276var floatBinModel = ((NormalizingTransformer)transformers[1]).Columns[0].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<float>; 283var floatBinModelVector = ((NormalizingTransformer)transformers[1]).Columns[1].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<float>>; 293var doubleBinModel = ((NormalizingTransformer)transformers[1]).Columns[2].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<double>; 300var doubleBinModelVector = ((NormalizingTransformer)transformers[1]).Columns[3].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<double>>; 309var floatCdfMeanModel = ((NormalizingTransformer)transformers[2]).Columns[0].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<float>; 313var floatCdfMeanModelVector = ((NormalizingTransformer)transformers[2]).Columns[1].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<float>>; 319var doubleCdfMeanModel = ((NormalizingTransformer)transformers[2]).Columns[2].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<double>; 323var doubleCdfMeanModelVector = ((NormalizingTransformer)transformers[2]).Columns[3].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<double>>; 329var floatCdfLogMeanModel = ((NormalizingTransformer)transformers[3]).Columns[0].ModelParameters as NormalizingTransformer.CdfNormalizerModelParameters<float>; 334var floatCdfLogMeanModelVector = ((NormalizingTransformer)transformers[3]).Columns[1].ModelParameters as NormalizingTransformer.CdfNormalizerModelParameters<ImmutableArray<float>>; 343var doubleCdfLogMeanModel = ((NormalizingTransformer)transformers[3]).Columns[2].ModelParameters as NormalizingTransformer.CdfNormalizerModelParameters<double>; 348var doubleCdfLogMeanModelVector = ((NormalizingTransformer)transformers[3]).Columns[3].ModelParameters as NormalizingTransformer.CdfNormalizerModelParameters<ImmutableArray<double>>; 357floatBinModel = ((NormalizingTransformer)transformers[4]).Columns[0].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<float>; 364floatBinModelVector = ((NormalizingTransformer)transformers[4]).Columns[1].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<float>>; 374doubleBinModel = ((NormalizingTransformer)transformers[4]).Columns[2].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<double>; 381doubleBinModelVector = ((NormalizingTransformer)transformers[4]).Columns[3].ModelParameters as NormalizingTransformer.BinNormalizerModelParameters<ImmutableArray<double>>; 395var robustScalerTransformer = robustScalerEstimator.Fit(data); 397floatAffineModel = ((NormalizingTransformer)robustScalerTransformer).Columns[0].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<float>; 401floatAffineModelVec = ((NormalizingTransformer)robustScalerTransformer).Columns[1].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<float>>; 413doubleAffineModel = ((NormalizingTransformer)robustScalerTransformer).Columns[2].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<double>; 417doubleAffineModelVector = ((NormalizingTransformer)robustScalerTransformer).Columns[3].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<double>>; 437floatAffineModel = ((NormalizingTransformer)robustScalerTransformer).Columns[0].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<float>; 441floatAffineModelVec = ((NormalizingTransformer)robustScalerTransformer).Columns[1].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<float>>; 450doubleAffineModel = ((NormalizingTransformer)robustScalerTransformer).Columns[2].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<double>; 454doubleAffineModelVector = ((NormalizingTransformer)robustScalerTransformer).Columns[3].ModelParameters as NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<double>>; 643var t = est.Fit(data); 914var normalizeTransform = normalize.Fit(data); 916var normalizeNoCdfTransform = normalizeNoCdf.Fit(data); 955var normalizeTransform = normalize.Fit(data); 957var normalizeNoCdfTransform = normalizeNoCdf.Fit(data); 1055var model = ML.Transforms.NormalizeMinMax("output", "input").Fit(data);