56 references to Count
Microsoft.ML.Core (1)
Utilities\FixedSizeQueue.cs (1)
144
for (int index = 0; index <
Count
; index++)
Microsoft.ML.TimeSeries (48)
AdaptiveSingularSpectrumSequenceModeler.cs (8)
192
public Single LastValue { get { return _buffer.
Count
> 0 ? _buffer[_buffer.
Count
- 1] : Single.NaN; } }
1125
if (_buffer.
Count
== 0)
1131
int len = _buffer.
Count
;
1169
_host.CheckParam(data.
Count
>= _trainSize, nameof(data), "The input series for training does not have enough points for training.");
1175
for (i = 0, count = 0; count < _trainSize && i < data.
Count
; ++i)
1378
if (_buffer.
Count
> 0) // Use the buffer to set the state when there are data points pushed into the buffer using the Consume() method
1380
int len = _buffer.
Count
;
MovingAverageTransform.cs (10)
128
n = others.
Count
;
131
n = others.
Count
- lag + 1;
140
int nb = others.
Count
+ 1 - nbNanValues;
157
n = others.
Count
;
160
n = others.
Count
- lag + 1;
206
var newValue = lag == 0 ? input : others[others.
Count
- lag];
233
int nb = (lag == 0 ? others.
Count
+ 1 : others.
Count
- lag + 1) - nbNanValues;
238
int nb = lag == 0 ? others.
Count
+ 1 - nbNanValues : others.
Count
+ 1 - nbNanValues - lag;
PercentileThresholdTransform.cs (1)
112
var n = others.
Count
;
SequentialAnomalyDetectionTransformBase.cs (2)
478
int n = RawScoreBuffer.
Count
;
601
if (LogMartingaleUpdateBuffer.
Count
== 0)
SequentialTransformBase.cs (5)
155
if (InitialWindowedBuffer.
Count
< InitialWindowSize)
160
if (InitialWindowedBuffer.
Count
>= InitialWindowSize - WindowSize)
163
if (InitialWindowedBuffer.
Count
== InitialWindowSize)
176
if (InitialWindowedBuffer.
Count
< InitialWindowSize)
181
if (InitialWindowedBuffer.
Count
== InitialWindowSize)
SequentialTransformerBase.cs (10)
154
if (InitialWindowedBuffer.
Count
< InitialWindowSize)
157
if (InitialWindowedBuffer.
Count
>= InitialWindowSize - WindowSize && buffer)
175
if (InitialWindowedBuffer.
Count
< InitialWindowSize)
179
if (InitialWindowedBuffer.
Count
== InitialWindowSize)
194
if (InitialWindowedBuffer.
Count
< InitialWindowSize)
198
if (InitialWindowedBuffer.
Count
== InitialWindowSize)
211
if (InitialWindowedBuffer.
Count
< InitialWindowSize)
215
if (InitialWindowedBuffer.
Count
== InitialWindowSize)
230
if (InitialWindowedBuffer.
Count
< InitialWindowSize)
234
if (InitialWindowedBuffer.
Count
== InitialWindowSize)
SrCnnAnomalyDetectionBase.cs (6)
229
var score = CalculateScore(ifftMagList[data.
Count
- 1], filteredIfftMagList[data.
Count
- 1]);
238
var mag = ifftMagList[data.
Count
- 1];
245
for (int i = data.
Count
- Parent.LookaheadWindowSize - 2; i < data.
Count
- 1; ++i)
251
for (int i = 0; i < data.
Count
; ++i)
TimeSeriesUtils.cs (6)
18
Contracts.Assert(queue.
Count
<= queue.Capacity);
21
writer.Write(queue.
Count
);
22
for (int index = 0; index < queue.
Count
; index++)
47
Contracts.Assert(queue.
Count
<= queue.Capacity);
50
writer.Write(queue.
Count
);
51
for (int index = 0; index < queue.
Count
; index++)
Microsoft.ML.Transforms (7)
Text\NgramUtils.cs (7)
124
while (_queue.
Count
> 0)
141
Contracts.Assert(_queue.
Count
> 0);
153
if (_queue.
Count
== 1 || !more)
159
for (int i = 1; i < _queue.
Count
; i++)
183
Contracts.Assert(i + skips < _queue.
Count
);
188
for (int k = skips; k <= _skipLength && k + i < _queue.
Count
; k++)
198
if (!more || (i + 1 < _ngramLength && i + k + 1 < _queue.
Count
&& !ProcessSkipNgrams(icol, i + 1, k)))