74 references to IsKnownSize
Microsoft.ML.Core (1)
Data\IEstimator.cs (1)
152
if (vectorType.
IsKnownSize
)
Microsoft.ML.Data (47)
DataLoadSave\Binary\Codecs.cs (1)
987
if (codec._type.
IsKnownSize
)
DataLoadSave\Text\TextSaver.cs (4)
166
if (type.
IsKnownSize
420
if (!vectorType.
IsKnownSize
)
487
if (type is VectorDataViewType vectorType && !vectorType.
IsKnownSize
&& i != pipes.Length - 1)
512
if (vectorType?.
IsKnownSize
== true)
DataLoadSave\Transpose\TransposeSaver.cs (1)
69
if (type is VectorDataViewType vectorType && !vectorType.
IsKnownSize
)
DataView\Transposer.cs (1)
142
if (type is VectorDataViewType vectorType && !vectorType.
IsKnownSize
)
Evaluators\ClusteringEvaluator.cs (3)
108
if (!(type is VectorDataViewType vectorType) || !vectorType.
IsKnownSize
|| vectorType.ItemType != NumberDataViewType.Single)
118
if (!(t is VectorDataViewType vectorType) || !vectorType.
IsKnownSize
|| vectorType.ItemType != NumberDataViewType.Single)
756
if (!(type is VectorDataViewType vectorType) || !vectorType.
IsKnownSize
|| vectorType.ItemType != NumberDataViewType.Single)
Evaluators\EvaluatorUtils.cs (4)
310
&& vectorType.
IsKnownSize
1280
else if (type is VectorDataViewType vectorType && vectorType.
IsKnownSize
&& vectorType.ItemType == NumberDataViewType.Double)
1394
host.Assert(type != null && type.
IsKnownSize
&& type.ItemType is TextDataViewType);
1479
Contracts.Check(type != null && type.
IsKnownSize
&& type.ItemType == NumberDataViewType.Double);
Evaluators\MulticlassClassificationEvaluator.cs (1)
103
if (mdType != null && mdType.
IsKnownSize
&& mdType.ItemType is TextDataViewType)
Evaluators\MultiOutputRegressionEvaluator.cs (5)
62
if (t == null || !t.
IsKnownSize
|| t.ItemType != NumberDataViewType.Single)
66
if (t == null || !t.
IsKnownSize
|| (t.ItemType != NumberDataViewType.Single && t.ItemType != NumberDataViewType.Double))
550
if (t == null || !t.
IsKnownSize
|| (t.ItemType != NumberDataViewType.Single && t.ItemType != NumberDataViewType.Double))
559
if (t == null || !t.
IsKnownSize
|| t.ItemType != NumberDataViewType.Single)
708
if (type != null && type.
IsKnownSize
&& type.ItemType == NumberDataViewType.Double)
Evaluators\QuantileRegressionEvaluator.cs (2)
48
Host.Check(type != null && type.
IsKnownSize
&& type.ItemType is TextDataViewType, "Quantile regression score column must have slot names");
517
if (type is VectorDataViewType vectorType && vectorType.
IsKnownSize
&& vectorType.ItemType == NumberDataViewType.Double)
Scorers\ClusteringScorer.cs (1)
143
&& vectorType.
IsKnownSize
Scorers\MulticlassClassificationScorer.cs (1)
606
scoreType is VectorDataViewType vectorType && vectorType.
IsKnownSize
&& vectorType.ItemType == NumberDataViewType.Single;
Scorers\SchemaBindablePredictorWrapper.cs (1)
530
&& vectorType.
IsKnownSize
Training\TrainerUtils.cs (2)
74
Contracts.Assert(colType != null && colType.
IsKnownSize
);
194
&& vectorType.
IsKnownSize
Transforms\ColumnConcatenatingTransformer.cs (3)
645
Contracts.Assert(vectorTypeSrc.
IsKnownSize
);
811
if (!OutputType.
IsKnownSize
) // Do not attempt variable length.
915
if ((!outColType.
IsKnownSize
) || (!(outColType.GetItemType() is NumberDataViewType)))
Transforms\KeyToVector.cs (3)
316
if (typeNames == null || !typeNames.
IsKnownSize
|| !(typeNames.ItemType is TextDataViewType) ||
333
if (typeNames != null && _types[iinfo].
IsKnownSize
)
368
Host.Assert(typeSrc != null && typeSrc.
IsKnownSize
);
Transforms\NormalizeColumn.cs (6)
203
if (!vectorType.
IsKnownSize
)
990
if (srcType is VectorDataViewType vectorType && vectorType.
IsKnownSize
&& vectorType.ItemType is NumberDataViewType)
1029
if (srcType is VectorDataViewType vectorType && vectorType.
IsKnownSize
&& vectorType.ItemType is NumberDataViewType)
1070
if (srcType is VectorDataViewType vectorType && vectorType.
IsKnownSize
&& vectorType.ItemType is NumberDataViewType)
1110
if (srcType is VectorDataViewType vectorType && vectorType.
IsKnownSize
&& vectorType.ItemType is NumberDataViewType)
1221
if (srcType is VectorDataViewType vectorType && vectorType.
IsKnownSize
&& vectorType.ItemType is NumberDataViewType)
Transforms\Normalizer.cs (3)
480
Contracts.Assert(vectorType == null || vectorType.
IsKnownSize
);
588
env.Assert(!(srcTypes[i] is VectorDataViewType vectorType) || vectorType.
IsKnownSize
);
707
if (vectorType != null && !vectorType.
IsKnownSize
)
Transforms\SlotsDroppingTransformer.cs (4)
535
else if (!vectorType.
IsKnownSize
)
542
Host.Assert(vectorType.
IsKnownSize
);
795
if (typeDst is VectorDataViewType dstVector && dstVector.
IsKnownSize
&& dstVector.Size == srcValueCount)
837
if (_srcTypes[iinfo] is VectorDataViewType vectorType && vectorType.
IsKnownSize
)
Transforms\TransformBase.cs (1)
964
&& vectorType.
IsKnownSize
Microsoft.ML.Ensemble (1)
PipelineEnsemble.cs (1)
609
if (mdType == null || !mdType.
IsKnownSize
)
Microsoft.ML.EntryPoints (1)
FeatureCombiner.cs (1)
124
if (type == null || !type.
IsKnownSize
|| !(type.ItemType is TextDataViewType))
Microsoft.ML.Mkl.Components (3)
OlsLinearRegression.cs (1)
167
if (typeFeat == null || !typeFeat.
IsKnownSize
)
VectorWhitening.cs (2)
224
if ((vectorType != null && !vectorType.
IsKnownSize
&& vectorType.Dimensions.Length > 1)
311
ch.Assert(vectorType != null && vectorType.
IsKnownSize
);
Microsoft.ML.OnnxTransformer (1)
OnnxTransform.cs (1)
886
var isKnownSize = (input.Schema[colIndex].Type as VectorDataViewType).
IsKnownSize
;
Microsoft.ML.Samples (3)
Dynamic\DataOperations\LoadFromEnumerable.cs (3)
43
$"{featureColumn.
IsKnownSize
}.\nSize: {featureColumn.Size}");
67
$"{featureColumn.
IsKnownSize
}.\nSize: {featureColumn.Size}");
87
$"{featureColumn.
IsKnownSize
}.\nSize: {featureColumn.Size}");
Microsoft.ML.StandardTrainers (2)
FactorizationMachine\FactorizationMachineTrainer.cs (1)
424
!vectorType.
IsKnownSize
||
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (1)
332
if (vectorType == null || !vectorType.
IsKnownSize
|| vectorType.ItemType != NumberDataViewType.Single)
Microsoft.ML.Transforms (15)
CountFeatureSelection.cs (2)
313
if (colType is VectorDataViewType vectorType && !vectorType.
IsKnownSize
)
409
Contracts.Assert(type.
IsKnownSize
);
GcnTransform.cs (1)
892
if (!(type is VectorDataViewType vectorType && vectorType.
IsKnownSize
))
KeyToVectorMapping.cs (3)
229
if (typeNames == null || !typeNames.
IsKnownSize
|| !(typeNames.ItemType is TextDataViewType) ||
256
if (typeNames != null && _types[iinfo].
IsKnownSize
)
282
Host.Assert(_types[iinfo].
IsKnownSize
);
MissingValueIndicatorTransform.cs (2)
149
if (!vectorType.
IsKnownSize
||
195
Host.Assert(srcVectorType.
IsKnownSize
);
MissingValueReplacing.cs (2)
336
if (types[iinfo] is VectorDataViewType vectorType && !vectorType.
IsKnownSize
&& bySlot)
582
if (!vectorType.
IsKnownSize
)
MissingValueReplacingUtils.cs (1)
238
Ch.Assert(type.
IsKnownSize
);
MutualInformationFeatureSelection.cs (1)
467
if (colType is VectorDataViewType vectorType && !vectorType.
IsKnownSize
)
RandomFourierFeaturizing.cs (1)
231
if (type is VectorDataViewType vectorType && vectorType.
IsKnownSize
&& vectorType.ItemType == NumberDataViewType.Single)
Text\LdaTransform.cs (2)
580
if (srcType == null || !srcType.
IsKnownSize
|| !(srcType.ItemType is NumberDataViewType))
842
if (srcColType == null || !srcColType.
IsKnownSize
|| !(srcColType.ItemType is NumberDataViewType))