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