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