45 references to Size
Microsoft.ML.Core (8)
CommandLine\CmdParser.cs (6)
1524
for (int i = 0; i < Utils.
Size
(values);)
1542
if (Utils.
Size
(values) > 0)
1570
for (int i = 0; i < Utils.
Size
(values);)
1606
for (int i = 0; i < Utils.
Size
(values);)
1636
var res = Array.CreateInstance(ItemType, Utils.
Size
(values));
1646
var res = Array.CreateInstance(ItemType, Utils.
Size
(values));
Data\RoleMappedSchema.cs (1)
316
Contracts.Assert(Utils.
Size
(kvp.Value) > 0);
Utilities\VBufferUtils.cs (1)
1353
Contracts.CheckParam(0 <= length && length <= Utils.
Size
(src), nameof(length));
Microsoft.ML.Data (17)
DataLoadSave\Binary\Codecs.cs (3)
693
Contracts.Assert(Utils.
Size
(_offsets) == Utils.
Size
(_ticks));
902
long structureLength = sizeof(int) * (2 + (long)Utils.
Size
(_lengths) + _counts.Count + 1 + _indices.Count);
DataLoadSave\Text\TextLoader.cs (2)
738
if (Utils.
Size
(lines) > 0)
896
if ((parent.HasHeader || headerFile != null) && Utils.
Size
(lines) > 0)
DataView\CacheDataView.cs (3)
157
prefetch[ip++] -= Utils.
Size
(columnsToDrop);
159
inputToSubset[c] = c - Utils.
Size
(columnsToDrop);
164
if (Utils.
Size
(columnsToDrop) == 0)
Evaluators\EvaluatorBase.cs (1)
307
if (Utils.
Size
(warnings) > 0)
Evaluators\EvaluatorUtils.cs (1)
1065
if (Utils.
Size
(nonAveragedCols) > 0)
Transforms\Hashing.cs (1)
225
if (Utils.
Size
(sourceColumnsForInvertHash) > 0)
Transforms\MetadataDispatcher.cs (1)
453
if (Utils.
Size
(getters) > 0)
Transforms\NormalizeColumnDbl.cs (2)
680
host.Assert(Utils.
Size
(nz) == 0 || offsets != null);
745
host.Assert(Utils.
Size
(nz) == 0 || offsets != null);
Transforms\NormalizeColumnSng.cs (2)
838
host.Assert(Utils.
Size
(nz) == 0 || offsets != null);
902
host.Assert(Utils.
Size
(nz) == 0 || offsets != null);
Transforms\RowShufflingTransformer.cs (1)
199
if (Utils.
Size
(columnsToDrop) == 0)
Microsoft.ML.Ensemble (1)
Trainer\EnsembleTrainerBase.cs (1)
185
int modelSize = Utils.
Size
(models);
Microsoft.ML.EntryPoints (2)
FeatureCombiner.cs (2)
92
if (Utils.
Size
(ktv) > 0)
147
if (Utils.
Size
(cvt) > 0)
Microsoft.ML.FastTree (2)
FastTree.cs (1)
1947
ch.Assert(Utils.
Size
(features) > 1);
GamModelParameters.cs (1)
822
DocCounts = context._binDocsList[internalIndex].Select(Utils.
Size
);
Microsoft.ML.ResultProcessor (2)
ResultProcessor.cs (2)
389
if (Utils.
Size
(lines) == 0)
699
if (!TryParseFileToLines(filename, out lines, null) || Utils.
Size
(lines) == 0)
Microsoft.ML.Tests (3)
ExpressionLanguageTests\ExpressionLanguageTests.cs (3)
175
if (Utils.
Size
(errors) > 0)
182
if (Utils.
Size
(errors) > 0)
192
if (Utils.
Size
(errors) > 0)
Microsoft.ML.TimeSeries (2)
PolynomialUtils.cs (2)
195
Contracts.Assert(uIndex + uLen <= Utils.
Size
(Coefficients));
198
Contracts.Assert(vIndex + vLen <= Utils.
Size
(Coefficients));
Microsoft.ML.Transforms (8)
Expression\LambdaBinder.cs (2)
95
get { return Utils.
Size
(_errors) > 0; }
1552
_host.Assert(Utils.
Size
(candidates) >= 2);
Expression\LambdaParser.cs (2)
32
if (Utils.
Size
(lineMap) == 0)
196
if (Utils.
Size
(_errors) > 0 && _errors[_errors.Count - 1].Token == err.Token)
ExpressionTransformer.cs (3)
103
if (Utils.
Size
(errors) > 0)
109
if (Utils.
Size
(errors) > 0)
279
if (Utils.
Size
(errors) > 0)
MissingValueReplacing.cs (1)
324
if (Utils.
Size
(columnsToImpute) == 0)