5 implementations of Count
Microsoft.ML.AutoML (1)
ColumnInference\TextFileSample.cs (1)
39
public int
Count
Microsoft.ML.Data (3)
DataLoadSave\MultiFileSource.cs (2)
65
public int
Count
111
public int
Count
Utilities\ModelFileUtils.cs (1)
375
public int
Count
{ get { return 1; } }
Microsoft.ML.TestFramework (1)
BytesStreamSource.cs (1)
19
public int
Count
=> 1;
18 references to Count
Microsoft.ML.Data (8)
DataLoadSave\Binary\BinaryLoader.cs (2)
894
if (files.
Count
== 0)
929
Contracts.CheckParam(files.
Count
== 1, nameof(files), "binary loader must be created with one file");
DataLoadSave\Text\TextLoaderCursor.cs (3)
244
if (files.
Count
== 0)
424
Contracts.Assert(files.
Count
>= 0);
696
for (int ifile = 0; ifile < _files.
Count
; ifile++)
DataLoadSave\Transpose\TransposeLoader.cs (3)
401
_host.Check(file.
Count
== 1, "Transposed loader accepts a single file only");
430
_host.Check(file.
Count
== 1, "Transposed loader accepts a single file only");
496
if (files.
Count
== 0)
Microsoft.ML.Parquet (4)
ParquetLoader.cs (2)
203
if (files.
Count
> 0)
374
Contracts.CheckParam(files.
Count
== 1, nameof(files), "Parquet loader must be created with one file");
PartitionedFileLoader.cs (2)
652
return Enumerable.Range(0, _parent._files.
Count
);
656
return Utils.GetRandomPermutation(rand, _parent._files.
Count
);
Microsoft.ML.Transforms (6)
SvmLight\SvmLightLoader.cs (6)
419
if (_files.
Count
== 0)
456
if (_parent._files.
Count
== 0)
510
Ch.Assert(-1 <= _fileIdx && _fileIdx < _parent._files.
Count
);
512
var count = _parent._files.
Count
;
567
if (dataSample == null || dataSample.
Count
== 0)
577
if (dataSample == null || dataSample.
Count
== 0)