2 writes to _weights
Microsoft.ML.TimeSeries (2)
MovingAverageTransform.cs (2)
75
_weights
= string.IsNullOrWhiteSpace(args.Weights) ? null : args.Weights.Split(',').Select(c => Convert.ToSingle(c)).ToArray();
90
_weights
= ctx.Reader.ReadFloatArray();
9 references to _weights
Microsoft.ML.TimeSeries (9)
MovingAverageTransform.cs (9)
76
if (
_weights
!= null &&
_weights
.Length != args.WindowSize)
77
throw Host.ExceptUserArg(nameof(args.Weights), string.Format("{0} weights are provided, but {1} are expected (or none)'", Utils.Size(
_weights
), args.WindowSize));
93
Host.CheckDecode(
_weights
== null || Utils.Size(
_weights
) == WindowSize + 1 - _lag);
111
Host.Assert(
_weights
== null || Utils.Size(
_weights
) == WindowSize + 1 - _lag);
112
ctx.Writer.WriteSingleArray(
_weights
);
287
_weights = ((MovingAverageTransform)ParentTransform).
_weights
;