1 write to Scale
Microsoft.ML.Data (1)
Transforms\NormalizeColumn.cs (1)
489Scale = scale;
25 references to Scale
Microsoft.ML.Data (25)
Transforms\NormalizeColumn.cs (5)
487Host.Assert(Offset == null || Offset.Length == Scale.Length); 498Host.Check(typeSrc.GetVectorSize() == Scale.Length); 507var src = new VBuffer<TFloat>(Scale.Length, Scale); 519=> new NormalizingTransformer.AffineNormalizerModelParameters<ImmutableArray<TFloat>>(ImmutableArray.Create(Scale), ImmutableArray.Create(Offset));
Transforms\NormalizeColumnDbl.cs (10)
754AffineNormSerializationUtils.SaveModel(ctx, Scale.Length, null, Scale, Offset, saveText: true); 761var cellName = ctx.DeclareCell("AffNormScale", arrType, new JArray(Scale)); 779node.AddAttribute("scale", Scale); 793Contracts.Check(dst.Length == Scale.Length); 794FillValues(in dst, bldr, Scale); 803Contracts.Check(dst.Length == Scale.Length); 804FillValues(in dst, bldr, Scale, Offset); 813Contracts.Check(dst.Length == Scale.Length); 814FillValues(in dst, bldr, Scale, Offset, IndicesNonZeroOffset);
Transforms\NormalizeColumnSng.cs (10)
911AffineNormSerializationUtils.SaveModel(ctx, Scale.Length, null, Scale, Offset, saveText: true); 918var cellName = ctx.DeclareCell("AffNormScale", arrType, new JArray(Scale)); 936node.AddAttribute("scale", Scale); 950Contracts.Check(dst.Length == Scale.Length); 951FillValues(in dst, bldr, Scale); 960Contracts.Check(dst.Length == Scale.Length); 961FillValues(in dst, bldr, Scale, Offset); 970Contracts.Check(dst.Length == Scale.Length); 971FillValues(in dst, bldr, Scale, Offset, IndicesNonZeroOffset);