153 references to Scalar
Microsoft.ML.Core (6)
Data\AnnotationUtils.cs (5)
328
&& metaCol.Kind == SchemaShape.Column.VectorKind.
Scalar
&& !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));
Data\IEstimator.cs (1)
165
vecKind = Column.VectorKind.
Scalar
;
Microsoft.ML.Data (16)
Prediction\CalibratorCatalog.cs (3)
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 (4)
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);
388
return new SchemaShape.Column(weightColumn, SchemaShape.Column.VectorKind.
Scalar
, NumberDataViewType.Single, false);
Transforms\ColumnConcatenatingEstimator.cs (2)
125
hasSlotNames |= col.Kind == SchemaShape.Column.VectorKind.
Scalar
|| col.HasSlotNames();
132
meta.Add(new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.VectorKind.
Scalar
, BooleanDataViewType.Instance, false));
Transforms\Hashing.cs (1)
1968
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, colInfo.Combine ? SchemaShape.Column.VectorKind.
Scalar
: col.Kind,
Transforms\KeyToVector.cs (3)
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
))
836
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.VectorKind.
Scalar
, BooleanDataViewType.Instance, false));
Transforms\Normalizer.cs (1)
359
var isNormalizedMeta = new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.VectorKind.
Scalar
,
Transforms\TypeConverting.cs (1)
636
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.VectorKind.
Scalar
, BooleanDataViewType.Instance, false));
Transforms\ValueMapping.cs (1)
97
var vectorKind = SchemaShape.Column.VectorKind.
Scalar
;
Microsoft.ML.FastTree (16)
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()))
Microsoft.ML.ImageAnalytics (7)
ImageGrayscale.cs (1)
254
if (!(col.ItemType is ImageDataViewType) || col.Kind != SchemaShape.Column.VectorKind.
Scalar
)
ImageLoader.cs (2)
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);
ImagePixelExtractor.cs (1)
817
if (!(col.ItemType is ImageDataViewType) || col.Kind != SchemaShape.Column.VectorKind.
Scalar
)
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 (1)
755
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.VectorKind.
Scalar
, itemType, false);
Microsoft.ML.KMeansClustering (1)
KMeansPlusPlusTrainer.cs (1)
314
SchemaShape.Column.VectorKind.
Scalar
,
Microsoft.ML.LightGbm (7)
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 (1)
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.PCA (3)
PcaTrainer.cs (3)
202
return new SchemaShape.Column(weightColumn, SchemaShape.Column.VectorKind.
Scalar
, NumberDataViewType.Single, false);
377
SchemaShape.Column.VectorKind.
Scalar
,
383
SchemaShape.Column.VectorKind.
Scalar
,
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 (44)
FactorizationMachine\FactorizationMachineTrainer.cs (7)
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;
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 (1)
379
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.VectorKind.
Scalar
, NumberDataViewType.UInt32, true, metadata)
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (2)
71
LabelColumn = new SchemaShape.Column(labelColumn, SchemaShape.Column.VectorKind.
Scalar
, NumberDataViewType.UInt32, true);
179
new SchemaShape.Column(DefaultColumnNames.PredictedLabel, SchemaShape.Column.VectorKind.
Scalar
, NumberDataViewType.UInt32,
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (1)
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 (1)
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 (4)
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.TorchSharp (22)
AutoFormerV2\ObjectDetectionTrainer.cs (6)
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
,
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
,
NasBert\NasBertTrainer.cs (6)
335
outColumns[Option.PredictionColumnName] = new SchemaShape.Column(Option.PredictionColumnName, SchemaShape.Column.VectorKind.
Scalar
,
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);
440
outColumns[Options.PredictionColumnName] = new SchemaShape.Column(Options.PredictionColumnName, SchemaShape.Column.VectorKind.
Scalar
,
448
outColumns[ScoreColumnName] = new SchemaShape.Column(ScoreColumnName, SchemaShape.Column.VectorKind.
Scalar
,
Roberta\QATrainer.cs (10)
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
,
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
,
Microsoft.ML.Transforms (22)
CustomMappingTransformer.cs (3)
268
|| vecKind == SchemaShape.Column.VectorKind.
Scalar
&& column.Kind != SchemaShape.Column.VectorKind.
Scalar
270
|| vecKind == SchemaShape.Column.VectorKind.VariableVector && column.Kind == SchemaShape.Column.VectorKind.
Scalar
)
Dracula\CountTableTransformer.cs (1)
340
if (col.Kind == SchemaShape.Column.VectorKind.
Scalar
)
ExpressionTransformer.cs (2)
122
if (col.Kind != SchemaShape.Column.VectorKind.
Scalar
)
193
outputVectorKind = SchemaShape.Column.VectorKind.
Scalar
;
GcnTransform.cs (1)
923
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.VectorKind.
Scalar
, BooleanDataViewType.Instance, false));
KeyToVectorMapping.cs (2)
482
if (col.Kind == SchemaShape.Column.VectorKind.
Scalar
)
483
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.VectorKind.
Scalar
, BooleanDataViewType.Instance, false));
MissingValueDroppingTransformer.cs (1)
47
if (originalColumn.Kind == SchemaShape.Column.VectorKind.
Scalar
)
MissingValueIndicatorTransformer.cs (1)
545
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.VectorKind.
Scalar
, BooleanDataViewType.Instance, false));
StatefulCustomMappingTransformer.cs (3)
401
|| vecKind == SchemaShape.Column.VectorKind.
Scalar
&& column.Kind != SchemaShape.Column.VectorKind.
Scalar
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\TextFeaturizingEstimator.cs (1)
646
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.VectorKind.
Scalar
, BooleanDataViewType.Instance, false));
Text\TextNormalizing.cs (2)
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);
Microsoft.ML.Vision (1)
ImageClassificationTrainer.cs (1)
644
new SchemaShape.Column(_options.PredictedLabelColumnName, SchemaShape.Column.VectorKind.
Scalar
,