219 references to VectorDataViewType
Microsoft.Data.Analysis (14)
DataFrameColumns\VBufferDataFrameColumn.cs (14)
317
return new
VectorDataViewType
(BooleanDataViewType.Instance);
321
return new
VectorDataViewType
(NumberDataViewType.Byte);
325
return new
VectorDataViewType
(NumberDataViewType.Double);
329
return new
VectorDataViewType
(NumberDataViewType.Single);
333
return new
VectorDataViewType
(NumberDataViewType.Int32);
337
return new
VectorDataViewType
(NumberDataViewType.Int64);
341
return new
VectorDataViewType
(NumberDataViewType.SByte);
345
return new
VectorDataViewType
(NumberDataViewType.Int16);
349
return new
VectorDataViewType
(NumberDataViewType.UInt32);
353
return new
VectorDataViewType
(NumberDataViewType.UInt64);
357
return new
VectorDataViewType
(NumberDataViewType.UInt16);
361
return new
VectorDataViewType
(NumberDataViewType.UInt16);
365
return new
VectorDataViewType
(NumberDataViewType.Double);
369
return new
VectorDataViewType
(TextDataViewType.Instance);
Microsoft.ML.AutoML (1)
AutoMLExperiment\ITrialResultManager.cs (1)
50
schemaBuilder.AddColumn("parameter", new
VectorDataViewType
(NumberDataViewType.Double));
Microsoft.ML.AutoML.Tests (6)
TransformInferenceTests.cs (6)
251
new DatasetColumnInfo(DefaultColumnNames.Features, new
VectorDataViewType
(NumberDataViewType.Single), ColumnPurpose.NumericFeature, new ColumnDimensions(null, null)),
304
new DatasetColumnInfo("Numeric", new
VectorDataViewType
(NumberDataViewType.Single), ColumnPurpose.NumericFeature, new ColumnDimensions(null, null)),
637
new DatasetColumnInfo(DefaultColumnNames.Features, new
VectorDataViewType
(NumberDataViewType.Single), ColumnPurpose.NumericFeature, new ColumnDimensions(null, null)),
647
new DatasetColumnInfo(DefaultColumnNames.Features, new
VectorDataViewType
(NumberDataViewType.Single), ColumnPurpose.NumericFeature, new ColumnDimensions(null, null)),
673
new DatasetColumnInfo(DefaultColumnNames.Features, new
VectorDataViewType
(NumberDataViewType.Single), ColumnPurpose.NumericFeature, new ColumnDimensions(null, null)),
684
new DatasetColumnInfo(DefaultColumnNames.Features, new
VectorDataViewType
(NumberDataViewType.Single), ColumnPurpose.NumericFeature, new ColumnDimensions(null, null)),
Microsoft.ML.Core (3)
Data\AnnotationBuilderExtensions.cs (2)
19
=> builder.Add(AnnotationUtils.Kinds.SlotNames, new
VectorDataViewType
(TextDataViewType.Instance, size), getter);
30
=> builder.Add(AnnotationUtils.Kinds.KeyValues, new
VectorDataViewType
(valueType, size), getter);
Data\AnnotationUtils.cs (1)
145
return new
VectorDataViewType
(TextDataViewType.Instance, size);
Microsoft.ML.Core.Tests (3)
UnitTests\ColumnTypes.cs (3)
39
tmp1 = new
VectorDataViewType
(tmp, size);
66
tmp1 = new
VectorDataViewType
(tmp, size);
86
tmp1 = new
VectorDataViewType
(tmp, size);
Microsoft.ML.Data (61)
Data\SchemaDefinition.cs (1)
459
columnType = new
VectorDataViewType
(itemType, 0);
DataLoadSave\Binary\Codecs.cs (1)
1147
type = new
VectorDataViewType
(itemType);
DataLoadSave\Database\DatabaseLoader.cs (1)
452
type = new
VectorDataViewType
(itemType, size);
DataLoadSave\FakeSchema.cs (2)
53
curType = new
VectorDataViewType
((PrimitiveDataViewType)curType, 0);
55
curType = new
VectorDataViewType
((PrimitiveDataViewType)curType, AllVectorSizes);
DataLoadSave\Text\TextLoader.cs (2)
677
type = new
VectorDataViewType
(itemType);
679
type = new
VectorDataViewType
(itemType, size);
DataLoadSave\Transpose\TransposeSaver.cs (1)
78
var newVectorType = new
VectorDataViewType
(primitiveType, size: 2);
DataView\ArrayDataViewBuilder.cs (1)
480
return new
VectorDataViewType
(itemType, degree);
DataView\DataViewConstructionUtils.cs (1)
887
annotationType = isVector ? new
VectorDataViewType
(primitiveItemType) : (DataViewType)primitiveItemType;
DataView\InternalSchemaDefinition.cs (1)
269
colType = isVector ? new
VectorDataViewType
(itemType) : (DataViewType)itemType;
DataView\LambdaColumnMapper.cs (1)
135
bldr.AddGetter(AnnotationUtils.Kinds.SlotNames, new
VectorDataViewType
(TextDataViewType.Instance, vectorSize), mdGetter);
DataView\Transposer.cs (3)
275
return new
VectorDataViewType
(elementType, RowCount);
1105
_types[0] = new
VectorDataViewType
(type.ItemType, _lims[0]);
1107
_types[c] = new
VectorDataViewType
(type.ItemType, _lims[c] - _lims[c - 1]);
Deprecated\Instances\HeaderSchema.cs (2)
33
_colType = new
VectorDataViewType
(NumberDataViewType.Single, collection.Count);
34
_slotNamesType = new
VectorDataViewType
(TextDataViewType.Instance, collection.Count);
Evaluators\ClusteringEvaluator.cs (5)
598
_types[SortedClusterCol] = new
VectorDataViewType
(key, _numClusters);
599
_types[SortedClusterScoreCol] = new
VectorDataViewType
(NumberDataViewType.Single, _numClusters);
617
_types[SortedClusterCol] = new
VectorDataViewType
(key, _numClusters);
618
_types[SortedClusterScoreCol] = new
VectorDataViewType
(NumberDataViewType.Single, _numClusters);
724
var slotNamesType = new
VectorDataViewType
(TextDataViewType.Instance, _numClusters);
Evaluators\EvaluatorUtils.cs (2)
547
var typeDst = new
VectorDataViewType
(itemType, slotNames.Count);
987
variableSizeVectorColumnName + "_VarLength", typeSrc, new
VectorDataViewType
((PrimitiveDataViewType)typeSrc.ItemType),
Evaluators\MulticlassClassificationEvaluator.cs (4)
635
_types[SortedScoresCol] = new
VectorDataViewType
(NumberDataViewType.Single, _numClasses);
636
_types[SortedClassesCol] = new
VectorDataViewType
(key, _numClasses);
664
_types[SortedScoresCol] = new
VectorDataViewType
(NumberDataViewType.Single, _numClasses);
665
_types[SortedClassesCol] = new
VectorDataViewType
(key, _numClasses);
Evaluators\MultiOutputRegressionEvaluator.cs (3)
552
labelType = new
VectorDataViewType
((PrimitiveDataViewType)t.ItemType, t.Size);
553
var slotNamesType = new
VectorDataViewType
(TextDataViewType.Instance, t.Size);
561
scoreType = new
VectorDataViewType
((PrimitiveDataViewType)t.ItemType, t.Size);
Evaluators\QuantileRegressionEvaluator.cs (3)
295
_outputType = new
VectorDataViewType
(NumberDataViewType.Double, _scoreSize);
314
_outputType = new
VectorDataViewType
(NumberDataViewType.Double, _scoreSize);
355
var slotNamesType = new
VectorDataViewType
(TextDataViewType.Instance, _scoreSize);
Evaluators\RankingEvaluator.cs (2)
642
_outputType = new
VectorDataViewType
(NumberDataViewType.Double, _truncationLevel);
643
_slotNamesType = new
VectorDataViewType
(TextDataViewType.Instance, _truncationLevel);
Scorers\SchemaBindablePredictorWrapper.cs (1)
130
var typeIn = ValueMapper != null ? ValueMapper.InputType : new
VectorDataViewType
(NumberDataViewType.Single);
Scorers\ScoreSchemaFactory.cs (1)
87
var partialSchema = Create(new
VectorDataViewType
(scoreType as PrimitiveDataViewType, quantiles.Length), AnnotationUtils.Const.ScoreColumnKind.QuantileRegression);
Transforms\ColumnConcatenatingTransformer.cs (3)
515
return new BoundColumn(InputSchema, _parent._columns[iinfo], sources, new
VectorDataViewType
((PrimitiveDataViewType)itemType, totalSize),
938
var vectorizerOutputType = new
VectorDataViewType
(NumberDataViewType.Single, outVectorSize);
945
var dstVectorType = new
VectorDataViewType
(outColType.GetItemType() as PrimitiveDataViewType, outVectorSize);
Transforms\FeatureContributionCalculationTransformer.cs (1)
200
return new[] { new DataViewSchema.DetachedColumn(DefaultColumnNames.FeatureContributions, new
VectorDataViewType
(NumberDataViewType.Single, _featureColumnType.Size), builder.ToAnnotations()) };
Transforms\Hashing.cs (2)
168
return new
VectorDataViewType
(itemType, vectorType.Size);
254
_kvTypes[invertIinfos[i]] = new
VectorDataViewType
(TextDataViewType.Instance, _keyValues[invertIinfos[i]].Length);
Transforms\InvertHashUtils.cs (2)
393
var result = factory.TryGetCodec(new
VectorDataViewType
(TextDataViewType.Instance), out codec);
469
kvTypesLocal[iinfo] = new
VectorDataViewType
(TextDataViewType.Instance, keyValuesLocal[iinfo].Length);
Transforms\KeyToValue.cs (3)
512
var castNodeOutput = ctx.AddIntermediateVariable(new
VectorDataViewType
(NumberDataViewType.Int64, srcShape), "CastNodeOutput");
520
labelEncoderOutput = ctx.AddIntermediateVariable(new
VectorDataViewType
(NumberDataViewType.Single, srcShape), "CastNodeOutput");
524
labelEncoderOutput = ctx.AddIntermediateVariable(new
VectorDataViewType
(TextDataViewType.Instance, srcShape), "CastNodeOutput");
Transforms\KeyToVector.cs (1)
260
_types[i] = new
VectorDataViewType
(NumberDataViewType.Single, keyCount);
Transforms\Normalizer.cs (1)
442
return isVectorOld ? (DataViewType)(new
VectorDataViewType
(itemTypeOld, vectorSize)) : itemTypeOld;
Transforms\SlotsDroppingTransformer.cs (3)
545
type = new
VectorDataViewType
(vectorType.ItemType, Math.Max(dstLength, 1));
841
var type = new
VectorDataViewType
(vectorType.ItemType, Math.Max(dstLength, 1));
847
builder.Add(AnnotationUtils.Kinds.SlotNames, new
VectorDataViewType
(TextDataViewType.Instance, dstLength), slotNamesGetter);
Transforms\ValueMapping.cs (5)
1088
var castOutput = ctx.AddIntermediateVariable(new
VectorDataViewType
(itemType, (int)srcShape[1]), "castOutput");
1114
(typeValue == NumberDataViewType.Double || typeValue == BooleanDataViewType.Instance) ? ctx.AddIntermediateVariable(new
VectorDataViewType
(NumberDataViewType.Single, (int)srcShape[1]), "LabelEncoderOutput") :
1115
ctx.AddIntermediateVariable(new
VectorDataViewType
(NumberDataViewType.Int64, (int)srcShape[1]), "LabelEncoderOutput");
1200
var castOutput = ctx.AddIntermediateVariable(new
VectorDataViewType
(TextDataViewType.Instance, (int)srcShape[1]), "castOutput");
1287
colType = new
VectorDataViewType
(ColumnTypeExtensions.PrimitiveTypeFromType(_valueMap.ValueColumn.Type.GetItemType().RawType));
Transforms\ValueToKeyMappingTransformer.cs (2)
791
var castOutput = ctx.AddIntermediateVariable(new
VectorDataViewType
(TextDataViewType.Instance, (int)srcShape[1]), "castOutput");
804
var castOutput = ctx.AddIntermediateVariable(new
VectorDataViewType
(NumberDataViewType.Single, (int)srcShape[1]), "castOutput");
Microsoft.ML.Ensemble (5)
PipelineEnsemble.cs (2)
280
_scoreType = new
VectorDataViewType
(NumberDataViewType.Single, classCount);
287
_scoreType = new
VectorDataViewType
(NumberDataViewType.Single, classCount);
Trainer\EnsembleDistributionModelParameters.cs (1)
102
return inputType ?? new
VectorDataViewType
(NumberDataViewType.Single);
Trainer\EnsembleModelParameters.cs (1)
93
return inputType ?? new
VectorDataViewType
(NumberDataViewType.Single);
Trainer\Multiclass\EnsembleMulticlassModelParameters.cs (1)
91
inputType = new
VectorDataViewType
(NumberDataViewType.Single);
Microsoft.ML.EntryPoints (1)
PermutationFeatureImportance.cs (1)
325
schema[metricName].ColumnType = new
VectorDataViewType
(type, size);
Microsoft.ML.FastTree (7)
FastTree.cs (2)
2853
InputType = new
VectorDataViewType
(NumberDataViewType.Single, NumFeatures);
2891
InputType = new
VectorDataViewType
(NumberDataViewType.Single, NumFeatures);
GamModelParameters.cs (2)
112
_inputType = new
VectorDataViewType
(NumberDataViewType.Single, _numInputFeatures);
162
_inputType = new
VectorDataViewType
(NumberDataViewType.Single, _numInputFeatures);
TreeEnsembleFeaturizer.cs (3)
118
var treeValueType = new
VectorDataViewType
(NumberDataViewType.Single, owner._ensemble.TrainedEnsemble.NumTrees);
121
var leafIdType = new
VectorDataViewType
(NumberDataViewType.Single, owner._totalLeafCount);
129
var pathIdType = new
VectorDataViewType
(NumberDataViewType.Single, owner._totalLeafCount - owner._ensemble.TrainedEnsemble.NumTrees);
Microsoft.ML.ImageAnalytics (1)
ImageLoader.cs (1)
365
return new
VectorDataViewType
(NumberDataViewType.Byte);
Microsoft.ML.IntegrationTests (3)
ModelFiles.cs (2)
235
inputSchemaDefinition[nameof(ModelInput.CategoricalFeatures)].ColumnType = new
VectorDataViewType
(TextDataViewType.Instance, 5);
236
inputSchemaDefinition[nameof(ModelInput.NumericalFeatures)].ColumnType = new
VectorDataViewType
(NumberDataViewType.Single, 3);
SchemaDefinitionTests.cs (1)
76
outputSchemaDefinition["Features"].ColumnType = new
VectorDataViewType
(NumberDataViewType.Single, (schema["Features"].Type as VectorDataViewType).Size * 2);
Microsoft.ML.KMeansClustering (6)
KMeansModelParameters.cs (6)
101
_inputType = new
VectorDataViewType
(NumberDataViewType.Single, _dimensionality);
102
_outputType = new
VectorDataViewType
(NumberDataViewType.Single, _k);
143
_inputType = new
VectorDataViewType
(NumberDataViewType.Single, _dimensionality);
144
_outputType = new
VectorDataViewType
(NumberDataViewType.Single, _k);
337
var nameX2 = ctx.AddIntermediateVariable(new
VectorDataViewType
(NumberDataViewType.Single, 1), "X2");
343
var dataViewType = new
VectorDataViewType
(NumberDataViewType.Single, _centroids.Length);
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
591
DataViewType outType = (info.Kind == WhiteningKind.PrincipalComponentAnalysis && info.Rank > 0) ? new
VectorDataViewType
(NumberDataViewType.Single, info.Rank) : _srcTypes[iinfo];
Microsoft.ML.OnnxTransformer (2)
OnnxTypeParser.cs (1)
242
return new
VectorDataViewType
((PrimitiveDataViewType)GetScalarDataViewType(typeProto.TensorType.ElemType), 0);
OnnxUtils.cs (1)
329
dataViewType = new
VectorDataViewType
(vectorType.ItemType);
Microsoft.ML.Parquet (1)
ParquetLoader.cs (1)
353
return new
VectorDataViewType
(NumberDataViewType.Byte);
Microsoft.ML.PCA (5)
PcaTrainer.cs (2)
472
_inputType = new
VectorDataViewType
(NumberDataViewType.Single, _dimension);
516
_inputType = new
VectorDataViewType
(NumberDataViewType.Single, _dimension);
PcaTransformer.cs (3)
106
public DataViewType OutputType => new
VectorDataViewType
(NumberDataViewType.Single, Rank);
556
new
VectorDataViewType
(NumberDataViewType.Single, _parent._transformInfos[i].Dimension).ToString(), colSchemaInfo.InputType.ToString());
638
new
VectorDataViewType
(NumberDataViewType.Single, transformInfo.Dimension);
Microsoft.ML.PerformanceTests (1)
HashBench.cs (1)
130
InitMapMurmurHashV2(vbuf, new
VectorDataViewType
(itemType, vals.Length), numberOfBits, vbuf.CopyTo);
Microsoft.ML.Samples (1)
Dynamic\DataOperations\LoadFromEnumerable.cs (1)
77
definedSchema[0].ColumnType = new
VectorDataViewType
(vectorItemType,
Microsoft.ML.StandardTrainers (32)
LdSvm\LdSvmModelParameters.cs (2)
84
InputType = new
VectorDataViewType
(NumberDataViewType.Single, _w[0].Length);
121
InputType = new
VectorDataViewType
(NumberDataViewType.Single, numFeatures);
Standard\LinearModelParameters.cs (3)
128
_inputType = new
VectorDataViewType
(NumberDataViewType.Single, Weight.Length);
202
_inputType = new
VectorDataViewType
(NumberDataViewType.Single, Weight.Length);
380
var colType = new
VectorDataViewType
(NumberDataViewType.Single, Weight.Length);
Standard\LogisticRegression\MulticlassLogisticRegression.cs (6)
478
InputType = new
VectorDataViewType
(NumberDataViewType.Single, NumberOfFeatures);
479
OutputType = new
VectorDataViewType
(NumberDataViewType.Single, NumberOfClasses);
523
InputType = new
VectorDataViewType
(NumberDataViewType.Single, NumberOfFeatures);
524
OutputType = new
VectorDataViewType
(NumberDataViewType.Single, NumberOfClasses);
605
InputType = new
VectorDataViewType
(NumberDataViewType.Single, NumberOfFeatures);
606
OutputType = new
VectorDataViewType
(NumberDataViewType.Single, NumberOfClasses);
Standard\ModelStatistics.cs (1)
581
var colType = new
VectorDataViewType
(NumberDataViewType.Single, stdErr.Length);
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (9)
304
_inputType = new
VectorDataViewType
(NumberDataViewType.Single, _featureCount);
305
_outputType = new
VectorDataViewType
(NumberDataViewType.Single, _labelCount);
351
_inputType = new
VectorDataViewType
(NumberDataViewType.Single, _featureCount);
352
_outputType = new
VectorDataViewType
(NumberDataViewType.Single, _labelCount);
450
var typeOne = new
VectorDataViewType
(NumberDataViewType.Single, 1);
451
var typeFea = new
VectorDataViewType
(NumberDataViewType.Single, _featureHistogram[0].Length);
455
var greaterOutput = ctx.AddIntermediateVariable(new
VectorDataViewType
(BooleanDataViewType.Instance, _featureHistogram[0].Length), "greaterOutput");
549
var scoreIndex = ctx.AddIntermediateVariable(new
VectorDataViewType
(NumberDataViewType.Int64, 1), "ScoreIndex");
576
var logOutput = ctx.AddIntermediateVariable(new
VectorDataViewType
(NumberDataViewType.Single, _featureHistogram[0].Length), "LogOutput");
Standard\MulticlassClassification\OneVersusAllTrainer.cs (5)
363
DistType = new
VectorDataViewType
(NumberDataViewType.Single, _impl.Predictors.Length);
395
DistType = new
VectorDataViewType
(NumberDataViewType.Single, _impl.Predictors.Length);
668
var type = new
VectorDataViewType
(NumberDataViewType.Single, probabilityOutputs.Length);
835
var type = new
VectorDataViewType
(NumberDataViewType.Single, divOutputs.Length);
924
var type = new
VectorDataViewType
(NumberDataViewType.Single, probabilityOutputs.Length);
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (2)
283
_outputType = new
VectorDataViewType
(NumberDataViewType.Single, _numClasses);
311
_outputType = new
VectorDataViewType
(NumberDataViewType.Single, _numClasses);
Standard\Simple\SimpleTrainers.cs (4)
81
_inputType = new
VectorDataViewType
(NumberDataViewType.Single);
98
_inputType = new
VectorDataViewType
(NumberDataViewType.Single);
366
_inputType = new
VectorDataViewType
(NumberDataViewType.Single);
380
_inputType = new
VectorDataViewType
(NumberDataViewType.Single);
Microsoft.ML.TensorFlow (2)
TensorflowUtils.cs (2)
75
metadataBuilder.Add(TensorflowUpstreamOperatorsKind, new
VectorDataViewType
(TextDataViewType.Instance, op.NumInputs),
90
DataViewType columnType = new
VectorDataViewType
(mlType);
Microsoft.ML.TensorFlow.Tests (1)
TensorFlowEstimatorTests.cs (1)
229
Assert.Equal(new
VectorDataViewType
(NumberDataViewType.Single, 10), schema["Output"].Type);
Microsoft.ML.Tests (15)
FakeSchemaTest.cs (1)
26
schemaBuilder.AddColumn("A", new
VectorDataViewType
(NumberDataViewType.Single, 94));
Scenarios\Api\TestApi.cs (3)
211
var coltypeStringArray = new
VectorDataViewType
(coltypeString, valueStringArray.Length);
214
var coltypeFloatArray = new
VectorDataViewType
(coltypeFloat, valueFloatArray.Length);
217
var coltypeVBuffer = new
VectorDataViewType
(coltypeFloat, valueVBuffer.Length);
SvmLightTests.cs (9)
75
schemaDef["Features"].ColumnType = new
VectorDataViewType
(NumberDataViewType.Single, 5);
104
schemaDef["Features"].ColumnType = new
VectorDataViewType
(NumberDataViewType.Single, 5);
132
schemaDef["Features"].ColumnType = new
VectorDataViewType
(NumberDataViewType.Single, 6);
160
schemaDef["Features"].ColumnType = new
VectorDataViewType
(NumberDataViewType.Single, 3);
163
new
VectorDataViewType
(TextDataViewType.Instance, 3));
211
schemaDef["Features"].ColumnType = new
VectorDataViewType
(NumberDataViewType.Single, 1);
305
schemaDef["Features"].ColumnType = new
VectorDataViewType
(NumberDataViewType.Single, 6);
462
schemaDef["Features"].ColumnType = new
VectorDataViewType
(NumberDataViewType.Single, 6);
489
schemaDef["Features"].ColumnType = new
VectorDataViewType
(NumberDataViewType.Single, 6);
Transformers\HashTests.cs (2)
166
builder.Add("Foo", new
VectorDataViewType
(type, vecLen), (ref VBuffer<T> dst) => denseVec.CopyTo(ref dst));
197
builder.Add("Foo", new
VectorDataViewType
(type, vecLen), (ref VBuffer<T> dst) => sparseVec.CopyTo(ref dst));
Microsoft.ML.TimeSeries (10)
SequentialAnomalyDetectionTransformBase.cs (2)
171
: base(Contracts.CheckRef(env, nameof(env)).Register(name), windowSize, initialWindowSize, outputColumnName, inputColumnName, new
VectorDataViewType
(NumberDataViewType.Double, GetOutputLength(alertingScore, env)))
336
info[0] = new DataViewSchema.DetachedColumn(_parent.OutputColumnName, new
VectorDataViewType
(NumberDataViewType.Double, _parent.OutputLength), meta.ToAnnotations());
SequentialForecastingTransformBase.cs (5)
64
confidenceUpperBoundColumn, inputColumnName, new
VectorDataViewType
(NumberDataViewType.Single, outputLength))
133
info[0] = new DetachedColumn(_parent.OutputColumnName, new
VectorDataViewType
(NumberDataViewType.Single, _parent._outputLength));
134
info[1] = new DetachedColumn(_parent.ConfidenceLowerBoundColumn, new
VectorDataViewType
(NumberDataViewType.Single, _parent._outputLength));
135
info[2] = new DetachedColumn(_parent.ConfidenceUpperBoundColumn, new
VectorDataViewType
(NumberDataViewType.Single, _parent._outputLength));
140
info[0] = new DetachedColumn(_parent.OutputColumnName, new
VectorDataViewType
(NumberDataViewType.Single, _parent._outputLength));
SrCnnEntireAnomalyDetector.cs (1)
200
_bindings = new Bindings(input.Schema, inputColumnName, outputColumnName, new
VectorDataViewType
(NumberDataViewType.Double, _outputLength));
SrCnnTransformBase.cs (2)
71
: base(Contracts.CheckRef(env, nameof(env)).Register(name), windowSize, initialWindowSize, outputColumnName, inputColumnName, new
VectorDataViewType
(NumberDataViewType.Double, 3))
179
info[0] = new DataViewSchema.DetachedColumn(_parent.OutputColumnName, new
VectorDataViewType
(NumberDataViewType.Double, _parent.OutputLength), meta.ToAnnotations());
Microsoft.ML.TorchSharp (9)
AutoFormerV2\ObjectDetectionTrainer.cs (5)
484
new
VectorDataViewType
(new KeyDataViewType(typeof(uint), uint.MaxValue)).ToString(), labelCol.GetTypeString());
490
new
VectorDataViewType
(NumberDataViewType.Single).ToString(), boundingBoxCol.GetTypeString());
767
info[0] = new DataViewSchema.DetachedColumn(_parent.Options.PredictedLabelColumnName, new
VectorDataViewType
(new KeyDataViewType(typeof(uint), _parent.Options.NumberOfClasses)), labelBuilder.ToAnnotations());
769
info[1] = new DataViewSchema.DetachedColumn(_parent.Options.ScoreColumnName, new
VectorDataViewType
(NumberDataViewType.Single), meta.ToAnnotations());
771
info[2] = new DataViewSchema.DetachedColumn(_parent.Options.PredictedBoundingBoxColumnName, new
VectorDataViewType
(NumberDataViewType.Single));
NasBert\NasBertTrainer.cs (2)
536
info[1] = new DataViewSchema.DetachedColumn(Parent.Options.ScoreColumnName, new
VectorDataViewType
(NumberDataViewType.Single, Parent.Options.NumberOfClasses), meta.ToAnnotations());
548
info[0] = new DataViewSchema.DetachedColumn(Parent.Options.PredictionColumnName, new
VectorDataViewType
(new KeyDataViewType(typeof(uint), Parent.Options.NumberOfClasses - 1)), labelBuilder.ToAnnotations());
Roberta\QATrainer.cs (2)
746
info[0] = new DataViewSchema.DetachedColumn(_parent.Options.PredictedAnswerColumnName, new
VectorDataViewType
(TextDataViewType.Instance));
748
info[1] = new DataViewSchema.DetachedColumn(_parent.Options.ScoreColumnName, new
VectorDataViewType
(NumberDataViewType.Single), meta.ToAnnotations());
Microsoft.ML.TorchSharp.Tests (2)
QATests.cs (2)
58
Assert.Equal(new
VectorDataViewType
(TextDataViewType.Instance), transformerSchema[4].Type);
59
Assert.Equal(new
VectorDataViewType
(NumberDataViewType.Single), transformerSchema[5].Type);
Microsoft.ML.Transforms (22)
GroupTransform.cs (1)
298
var aggregatedResultType = new
VectorDataViewType
(aggregatedValueType);
HashJoiningTransform.cs (2)
140
OutputColumnType = new
VectorDataViewType
(itemType, SlotMap.Length);
403
new
VectorDataViewType
(TextDataViewType.Instance, ex.SlotMap.Length), GetSlotNames);
KeyToVectorMapping.cs (1)
182
_types[i] = new
VectorDataViewType
(NumberDataViewType.Single, _bitsPerKey[i]);
MissingValueDroppingTransformer.cs (1)
201
_types[i] = new
VectorDataViewType
((PrimitiveDataViewType)srcCol.Type.GetItemType());
MissingValueIndicatorTransform.cs (1)
142
types[iinfo] = new
VectorDataViewType
(NumberDataViewType.Single, 2);
RandomFourierFeaturizing.cs (2)
250
new
VectorDataViewType
(NumberDataViewType.Single, _transformInfos[col].SrcDim).ToString(), type.ToString());
489
_types[i] = new
VectorDataViewType
(NumberDataViewType.Single, _parent._transformInfos[i].RotationTerms == null ?
SvmLight\SvmLightLoader.cs (1)
722
schemaDef[0].ColumnType = new
VectorDataViewType
(NumberDataViewType.Single, keyCount);
Text\LdaTransform.cs (1)
591
result[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, new
VectorDataViewType
(NumberDataViewType.Single, info.NumberOfTopics), null);
Text\NgramHashingTransformer.cs (2)
407
_types[i] = new
VectorDataViewType
(NumberDataViewType.Single, 1 << _parent._columns[i].NumberOfBits);
852
types[iinfo] = new
VectorDataViewType
(TextDataViewType.Instance, vec.Length);
Text\StopWordsRemovingTransformer.cs (3)
377
_types[i] = new
VectorDataViewType
(TextDataViewType.Instance);
773
private static readonly DataViewType _outputType = new
VectorDataViewType
(TextDataViewType.Instance);
1080
_types[i] = new
VectorDataViewType
(TextDataViewType.Instance);
Text\TextNormalizing.cs (1)
212
_types[i] = srcType is VectorDataViewType ? new
VectorDataViewType
(TextDataViewType.Instance) : srcType;
Text\TokenizingByCharacters.cs (2)
203
_type = new
VectorDataViewType
(keyType);
240
dataViewType = new
VectorDataViewType
(TextDataViewType.Instance, _sourceVectorLength[iinfo]);
Text\WordEmbeddingsExtractor.cs (2)
324
_outputType = new
VectorDataViewType
(NumberDataViewType.Single, 3 * _parent._currentVocab.Dimension);
939
throw _host.ExceptSchemaMismatch(nameof(inputSchema), "input", colInfo.InputColumnName, new
VectorDataViewType
(TextDataViewType.Instance).ToString(), col.GetTypeString());
Text\WordTokenizing.cs (2)
212
_type = new
VectorDataViewType
(TextDataViewType.Instance);
420
var reshapeOutput = ctx.AddIntermediateVariable(new
VectorDataViewType
(TextDataViewType.Instance, 1), column.Name);
Microsoft.ML.Vision (4)
ImageClassificationTrainer.cs (4)
1385
_inputType = new
VectorDataViewType
(NumberDataViewType.Byte);
1386
_outputType = new
VectorDataViewType
(NumberDataViewType.Single, classCount);
1423
_inputType = new
VectorDataViewType
(NumberDataViewType.Byte);
1424
_outputType = new
VectorDataViewType
(NumberDataViewType.Single, _classCount);