230 references to Column
Microsoft.ML.Core (8)
Data\AnnotationUtils.cs (6)
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));
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 (2)
192
mCols.Add(new
Column
(annotationColumn.Name, mVecKind, mItemType, mIsKey));
197
cols.Add(new
Column
(schema[iCol].Name, vecKind, itemType, isKey, annotations));
Microsoft.ML.Data (30)
Prediction\CalibratorCatalog.cs (2)
108
annotations.Add(new SchemaShape.
Column
(AnnotationUtils.Kinds.IsNormalized,
125
outColumns[DefaultColumnNames.Probability] = new SchemaShape.
Column
(DefaultColumnNames.Probability,
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 (4)
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));
138
return new SchemaShape.
Column
(name, vecKind, itemType, false, new SchemaShape(meta));
Transforms\ColumnCopying.cs (1)
81
var col = new SchemaShape.
Column
(outputColumnName, originalColumn.Kind, originalColumn.ItemType, originalColumn.IsKey, originalColumn.Annotations);
Transforms\FeatureContributionCalculationTransformer.cs (1)
355
result[DefaultColumnNames.FeatureContributions] = new SchemaShape.
Column
(
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\KeyToValue.cs (1)
652
result[colInfo.outputColumnName] = new SchemaShape.
Column
(colInfo.outputColumnName, col.Kind, keyMetaCol.ItemType, keyMetaCol.IsKey, metadata);
Transforms\KeyToVector.cs (4)
832
metadata.Add(new SchemaShape.
Column
(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, keyMeta.ItemType, false));
834
metadata.Add(new SchemaShape.
Column
(AnnotationUtils.Kinds.CategoricalSlotRanges, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Int32, false));
836
metadata.Add(new SchemaShape.
Column
(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.VectorKind.Scalar, BooleanDataViewType.Instance, false));
838
result[colInfo.Name] = new SchemaShape.
Column
(colInfo.Name,
Transforms\Normalizer.cs (2)
359
var isNormalizedMeta = new SchemaShape.
Column
(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.VectorKind.Scalar,
365
result[colInfo.Name] = new SchemaShape.
Column
(colInfo.Name, col.Kind, col.ItemType, col.IsKey, meta);
Transforms\TypeConverting.cs (5)
636
metadata.Add(new SchemaShape.
Column
(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.VectorKind.Scalar, BooleanDataViewType.Instance, false));
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));
646
result[colInfo.Name] = new SchemaShape.
Column
(colInfo.Name, col.Kind, newType, false, col.Annotations);
Transforms\ValueMapping.cs (1)
128
var col = new SchemaShape.
Column
(outputColumnName, vectorKind, columnType, isKey, metadataShape);
Transforms\ValueToKeyMappingEstimator.cs (2)
195
kv = new SchemaShape.
Column
(AnnotationUtils.Kinds.KeyValues, SchemaShape.Column.VectorKind.Vector,
204
result[colInfo.OutputColumnName] = new SchemaShape.
Column
(colInfo.OutputColumnName, col.Kind, NumberDataViewType.UInt32, true, metadata);
Microsoft.ML.FastTree (18)
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 (1)
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)
137
result[TreesColumnName] = new SchemaShape.
Column
(TreesColumnName,
141
result[LeavesColumnName] = new SchemaShape.
Column
(LeavesColumnName,
145
result[PathsColumnName] = new SchemaShape.
Column
(PathsColumnName,
Microsoft.ML.ImageAnalytics (6)
ImageGrayscale.cs (1)
257
result[colInfo.outputColumnName] = new SchemaShape.
Column
(colInfo.outputColumnName, col.Kind, col.ItemType, col.IsKey, col.Annotations);
ImageLoader.cs (2)
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 (1)
821
result[colInfo.Name] = new SchemaShape.
Column
(colInfo.Name, SchemaShape.Column.VectorKind.Vector, itemType, false);
ImageResizer.cs (1)
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 (2)
KMeansPlusPlusTrainer.cs (2)
307
new SchemaShape.
Column
(DefaultColumnNames.Score,
313
new SchemaShape.
Column
(DefaultColumnNames.PredictedLabel,
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 (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 (1)
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 (5)
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()))
VectorWhitening.cs (1)
901
result[colPair.Name] = new SchemaShape.
Column
(colPair.Name, col.Kind, col.ItemType, col.IsKey, null);
Microsoft.ML.OnnxTransformer (1)
OnnxTransform.cs (1)
1085
resultDic[Transformer.Outputs[i]] = new SchemaShape.
Column
(Transformer.Outputs[i],
Microsoft.ML.PCA (5)
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);
376
new SchemaShape.
Column
(DefaultColumnNames.Score,
382
new SchemaShape.
Column
(DefaultColumnNames.PredictedLabel,
PcaTransformer.cs (1)
827
result[colInfo.Name] = new SchemaShape.
Column
(colInfo.Name,
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)
1624
new SchemaShape.
Column
(
1630
new SchemaShape.
Column
(
1636
new SchemaShape.
Column
(
1723
new SchemaShape.
Column
(
1730
new SchemaShape.
Column
(
1781
new SchemaShape.
Column
(
1788
new SchemaShape.
Column
(
1799
outCols.Insert(1, new SchemaShape.
Column
(
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 (1)
TensorflowTransform.cs (1)
1046
resultDic[_options.OutputColumns[i]] = new SchemaShape.
Column
(_options.OutputColumns[i],
Microsoft.ML.TimeSeries (13)
IidChangePointDetector.cs (2)
271
new SchemaShape.
Column
(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.Instance, false)
275
resultDic[Transformer.InternalTransform.OutputColumnName] = new SchemaShape.
Column
(
IidSpikeDetector.cs (2)
247
new SchemaShape.
Column
(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.Instance, false)
250
resultDic[Transformer.InternalTransform.OutputColumnName] = new SchemaShape.
Column
(
SRCNNAnomalyDetector.cs (2)
279
new SchemaShape.
Column
(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.Instance, false)
282
resultDic[Transformer.InternalTransform.OutputColumnName] = new SchemaShape.
Column
(
SsaChangePointDetector.cs (2)
307
new SchemaShape.
Column
(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.Instance, false)
310
resultDic[_options.Name] = new SchemaShape.
Column
(
SSaForecasting.cs (3)
340
resultDic[_options.Name] = new SchemaShape.
Column
(
345
resultDic[_options.ConfidenceLowerBoundColumn] = new SchemaShape.
Column
(
349
resultDic[_options.ConfidenceUpperBoundColumn] = new SchemaShape.
Column
(
SsaSpikeDetector.cs (2)
286
new SchemaShape.
Column
(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.Instance, false)
289
resultDic[_options.Name] = new SchemaShape.
Column
(
Microsoft.ML.TorchSharp (41)
AutoFormerV2\ObjectDetectionTrainer.cs (19)
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,
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 (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,
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,
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 (32)
CountFeatureSelection.cs (1)
183
result[colPair.Name] = new SchemaShape.
Column
(colPair.Name, col.Kind, col.ItemType, false, new SchemaShape(metadata.ToArray()));
Dracula\CountTableTransformer.cs (2)
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 (1)
205
var outputSchemaShapeColumn = new SchemaShape.
Column
(_columns[i].Name, outputVectorKind, typeRes, false, new SchemaShape(metadata));
GcnTransform.cs (2)
923
metadata.Add(new SchemaShape.
Column
(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.VectorKind.Scalar, BooleanDataViewType.Instance, false));
924
result[colPair.Name] = new SchemaShape.
Column
(colPair.Name, col.Kind, col.ItemType, false, new SchemaShape(metadata.ToArray()));
KeyToVectorMapping.cs (3)
481
metadata.Add(new SchemaShape.
Column
(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, keyMeta.ItemType, false));
483
metadata.Add(new SchemaShape.
Column
(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.VectorKind.Scalar, BooleanDataViewType.Instance, false));
484
result[colInfo.outputColumnName] = new SchemaShape.
Column
(colInfo.outputColumnName,
MissingValueDroppingTransformer.cs (1)
51
var col = new SchemaShape.
Column
(outputColumnName, SchemaShape.Column.VectorKind.VariableVector, originalColumn.ItemType, originalColumn.IsKey, originalColumn.Annotations);
MissingValueIndicatorTransformer.cs (2)
545
metadata.Add(new SchemaShape.
Column
(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.VectorKind.Scalar, BooleanDataViewType.Instance, false));
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 (1)
250
result[colPair.outputColumnName] = new SchemaShape.
Column
(colPair.outputColumnName, col.Kind, col.ItemType, false, new SchemaShape(metadata.ToArray()));
RandomFourierFeaturizing.cs (1)
733
result[colInfo.Name] = new SchemaShape.
Column
(colInfo.Name, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Single, false);
Text\LdaTransform.cs (1)
1331
result[colInfo.Name] = new SchemaShape.
Column
(colInfo.Name, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Single, false);
Text\NgramHashingTransformer.cs (2)
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 (2)
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 (2)
679
result[colInfo.Name] = new SchemaShape.
Column
(colInfo.Name, SchemaShape.Column.VectorKind.VariableVector, TextDataViewType.Instance, false);
1247
result[colInfo.outputColumnName] = new SchemaShape.
Column
(colInfo.outputColumnName, SchemaShape.Column.VectorKind.VariableVector, TextDataViewType.Instance, false);
Text\TextFeaturizingEstimator.cs (4)
652
metadata.Add(new SchemaShape.
Column
(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.Instance, false));
654
metadata.Add(new SchemaShape.
Column
(AnnotationUtils.Kinds.IsNormalized, SchemaShape.Column.VectorKind.Scalar, BooleanDataViewType.Instance, false));
656
result[OutputColumn] = new SchemaShape.
Column
(OutputColumn, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Single, false,
662
result[name] = new SchemaShape.
Column
(name, SchemaShape.Column.VectorKind.VariableVector, TextDataViewType.Instance, false);
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\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 (1)
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 (5)
DnnRetrainTransform.cs (1)
1270
resultDic[_options.OutputColumns[i]] = new SchemaShape.
Column
(_options.OutputColumns[i],
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,