1 write to Kind
Microsoft.ML.Core (1)
Data\IEstimator.cs (1)
71Kind = vecKind;
87 references to Kind
Microsoft.ML.Core (10)
Data\AnnotationUtils.cs (5)
313&& metaCol.Kind == SchemaShape.Column.VectorKind.Vector 328&& metaCol.Kind == SchemaShape.Column.VectorKind.Scalar && !metaCol.IsKey 342return col.Kind == SchemaShape.Column.VectorKind.Vector 344&& metaCol.Kind == SchemaShape.Column.VectorKind.Vector && !metaCol.IsKey 447metaCol.Kind == SchemaShape.Column.VectorKind.Vector)
Data\IEstimator.cs (5)
82/// - The <see cref="Name"/>, <see cref="Kind"/>, <see cref="ItemType"/>, <see cref="IsKey"/> fields match. 92if (Kind != source.Kind) 114if (Kind == VectorKind.Vector) 116else if (Kind == VectorKind.VariableVector)
Microsoft.ML.Data (27)
DataLoadSave\FakeSchema.cs (2)
52if (column.Kind == SchemaShape.Column.VectorKind.VariableVector) 54else if (column.Kind == SchemaShape.Column.VectorKind.Vector)
Prediction\CalibratorCatalog.cs (3)
112setIdCol.Kind == scalar && setIdCol.IsKey && setIdCol.ItemType == NumberDataViewType.UInt32 && 114kindCol.Kind == scalar && kindCol.ItemType is TextDataViewType && 116valueKindCol.Kind == scalar && valueKindCol.ItemType is TextDataViewType)
Transforms\ColumnConcatenatingEstimator.cs (3)
82return mcol.Kind == SchemaShape.Column.VectorKind.Vector 122varVector |= col.Kind == SchemaShape.Column.VectorKind.VariableVector; 125hasSlotNames |= col.Kind == SchemaShape.Column.VectorKind.Scalar || col.HasSlotNames();
Transforms\ColumnCopying.cs (1)
81var col = new SchemaShape.Column(outputColumnName, originalColumn.Kind, originalColumn.ItemType, originalColumn.IsKey, originalColumn.Annotations);
Transforms\FeatureContributionCalculationTransformer.cs (2)
345if (col.ItemType != NumberDataViewType.Single || col.Kind != SchemaShape.Column.VectorKind.Vector) 356DefaultColumnNames.FeatureContributions, col.Kind, col.ItemType, false, new SchemaShape(featContributionMetadata));
Transforms\Hashing.cs (1)
1968result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, colInfo.Combine ? SchemaShape.Column.VectorKind.Scalar : col.Kind,
Transforms\KeyToValue.cs (1)
652result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName, col.Kind, keyMetaCol.ItemType, keyMetaCol.IsKey, metadata);
Transforms\KeyToVector.cs (5)
831if (((colInfo.OutputCountVector && col.IsKey) || col.Kind != SchemaShape.Column.VectorKind.VariableVector) && keyMeta.ItemType is TextDataViewType) 833if (!colInfo.OutputCountVector && (col.Kind == SchemaShape.Column.VectorKind.Scalar || col.Kind == SchemaShape.Column.VectorKind.Vector)) 835if (!colInfo.OutputCountVector || (col.Kind == SchemaShape.Column.VectorKind.Scalar)) 839col.Kind == SchemaShape.Column.VectorKind.VariableVector && !colInfo.OutputCountVector ? SchemaShape.Column.VectorKind.VariableVector : SchemaShape.Column.VectorKind.Vector,
Transforms\Normalizer.cs (2)
353if (col.Kind == SchemaShape.Column.VectorKind.VariableVector) 365result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, col.Kind, col.ItemType, col.IsKey, meta);
Transforms\TypeConverting.cs (2)
638if (col.Kind == SchemaShape.Column.VectorKind.Vector) 646result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, col.Kind, newType, false, col.Annotations);
Transforms\ValueMapping.cs (3)
117if (originalColumn.Kind == SchemaShape.Column.VectorKind.VariableVector || 118originalColumn.Kind == SchemaShape.Column.VectorKind.Vector) 125vectorKind = originalColumn.Kind;
Transforms\ValueToKeyMappingEstimator.cs (2)
193if (!col.IsKey || !col.Annotations.TryFindColumn(AnnotationUtils.Kinds.KeyValues, out var kv) || kv.Kind != SchemaShape.Column.VectorKind.Vector) 204result[colInfo.OutputColumnName] = new SchemaShape.Column(colInfo.OutputColumnName, col.Kind, NumberDataViewType.UInt32, true, metadata);
Microsoft.ML.FastTree (1)
FastTreeRanking.cs (1)
127if (labelCol.Kind != SchemaShape.Column.VectorKind.Scalar)
Microsoft.ML.ImageAnalytics (6)
ImageGrayscale.cs (2)
254if (!(col.ItemType is ImageDataViewType) || col.Kind != SchemaShape.Column.VectorKind.Scalar) 257result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName, col.Kind, col.ItemType, col.IsKey, col.Annotations);
ImageLoader.cs (1)
445if (!(col.ItemType is TextDataViewType) || col.Kind != SchemaShape.Column.VectorKind.Scalar)
ImagePixelExtractor.cs (1)
817if (!(col.ItemType is ImageDataViewType) || col.Kind != SchemaShape.Column.VectorKind.Scalar)
ImageResizer.cs (1)
517if (!(col.ItemType is ImageDataViewType) || col.Kind != SchemaShape.Column.VectorKind.Scalar)
VectorToImageTransform.cs (1)
751if (col.Kind != SchemaShape.Column.VectorKind.Vector || (col.ItemType != NumberDataViewType.Single && col.ItemType != NumberDataViewType.Double && col.ItemType != NumberDataViewType.Byte))
Microsoft.ML.LightGbm (1)
LightGbmRankingTrainer.cs (1)
275if (labelCol.Kind != SchemaShape.Column.VectorKind.Scalar)
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
901result[colPair.Name] = new SchemaShape.Column(colPair.Name, col.Kind, col.ItemType, col.IsKey, null);
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
824if (col.Kind != SchemaShape.Column.VectorKind.Vector || !col.ItemType.Equals(NumberDataViewType.Single))
Microsoft.ML.Tests (2)
Transformers\ValueMappingTests.cs (2)
111Assert.Equal(SchemaShape.Column.VectorKind.VariableVector, originalColumn.Kind); 193Assert.Equal(SchemaShape.Column.VectorKind.VariableVector, originalColumn.Kind);
Microsoft.ML.TorchSharp (6)
AutoFormerV2\ObjectDetectionTrainer.cs (2)
482if (labelCol.Kind != SchemaShape.Column.VectorKind.VariableVector || labelCol.ItemType.RawType != typeof(UInt32)) 488if (boundingBoxCol.Kind != SchemaShape.Column.VectorKind.VariableVector || boundingBoxCol.ItemType.RawType != typeof(Single))
Roberta\QATrainer.cs (4)
533if (contextCol.Kind != SchemaShape.Column.VectorKind.Scalar || contextCol.ItemType.RawType != typeof(ReadOnlyMemory<char>)) 539if (questionCol.Kind != SchemaShape.Column.VectorKind.Scalar || questionCol.ItemType.RawType != typeof(ReadOnlyMemory<char>)) 545if (answerCol.Kind != SchemaShape.Column.VectorKind.Scalar || answerCol.ItemType.RawType != typeof(ReadOnlyMemory<char>)) 551if (answerIndexCol.Kind != SchemaShape.Column.VectorKind.Scalar || answerIndexCol.ItemType.RawType != typeof(int))
Microsoft.ML.Transforms (31)
CountFeatureSelection.cs (2)
174if (col.Kind == SchemaShape.Column.VectorKind.VariableVector) 183result[colPair.Name] = new SchemaShape.Column(colPair.Name, col.Kind, col.ItemType, false, new SchemaShape(metadata.ToArray()));
CustomMappingTransformer.cs (3)
268|| vecKind == SchemaShape.Column.VectorKind.Scalar && column.Kind != SchemaShape.Column.VectorKind.Scalar 269|| vecKind == SchemaShape.Column.VectorKind.Vector && column.Kind != SchemaShape.Column.VectorKind.Vector 270|| vecKind == SchemaShape.Column.VectorKind.VariableVector && column.Kind == SchemaShape.Column.VectorKind.Scalar)
Dracula\CountTableTransformer.cs (2)
332if (col.Kind == SchemaShape.Column.VectorKind.VariableVector) 340if (col.Kind == SchemaShape.Column.VectorKind.Scalar)
ExpressionTransformer.cs (2)
122if (col.Kind != SchemaShape.Column.VectorKind.Scalar) 197outputVectorKind = vectorCol.Kind;
GcnTransform.cs (2)
899if (col.Kind != SchemaShape.Column.VectorKind.Vector) 924result[colPair.Name] = new SchemaShape.Column(colPair.Name, col.Kind, col.ItemType, false, new SchemaShape(metadata.ToArray()));
KeyToVectorMapping.cs (3)
480if (col.Kind != SchemaShape.Column.VectorKind.VariableVector && keyMeta.ItemType is TextDataViewType) 482if (col.Kind == SchemaShape.Column.VectorKind.Scalar) 485col.Kind == SchemaShape.Column.VectorKind.VariableVector ? SchemaShape.Column.VectorKind.VariableVector : SchemaShape.Column.VectorKind.Vector,
MissingValueDroppingTransformer.cs (1)
47if (originalColumn.Kind == SchemaShape.Column.VectorKind.Scalar)
MissingValueIndicatorTransformer.cs (1)
549result[colPair.outputColumnName] = new SchemaShape.Column(colPair.outputColumnName, col.Kind, type, false, new SchemaShape(metadata.ToArray()));
MissingValueReplacing.cs (1)
1053result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, col.Kind, type, false, new SchemaShape(metadata.ToArray()));
MutualInformationFeatureSelection.cs (2)
241if (col.Kind == SchemaShape.Column.VectorKind.VariableVector) 250result[colPair.outputColumnName] = new SchemaShape.Column(colPair.outputColumnName, col.Kind, col.ItemType, false, new SchemaShape(metadata.ToArray()));
RandomFourierFeaturizing.cs (1)
730if (col.ItemType.RawType != typeof(float) || col.Kind != SchemaShape.Column.VectorKind.Vector)
StatefulCustomMappingTransformer.cs (3)
401|| vecKind == SchemaShape.Column.VectorKind.Scalar && column.Kind != SchemaShape.Column.VectorKind.Scalar 402|| vecKind == SchemaShape.Column.VectorKind.Vector && column.Kind != SchemaShape.Column.VectorKind.Vector 403|| vecKind == SchemaShape.Column.VectorKind.VariableVector && column.Kind == SchemaShape.Column.VectorKind.Scalar)
Text\LdaTransform.cs (1)
1328if (col.ItemType.RawType != typeof(float) || col.Kind == SchemaShape.Column.VectorKind.Scalar)
Text\NgramHashingTransformer.cs (1)
1196if (col.Kind == SchemaShape.Column.VectorKind.Scalar)
Text\NgramTransform.cs (1)
972if (col.Kind == SchemaShape.Column.VectorKind.Scalar)
Text\StopWordsRemovingTransformer.cs (2)
677if (col.Kind == SchemaShape.Column.VectorKind.Scalar || !(col.ItemType is TextDataViewType)) 1245if (col.Kind == SchemaShape.Column.VectorKind.Scalar || !(col.ItemType is TextDataViewType))
Text\TextNormalizing.cs (1)
588result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName, col.Kind == SchemaShape.Column.VectorKind.Scalar ? SchemaShape.Column.VectorKind.Scalar : SchemaShape.Column.VectorKind.VariableVector, col.ItemType, false);
Text\WordEmbeddingsExtractor.cs (2)
938if (!(col.ItemType is TextDataViewType) || (col.Kind != SchemaShape.Column.VectorKind.VariableVector && col.Kind != SchemaShape.Column.VectorKind.Vector))
Microsoft.ML.Vision (1)
DnnRetrainTransform.cs (1)
1263if (!(col.Kind == SchemaShape.Column.VectorKind.Vector))