310 references to VectorKind
Microsoft.ML.Core (21)
Data\AnnotationUtils.cs (11)
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
428
cols.Add(new SchemaShape.Column(Kinds.ScoreColumnSetId, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.UInt32, true));
429
cols.Add(new SchemaShape.Column(Kinds.ScoreColumnKind, SchemaShape.Column.
VectorKind
.Scalar, TextDataViewType.Instance, false));
430
cols.Add(new SchemaShape.Column(Kinds.ScoreValueKind, SchemaShape.Column.
VectorKind
.Scalar, TextDataViewType.Instance, false));
432
cols.Add(new SchemaShape.Column(Kinds.IsNormalized, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false));
447
metaCol.Kind == SchemaShape.Column.
VectorKind
.Vector)
450
cols.Add(new SchemaShape.Column(Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, TextDataViewType.Instance, false));
451
cols.Add(new SchemaShape.Column(Kinds.TrainingLabelValues, SchemaShape.Column.
VectorKind
.Vector, metaCol.ItemType, false));
Data\IEstimator.cs (10)
45
public readonly
VectorKind
Kind;
62
internal Column(string name,
VectorKind
vecKind, DataViewType itemType, bool isKey, SchemaShape annotations = null)
114
if (Kind ==
VectorKind
.Vector)
116
else if (Kind ==
VectorKind
.VariableVector)
146
out Column.
VectorKind
vecKind,
154
vecKind = Column.
VectorKind
.Vector;
158
vecKind = Column.
VectorKind
.VariableVector;
165
vecKind = Column.
VectorKind
.Scalar;
191
GetColumnTypeShape(annotationColumn.Type, out
var
mVecKind, out var mItemType, out var mIsKey);
196
GetColumnTypeShape(schema[iCol].Type, out
var
vecKind, out var itemType, out var isKey);
Microsoft.ML.Data (48)
DataLoadSave\FakeSchema.cs (2)
52
if (column.Kind == SchemaShape.Column.
VectorKind
.VariableVector)
54
else if (column.Kind == SchemaShape.Column.
VectorKind
.Vector)
Prediction\CalibratorCatalog.cs (4)
105
const SchemaShape.Column.
VectorKind
scalar = SchemaShape.Column.
VectorKind
.Scalar;
109
SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false));
126
SchemaShape.Column.
VectorKind
.Scalar,
Training\TrainerUtils.cs (5)
352
=> new SchemaShape.Column(labelColumn, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false);
359
=> new SchemaShape.Column(columnName, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false);
370
return new SchemaShape.Column(columnName, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.UInt32, true);
378
=> new SchemaShape.Column(featureColumn, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
388
return new SchemaShape.Column(weightColumn, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false);
Transforms\ColumnConcatenatingEstimator.cs (9)
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();
127
var
vecKind = varVector ? SchemaShape.Column.
VectorKind
.VariableVector :
128
SchemaShape.Column.
VectorKind
.Vector;
132
meta.Add(new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false));
134
meta.Add(new SchemaShape.Column(AnnotationUtils.Kinds.CategoricalSlotRanges, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Int32, false));
136
meta.Add(new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, TextDataViewType.Instance, false));
Transforms\FeatureContributionCalculationTransformer.cs (1)
345
if (col.ItemType != NumberDataViewType.Single || col.Kind != SchemaShape.Column.
VectorKind
.Vector)
Transforms\Hashing.cs (2)
1967
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.KeyValues, SchemaShape.Column.
VectorKind
.Vector, TextDataViewType.Instance, false));
1968
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, colInfo.Combine ? SchemaShape.Column.
VectorKind
.Scalar : col.Kind,
Transforms\KeyToVector.cs (10)
831
if (((colInfo.OutputCountVector && col.IsKey) || col.Kind != SchemaShape.Column.
VectorKind
.VariableVector) && keyMeta.ItemType is TextDataViewType)
832
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, keyMeta.ItemType, false));
833
if (!colInfo.OutputCountVector && (col.Kind == SchemaShape.Column.
VectorKind
.Scalar || col.Kind == SchemaShape.Column.
VectorKind
.Vector))
834
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.CategoricalSlotRanges, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Int32, false));
835
if (!colInfo.OutputCountVector || (col.Kind == SchemaShape.Column.
VectorKind
.Scalar))
836
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false));
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)
359
var isNormalizedMeta = new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.
VectorKind
.Scalar,
Transforms\TypeConverting.cs (5)
636
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false));
638
if (col.Kind == SchemaShape.Column.
VectorKind
.Vector)
639
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, slotMeta.ItemType, false));
642
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.KeyValues, SchemaShape.Column.
VectorKind
.Vector, keyMeta.ItemType, false));
645
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.KeyValues, SchemaShape.Column.
VectorKind
.Vector, normMeta.ItemType, false));
Transforms\ValueMapping.cs (6)
97
var
vectorKind = SchemaShape.Column.
VectorKind
.Scalar;
100
vectorKind = SchemaShape.Column.
VectorKind
.Vector;
102
vectorKind = SchemaShape.Column.
VectorKind
.VariableVector;
117
if (originalColumn.Kind == SchemaShape.Column.
VectorKind
.VariableVector ||
118
originalColumn.Kind == SchemaShape.Column.
VectorKind
.Vector)
Transforms\ValueToKeyMappingEstimator.cs (2)
193
if (!col.IsKey || !col.Annotations.TryFindColumn(AnnotationUtils.Kinds.KeyValues, out var kv) || kv.Kind != SchemaShape.Column.
VectorKind
.Vector)
195
kv = new SchemaShape.Column(AnnotationUtils.Kinds.KeyValues, SchemaShape.Column.
VectorKind
.Vector,
Microsoft.ML.FastTree (19)
FastTreeClassification.cs (3)
316
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation())),
317
new SchemaShape.Column(DefaultColumnNames.Probability, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation(true))),
318
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
FastTreeRanking.cs (2)
127
if (labelCol.Kind != SchemaShape.Column.
VectorKind
.Scalar)
489
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
FastTreeRegression.cs (2)
143
return new SchemaShape.Column(labelColumn, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false);
205
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
FastTreeTweedie.cs (2)
211
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false)
364
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
GamClassification.cs (3)
187
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation())),
188
new SchemaShape.Column(DefaultColumnNames.Probability, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation(true))),
189
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
GamRegression.cs (1)
139
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
RandomForestClassification.cs (2)
379
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation())),
380
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
RandomForestRegression.cs (1)
508
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
TreeEnsembleFeaturizationEstimator.cs (3)
138
SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
142
SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
146
SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
Microsoft.ML.ImageAnalytics (10)
ImageGrayscale.cs (1)
254
if (!(col.ItemType is ImageDataViewType) || col.Kind != SchemaShape.Column.
VectorKind
.Scalar)
ImageLoader.cs (3)
445
if (!(col.ItemType is TextDataViewType) || col.Kind != SchemaShape.Column.
VectorKind
.Scalar)
449
result[outputColumnName] = new SchemaShape.Column(outputColumnName, SchemaShape.Column.
VectorKind
.Scalar, new ImageDataViewType(), false);
451
result[outputColumnName] = new SchemaShape.Column(outputColumnName, SchemaShape.Column.
VectorKind
.VariableVector, NumberDataViewType.Byte, false);
ImagePixelExtractor.cs (2)
817
if (!(col.ItemType is ImageDataViewType) || col.Kind != SchemaShape.Column.
VectorKind
.Scalar)
821
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.
VectorKind
.Vector, itemType, false);
ImageResizer.cs (2)
517
if (!(col.ItemType is ImageDataViewType) || col.Kind != SchemaShape.Column.
VectorKind
.Scalar)
520
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.
VectorKind
.Scalar, colInfo.Type, false);
VectorToImageTransform.cs (2)
751
if (col.Kind != SchemaShape.Column.
VectorKind
.Vector || (col.ItemType != NumberDataViewType.Single && col.ItemType != NumberDataViewType.Double && col.ItemType != NumberDataViewType.Byte))
755
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.
VectorKind
.Scalar, itemType, false);
Microsoft.ML.KMeansClustering (2)
KMeansPlusPlusTrainer.cs (2)
308
SchemaShape.Column.
VectorKind
.Vector,
314
SchemaShape.Column.
VectorKind
.Scalar,
Microsoft.ML.LightGbm (8)
LightGbmBinaryTrainer.cs (3)
286
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation())),
287
new SchemaShape.Column(DefaultColumnNames.Probability, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation(true))),
288
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
LightGbmMulticlassTrainer.cs (2)
370
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.AnnotationsForMulticlassScoreColumn(labelCol))),
371
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.UInt32, true, metadata)
LightGbmRankingTrainer.cs (2)
275
if (labelCol.Kind != SchemaShape.Column.
VectorKind
.Scalar)
302
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
LightGbmRegressionTrainer.cs (1)
250
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
Microsoft.ML.Mkl.Components (4)
OlsLinearRegression.cs (1)
138
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
SymSgdClassificationTrainer.cs (3)
276
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation())),
277
new SchemaShape.Column(DefaultColumnNames.Probability, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation(true))),
278
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
Microsoft.ML.OnnxTransformer (2)
OnnxTransform.cs (2)
1086
Transformer.OutputTypes[i].IsKnownSizeVector() ? SchemaShape.Column.
VectorKind
.Vector
1087
: SchemaShape.Column.
VectorKind
.VariableVector, Transformer.OutputTypes[i].GetItemType(), false);
Microsoft.ML.PCA (6)
PcaTrainer.cs (4)
202
return new SchemaShape.Column(weightColumn, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false);
207
return new SchemaShape.Column(featureColumn, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
377
SchemaShape.Column.
VectorKind
.Scalar,
383
SchemaShape.Column.
VectorKind
.Scalar,
PcaTransformer.cs (2)
824
if (col.Kind != SchemaShape.Column.
VectorKind
.Vector || !col.ItemType.Equals(NumberDataViewType.Single))
828
SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
Microsoft.ML.Recommender (4)
MatrixFactorizationTrainer.cs (4)
569
var labelColumn = new SchemaShape.Column(LabelName, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false);
573
var matrixColumnIndexColumn = new SchemaShape.Column(MatrixColumnIndexName, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.UInt32, true);
574
var matrixRowIndexColumn = new SchemaShape.Column(MatrixRowIndexName, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.UInt32, true);
595
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation())),
Microsoft.ML.StandardTrainers (52)
FactorizationMachine\FactorizationMachineTrainer.cs (10)
233
FeatureColumns[0] = new SchemaShape.Column(options.FeatureColumnName, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
237
FeatureColumns[i + 1] = new SchemaShape.Column(options.ExtraFeatureColumns[i], SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
239
LabelColumn = new SchemaShape.Column(options.LabelColumnName, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false);
240
WeightColumn = options.ExampleWeightColumnName != null ? new SchemaShape.Column(options.ExampleWeightColumnName, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false) : default;
266
FeatureColumns[i] = new SchemaShape.Column(featureColumnNames[i], SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
268
LabelColumn = new SchemaShape.Column(labelColumnName, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false);
269
WeightColumn = exampleWeightColumnName != null ? new SchemaShape.Column(exampleWeightColumnName, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false) : default;
661
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation())),
662
new SchemaShape.Column(DefaultColumnNames.Probability, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation(true))),
663
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
LdSvm\LdSvmTrainer.cs (2)
184
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation())),
185
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
Standard\LogisticRegression\LogisticRegression.cs (3)
173
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation())),
174
new SchemaShape.Column(DefaultColumnNames.Probability, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation(true))),
175
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
Standard\LogisticRegression\MulticlassLogisticRegression.cs (2)
378
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.AnnotationsForMulticlassScoreColumn(labelCol))),
379
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.UInt32, true, metadata)
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (3)
71
LabelColumn = new SchemaShape.Column(labelColumn, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.UInt32, true);
177
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single,
179
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.UInt32,
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (2)
124
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.AnnotationsForMulticlassScoreColumn(labelCol))),
125
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.UInt32, true, predLabelMetadata)
Standard\Online\AveragedPerceptron.cs (2)
201
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation())),
202
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
Standard\Online\LinearSvm.cs (2)
309
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation())),
310
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
Standard\Online\OnlineGradientDescent.cs (1)
172
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
Standard\PoissonRegression\PoissonRegression.cs (1)
123
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
Standard\SdcaBinary.cs (16)
1626
SchemaShape.Column.
VectorKind
.Scalar,
1632
SchemaShape.Column.
VectorKind
.Scalar,
1638
SchemaShape.Column.
VectorKind
.Scalar,
1725
SchemaShape.Column.
VectorKind
.Scalar,
1732
SchemaShape.Column.
VectorKind
.Scalar,
1783
SchemaShape.Column.
VectorKind
.Scalar,
1790
SchemaShape.Column.
VectorKind
.Scalar,
1801
SchemaShape.Column.
VectorKind
.Scalar,
2303
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation())),
2304
new SchemaShape.Column(DefaultColumnNames.Probability, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation(true))),
2305
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
2392
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation())),
2393
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
2446
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation())),
2447
new SchemaShape.Column(DefaultColumnNames.Probability, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation(true))),
2448
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
Standard\SdcaMulticlass.cs (2)
168
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.AnnotationsForMulticlassScoreColumn(labelCol))),
169
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.UInt32, true, metadata)
Standard\SdcaRegression.cs (1)
197
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
Standard\Simple\SimpleTrainers.cs (5)
301
=> new SchemaShape.Column(featureColumn, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
304
=> new SchemaShape.Column(labelColumn, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false);
318
new SchemaShape.Column(DefaultColumnNames.Score, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation())),
319
new SchemaShape.Column(DefaultColumnNames.Probability, SchemaShape.Column.
VectorKind
.Scalar, NumberDataViewType.Single, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation(true))),
320
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false, new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()))
Microsoft.ML.TensorFlow (2)
TensorflowTransform.cs (2)
1047
_outputTypes[i].IsKnownSizeVector() ? SchemaShape.Column.
VectorKind
.Vector
1048
: SchemaShape.Column.
VectorKind
.VariableVector, _outputTypes[i].GetItemType(), false);
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.TimeSeries (13)
IidChangePointDetector.cs (2)
271
new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, TextDataViewType.Instance, false)
276
Transformer.InternalTransform.OutputColumnName, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Double, false, new SchemaShape(metadata));
IidSpikeDetector.cs (2)
247
new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, TextDataViewType.Instance, false)
251
Transformer.InternalTransform.OutputColumnName, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Double, false, new SchemaShape(metadata));
SRCNNAnomalyDetector.cs (2)
279
new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, TextDataViewType.Instance, false)
283
Transformer.InternalTransform.OutputColumnName, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Double, false, new SchemaShape(metadata));
SsaChangePointDetector.cs (2)
307
new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, TextDataViewType.Instance, false)
311
_options.Name, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Double, false, new SchemaShape(metadata));
SSaForecasting.cs (3)
341
_options.Name, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
346
_options.ConfidenceLowerBoundColumn, SchemaShape.Column.
VectorKind
.Vector,
350
_options.ConfidenceUpperBoundColumn, SchemaShape.Column.
VectorKind
.Vector,
SsaSpikeDetector.cs (2)
286
new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, TextDataViewType.Instance, false)
290
_options.Name, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Double, false, new SchemaShape(metadata));
Microsoft.ML.TorchSharp (47)
AutoFormerV2\ObjectDetectionTrainer.cs (21)
447
metadata.Add(new SchemaShape.Column(Kinds.KeyValues, SchemaShape.Column.
VectorKind
.Vector,
452
scoreMetadata.Add(new SchemaShape.Column(Kinds.ScoreColumnKind, SchemaShape.Column.
VectorKind
.Scalar,
454
scoreMetadata.Add(new SchemaShape.Column(Kinds.ScoreValueKind, SchemaShape.Column.
VectorKind
.Scalar,
456
scoreMetadata.Add(new SchemaShape.Column(Kinds.ScoreColumnSetId, SchemaShape.Column.
VectorKind
.Scalar,
458
scoreMetadata.Add(new SchemaShape.Column(Kinds.TrainingLabelValues, SchemaShape.Column.
VectorKind
.Vector,
464
outColumns[Option.PredictedLabelColumnName] = new SchemaShape.Column(Option.PredictedLabelColumnName, SchemaShape.Column.
VectorKind
.VariableVector,
467
outColumns[Option.PredictedBoundingBoxColumnName] = new SchemaShape.Column(Option.PredictedBoundingBoxColumnName, SchemaShape.Column.
VectorKind
.VariableVector,
470
outColumns[Option.ScoreColumnName] = new SchemaShape.Column(Option.ScoreColumnName, SchemaShape.Column.
VectorKind
.VariableVector,
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))
528
PredictedLabelColumnName = new SchemaShape.Column(Options.PredictedLabelColumnName, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.UInt32, false);
529
PredictedBoundingBoxColumn = new SchemaShape.Column(Options.PredictedBoundingBoxColumnName, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
530
ConfidenceColumn = new SchemaShape.Column(Options.ScoreColumnName, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
547
var labelAnnotationsColumn = new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, LabelColumn.Annotations.Schema[AnnotationUtils.Kinds.SlotNames].Type, false);
553
scoreMetadata.Add(new SchemaShape.Column(Kinds.ScoreColumnKind, SchemaShape.Column.
VectorKind
.Scalar,
555
scoreMetadata.Add(new SchemaShape.Column(Kinds.ScoreValueKind, SchemaShape.Column.
VectorKind
.Scalar,
557
scoreMetadata.Add(new SchemaShape.Column(Kinds.ScoreColumnSetId, SchemaShape.Column.
VectorKind
.Scalar,
559
scoreMetadata.Add(new SchemaShape.Column(Kinds.TrainingLabelValues, SchemaShape.Column.
VectorKind
.Vector,
562
outColumns[Options.PredictedLabelColumnName] = new SchemaShape.Column(Options.PredictedLabelColumnName, SchemaShape.Column.
VectorKind
.VariableVector,
565
outColumns[Options.PredictedBoundingBoxColumnName] = new SchemaShape.Column(Options.PredictedBoundingBoxColumnName, SchemaShape.Column.
VectorKind
.VariableVector,
568
outColumns[Options.ScoreColumnName] = new SchemaShape.Column(Options.ScoreColumnName, SchemaShape.Column.
VectorKind
.VariableVector,
NasBert\NasBertTrainer.cs (12)
329
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.KeyValues, SchemaShape.Column.
VectorKind
.Vector,
335
outColumns[Option.PredictionColumnName] = new SchemaShape.Column(Option.PredictionColumnName, SchemaShape.Column.
VectorKind
.Scalar,
338
outColumns[Option.ScoreColumnName] = new SchemaShape.Column(Option.ScoreColumnName, SchemaShape.Column.
VectorKind
.Vector,
344
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.KeyValues, SchemaShape.Column.
VectorKind
.Vector,
350
outColumns[Option.PredictionColumnName] = new SchemaShape.Column(Option.PredictionColumnName, SchemaShape.Column.
VectorKind
.VariableVector,
355
outColumns[Option.ScoreColumnName] = new SchemaShape.Column(Option.ScoreColumnName, SchemaShape.Column.
VectorKind
.Scalar,
423
SentenceColumn = new SchemaShape.Column(options.Sentence1ColumnName, SchemaShape.Column.
VectorKind
.Scalar, TextDataViewType.Instance, false);
424
SentenceColumn2 = options.Sentence2ColumnName == default ? default : new SchemaShape.Column(options.Sentence2ColumnName, SchemaShape.Column.
VectorKind
.Scalar, TextDataViewType.Instance, false);
436
var labelAnnotationsColumn = new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, LabelColumn.Annotations.Schema[AnnotationUtils.Kinds.SlotNames].Type, false);
440
outColumns[Options.PredictionColumnName] = new SchemaShape.Column(Options.PredictionColumnName, SchemaShape.Column.
VectorKind
.Scalar,
443
outColumns[ScoreColumnName] = new SchemaShape.Column(ScoreColumnName, SchemaShape.Column.
VectorKind
.Vector,
448
outColumns[ScoreColumnName] = new SchemaShape.Column(ScoreColumnName, SchemaShape.Column.
VectorKind
.Scalar,
Roberta\QATrainer.cs (14)
512
scoreMetadata.Add(new SchemaShape.Column(Kinds.ScoreColumnKind, SchemaShape.Column.
VectorKind
.Scalar,
514
scoreMetadata.Add(new SchemaShape.Column(Kinds.ScoreValueKind, SchemaShape.Column.
VectorKind
.Scalar,
516
scoreMetadata.Add(new SchemaShape.Column(Kinds.ScoreColumnSetId, SchemaShape.Column.
VectorKind
.Scalar,
519
outColumns[Option.PredictedAnswerColumnName] = new SchemaShape.Column(Option.PredictedAnswerColumnName, SchemaShape.Column.
VectorKind
.VariableVector,
522
outColumns[Option.ScoreColumnName] = new SchemaShape.Column(Option.ScoreColumnName, SchemaShape.Column.
VectorKind
.VariableVector,
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))
598
new SchemaShape.Column(Kinds.ScoreColumnKind, SchemaShape.Column.
VectorKind
.Scalar,
600
new SchemaShape.Column(Kinds.ScoreValueKind, SchemaShape.Column.
VectorKind
.Scalar,
602
new SchemaShape.Column(Kinds.ScoreColumnSetId, SchemaShape.Column.
VectorKind
.Scalar,
606
outColumns[Options.PredictedAnswerColumnName] = new SchemaShape.Column(Options.PredictedAnswerColumnName, SchemaShape.Column.
VectorKind
.VariableVector,
609
outColumns[Options.ScoreColumnName] = new SchemaShape.Column(Options.ScoreColumnName, SchemaShape.Column.
VectorKind
.VariableVector,
Microsoft.ML.Transforms (63)
CountFeatureSelection.cs (1)
174
if (col.Kind == SchemaShape.Column.
VectorKind
.VariableVector)
CustomMappingTransformer.cs (7)
265
SchemaShape.GetColumnTypeShape(col.ColumnType, out
var
vecKind, out var itemType, out var isKey);
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 (4)
332
if (col.Kind == SchemaShape.Column.
VectorKind
.VariableVector)
340
if (col.Kind == SchemaShape.Column.
VectorKind
.Scalar)
341
newMetadataKinds.Add(new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, TextDataViewType.Instance, false));
345
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false, meta);
ExpressionTransformer.cs (3)
122
if (col.Kind != SchemaShape.Column.
VectorKind
.Scalar)
190
SchemaShape.Column.
VectorKind
outputVectorKind;
193
outputVectorKind = SchemaShape.Column.
VectorKind
.Scalar;
GcnTransform.cs (2)
899
if (col.Kind != SchemaShape.Column.
VectorKind
.Vector)
923
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false));
KeyToVectorMapping.cs (7)
480
if (col.Kind != SchemaShape.Column.
VectorKind
.VariableVector && keyMeta.ItemType is TextDataViewType)
481
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, keyMeta.ItemType, false));
482
if (col.Kind == SchemaShape.Column.
VectorKind
.Scalar)
483
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false));
485
col.Kind == SchemaShape.Column.
VectorKind
.VariableVector ? SchemaShape.Column.
VectorKind
.VariableVector : SchemaShape.Column.
VectorKind
.Vector,
MissingValueDroppingTransformer.cs (2)
47
if (originalColumn.Kind == SchemaShape.Column.
VectorKind
.Scalar)
51
var col = new SchemaShape.Column(outputColumnName, SchemaShape.Column.
VectorKind
.VariableVector, originalColumn.ItemType, originalColumn.IsKey, originalColumn.Annotations);
MissingValueIndicatorTransformer.cs (1)
545
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false));
MutualInformationFeatureSelection.cs (1)
241
if (col.Kind == SchemaShape.Column.
VectorKind
.VariableVector)
RandomFourierFeaturizing.cs (2)
730
if (col.ItemType.RawType != typeof(float) || col.Kind != SchemaShape.Column.
VectorKind
.Vector)
733
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
StatefulCustomMappingTransformer.cs (7)
398
SchemaShape.GetColumnTypeShape(col.ColumnType, out
var
vecKind, out var itemType, out var isKey);
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 (2)
1328
if (col.ItemType.RawType != typeof(float) || col.Kind == SchemaShape.Column.
VectorKind
.Scalar)
1331
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
Text\NgramHashingTransformer.cs (3)
1196
if (col.Kind == SchemaShape.Column.
VectorKind
.Scalar)
1228
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, TextDataViewType.Instance, false));
1229
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false, new SchemaShape(metadata));
Text\NgramTransform.cs (3)
972
if (col.Kind == SchemaShape.Column.
VectorKind
.Scalar)
1089
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, TextDataViewType.Instance, false));
1090
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false, new SchemaShape(metadata));
Text\StopWordsRemovingTransformer.cs (4)
677
if (col.Kind == SchemaShape.Column.
VectorKind
.Scalar || !(col.ItemType is TextDataViewType))
679
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.
VectorKind
.VariableVector, TextDataViewType.Instance, false);
1245
if (col.Kind == SchemaShape.Column.
VectorKind
.Scalar || !(col.ItemType is TextDataViewType))
1247
result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName, SchemaShape.Column.
VectorKind
.VariableVector, TextDataViewType.Instance, false);
Text\TextFeaturizingEstimator.cs (4)
644
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, TextDataViewType.Instance, false));
646
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.
VectorKind
.Scalar, BooleanDataViewType.Instance, false));
648
result[OutputColumn] = new SchemaShape.Column(OutputColumn, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false,
654
result[name] = new SchemaShape.Column(name, SchemaShape.Column.
VectorKind
.VariableVector, TextDataViewType.Instance, false);
Text\TextNormalizing.cs (3)
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\TokenizingByCharacters.cs (3)
694
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.
VectorKind
.Vector, slotMeta.ItemType, false));
695
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.KeyValues, SchemaShape.Column.
VectorKind
.Vector, TextDataViewType.Instance, false));
696
result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName, SchemaShape.Column.
VectorKind
.VariableVector, NumberDataViewType.UInt16, true, new SchemaShape(metadata.ToArray()));
Text\WordEmbeddingsExtractor.cs (3)
938
if (!(col.ItemType is TextDataViewType) || (col.Kind != SchemaShape.Column.
VectorKind
.VariableVector && col.Kind != SchemaShape.Column.
VectorKind
.Vector))
941
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.
VectorKind
.Vector, NumberDataViewType.Single, false);
Text\WordTokenizing.cs (1)
540
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.
VectorKind
.VariableVector, col.ItemType, false);
Microsoft.ML.Vision (7)
DnnRetrainTransform.cs (3)
1263
if (!(col.Kind == SchemaShape.Column.
VectorKind
.Vector))
1272
_outputTypes[i].IsKnownSizeVector() ? SchemaShape.Column.
VectorKind
.Vector
1273
: SchemaShape.Column.
VectorKind
.VariableVector, _outputTypes[i].GetItemType(), false);
ImageClassificationTrainer.cs (4)
527
new SchemaShape.Column(options.FeatureColumnName, SchemaShape.Column.
VectorKind
.VariableVector,
637
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.KeyValues, SchemaShape.Column.
VectorKind
.Vector,
642
new SchemaShape.Column(_options.ScoreColumnName, SchemaShape.Column.
VectorKind
.Vector,
644
new SchemaShape.Column(_options.PredictedLabelColumnName, SchemaShape.Column.
VectorKind
.Scalar,