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)
76if (_weights != null && _weights.Length != args.WindowSize) 77throw Host.ExceptUserArg(nameof(args.Weights), string.Format("{0} weights are provided, but {1} are expected (or none)'", Utils.Size(_weights), args.WindowSize)); 93Host.CheckDecode(_weights == null || Utils.Size(_weights) == WindowSize + 1 - _lag); 111Host.Assert(_weights == null || Utils.Size(_weights) == WindowSize + 1 - _lag); 112ctx.Writer.WriteSingleArray(_weights); 287_weights = ((MovingAverageTransform)ParentTransform)._weights;