219 references to VectorDataViewType
Microsoft.Data.Analysis (14)
DataFrameColumns\VBufferDataFrameColumn.cs (14)
317return new VectorDataViewType(BooleanDataViewType.Instance); 321return new VectorDataViewType(NumberDataViewType.Byte); 325return new VectorDataViewType(NumberDataViewType.Double); 329return new VectorDataViewType(NumberDataViewType.Single); 333return new VectorDataViewType(NumberDataViewType.Int32); 337return new VectorDataViewType(NumberDataViewType.Int64); 341return new VectorDataViewType(NumberDataViewType.SByte); 345return new VectorDataViewType(NumberDataViewType.Int16); 349return new VectorDataViewType(NumberDataViewType.UInt32); 353return new VectorDataViewType(NumberDataViewType.UInt64); 357return new VectorDataViewType(NumberDataViewType.UInt16); 361return new VectorDataViewType(NumberDataViewType.UInt16); 365return new VectorDataViewType(NumberDataViewType.Double); 369return new VectorDataViewType(TextDataViewType.Instance);
Microsoft.ML.AutoML (1)
AutoMLExperiment\ITrialResultManager.cs (1)
50schemaBuilder.AddColumn("parameter", new VectorDataViewType(NumberDataViewType.Double));
Microsoft.ML.AutoML.Tests (6)
TransformInferenceTests.cs (6)
251new DatasetColumnInfo(DefaultColumnNames.Features, new VectorDataViewType(NumberDataViewType.Single), ColumnPurpose.NumericFeature, new ColumnDimensions(null, null)), 304new DatasetColumnInfo("Numeric", new VectorDataViewType(NumberDataViewType.Single), ColumnPurpose.NumericFeature, new ColumnDimensions(null, null)), 637new DatasetColumnInfo(DefaultColumnNames.Features, new VectorDataViewType(NumberDataViewType.Single), ColumnPurpose.NumericFeature, new ColumnDimensions(null, null)), 647new DatasetColumnInfo(DefaultColumnNames.Features, new VectorDataViewType(NumberDataViewType.Single), ColumnPurpose.NumericFeature, new ColumnDimensions(null, null)), 673new DatasetColumnInfo(DefaultColumnNames.Features, new VectorDataViewType(NumberDataViewType.Single), ColumnPurpose.NumericFeature, new ColumnDimensions(null, null)), 684new 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)
145return new VectorDataViewType(TextDataViewType.Instance, size);
Microsoft.ML.Core.Tests (3)
UnitTests\ColumnTypes.cs (3)
39tmp1 = new VectorDataViewType(tmp, size); 66tmp1 = new VectorDataViewType(tmp, size); 86tmp1 = new VectorDataViewType(tmp, size);
Microsoft.ML.Data (61)
Data\SchemaDefinition.cs (1)
459columnType = new VectorDataViewType(itemType, 0);
DataLoadSave\Binary\Codecs.cs (1)
1147type = new VectorDataViewType(itemType);
DataLoadSave\Database\DatabaseLoader.cs (1)
452type = new VectorDataViewType(itemType, size);
DataLoadSave\FakeSchema.cs (2)
53curType = new VectorDataViewType((PrimitiveDataViewType)curType, 0); 55curType = new VectorDataViewType((PrimitiveDataViewType)curType, AllVectorSizes);
DataLoadSave\Text\TextLoader.cs (2)
677type = new VectorDataViewType(itemType); 679type = new VectorDataViewType(itemType, size);
DataLoadSave\Transpose\TransposeSaver.cs (1)
78var newVectorType = new VectorDataViewType(primitiveType, size: 2);
DataView\ArrayDataViewBuilder.cs (1)
480return new VectorDataViewType(itemType, degree);
DataView\DataViewConstructionUtils.cs (1)
887annotationType = isVector ? new VectorDataViewType(primitiveItemType) : (DataViewType)primitiveItemType;
DataView\InternalSchemaDefinition.cs (1)
269colType = isVector ? new VectorDataViewType(itemType) : (DataViewType)itemType;
DataView\LambdaColumnMapper.cs (1)
135bldr.AddGetter(AnnotationUtils.Kinds.SlotNames, new VectorDataViewType(TextDataViewType.Instance, vectorSize), mdGetter);
DataView\Transposer.cs (3)
275return 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); 724var slotNamesType = new VectorDataViewType(TextDataViewType.Instance, _numClusters);
Evaluators\EvaluatorUtils.cs (2)
547var typeDst = new VectorDataViewType(itemType, slotNames.Count); 987variableSizeVectorColumnName + "_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)
552labelType = new VectorDataViewType((PrimitiveDataViewType)t.ItemType, t.Size); 553var slotNamesType = new VectorDataViewType(TextDataViewType.Instance, t.Size); 561scoreType = 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); 355var 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)
130var typeIn = ValueMapper != null ? ValueMapper.InputType : new VectorDataViewType(NumberDataViewType.Single);
Scorers\ScoreSchemaFactory.cs (1)
87var partialSchema = Create(new VectorDataViewType(scoreType as PrimitiveDataViewType, quantiles.Length), AnnotationUtils.Const.ScoreColumnKind.QuantileRegression);
Transforms\ColumnConcatenatingTransformer.cs (3)
515return new BoundColumn(InputSchema, _parent._columns[iinfo], sources, new VectorDataViewType((PrimitiveDataViewType)itemType, totalSize), 938var vectorizerOutputType = new VectorDataViewType(NumberDataViewType.Single, outVectorSize); 945var dstVectorType = new VectorDataViewType(outColType.GetItemType() as PrimitiveDataViewType, outVectorSize);
Transforms\FeatureContributionCalculationTransformer.cs (1)
200return new[] { new DataViewSchema.DetachedColumn(DefaultColumnNames.FeatureContributions, new VectorDataViewType(NumberDataViewType.Single, _featureColumnType.Size), builder.ToAnnotations()) };
Transforms\Hashing.cs (2)
168return new VectorDataViewType(itemType, vectorType.Size); 254_kvTypes[invertIinfos[i]] = new VectorDataViewType(TextDataViewType.Instance, _keyValues[invertIinfos[i]].Length);
Transforms\InvertHashUtils.cs (2)
393var result = factory.TryGetCodec(new VectorDataViewType(TextDataViewType.Instance), out codec); 469kvTypesLocal[iinfo] = new VectorDataViewType(TextDataViewType.Instance, keyValuesLocal[iinfo].Length);
Transforms\KeyToValue.cs (3)
512var castNodeOutput = ctx.AddIntermediateVariable(new VectorDataViewType(NumberDataViewType.Int64, srcShape), "CastNodeOutput"); 520labelEncoderOutput = ctx.AddIntermediateVariable(new VectorDataViewType(NumberDataViewType.Single, srcShape), "CastNodeOutput"); 524labelEncoderOutput = ctx.AddIntermediateVariable(new VectorDataViewType(TextDataViewType.Instance, srcShape), "CastNodeOutput");
Transforms\KeyToVector.cs (1)
260_types[i] = new VectorDataViewType(NumberDataViewType.Single, keyCount);
Transforms\Normalizer.cs (1)
442return isVectorOld ? (DataViewType)(new VectorDataViewType(itemTypeOld, vectorSize)) : itemTypeOld;
Transforms\SlotsDroppingTransformer.cs (3)
545type = new VectorDataViewType(vectorType.ItemType, Math.Max(dstLength, 1)); 841var type = new VectorDataViewType(vectorType.ItemType, Math.Max(dstLength, 1)); 847builder.Add(AnnotationUtils.Kinds.SlotNames, new VectorDataViewType(TextDataViewType.Instance, dstLength), slotNamesGetter);
Transforms\ValueMapping.cs (5)
1088var 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") : 1115ctx.AddIntermediateVariable(new VectorDataViewType(NumberDataViewType.Int64, (int)srcShape[1]), "LabelEncoderOutput"); 1200var castOutput = ctx.AddIntermediateVariable(new VectorDataViewType(TextDataViewType.Instance, (int)srcShape[1]), "castOutput"); 1287colType = new VectorDataViewType(ColumnTypeExtensions.PrimitiveTypeFromType(_valueMap.ValueColumn.Type.GetItemType().RawType));
Transforms\ValueToKeyMappingTransformer.cs (2)
791var castOutput = ctx.AddIntermediateVariable(new VectorDataViewType(TextDataViewType.Instance, (int)srcShape[1]), "castOutput"); 804var 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)
102return inputType ?? new VectorDataViewType(NumberDataViewType.Single);
Trainer\EnsembleModelParameters.cs (1)
93return inputType ?? new VectorDataViewType(NumberDataViewType.Single);
Trainer\Multiclass\EnsembleMulticlassModelParameters.cs (1)
91inputType = new VectorDataViewType(NumberDataViewType.Single);
Microsoft.ML.EntryPoints (1)
PermutationFeatureImportance.cs (1)
325schema[metricName].ColumnType = new VectorDataViewType(type, size);
Microsoft.ML.FastTree (7)
FastTree.cs (2)
2853InputType = new VectorDataViewType(NumberDataViewType.Single, NumFeatures); 2891InputType = 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)
118var treeValueType = new VectorDataViewType(NumberDataViewType.Single, owner._ensemble.TrainedEnsemble.NumTrees); 121var leafIdType = new VectorDataViewType(NumberDataViewType.Single, owner._totalLeafCount); 129var pathIdType = new VectorDataViewType(NumberDataViewType.Single, owner._totalLeafCount - owner._ensemble.TrainedEnsemble.NumTrees);
Microsoft.ML.ImageAnalytics (1)
ImageLoader.cs (1)
365return new VectorDataViewType(NumberDataViewType.Byte);
Microsoft.ML.IntegrationTests (3)
ModelFiles.cs (2)
235inputSchemaDefinition[nameof(ModelInput.CategoricalFeatures)].ColumnType = new VectorDataViewType(TextDataViewType.Instance, 5); 236inputSchemaDefinition[nameof(ModelInput.NumericalFeatures)].ColumnType = new VectorDataViewType(NumberDataViewType.Single, 3);
SchemaDefinitionTests.cs (1)
76outputSchemaDefinition["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); 337var nameX2 = ctx.AddIntermediateVariable(new VectorDataViewType(NumberDataViewType.Single, 1), "X2"); 343var dataViewType = new VectorDataViewType(NumberDataViewType.Single, _centroids.Length);
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
591DataViewType outType = (info.Kind == WhiteningKind.PrincipalComponentAnalysis && info.Rank > 0) ? new VectorDataViewType(NumberDataViewType.Single, info.Rank) : _srcTypes[iinfo];
Microsoft.ML.OnnxTransformer (2)
OnnxTypeParser.cs (1)
242return new VectorDataViewType((PrimitiveDataViewType)GetScalarDataViewType(typeProto.TensorType.ElemType), 0);
OnnxUtils.cs (1)
329dataViewType = new VectorDataViewType(vectorType.ItemType);
Microsoft.ML.Parquet (1)
ParquetLoader.cs (1)
353return 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)
106public DataViewType OutputType => new VectorDataViewType(NumberDataViewType.Single, Rank); 556new VectorDataViewType(NumberDataViewType.Single, _parent._transformInfos[i].Dimension).ToString(), colSchemaInfo.InputType.ToString()); 638new VectorDataViewType(NumberDataViewType.Single, transformInfo.Dimension);
Microsoft.ML.PerformanceTests (1)
HashBench.cs (1)
130InitMapMurmurHashV2(vbuf, new VectorDataViewType(itemType, vals.Length), numberOfBits, vbuf.CopyTo);
Microsoft.ML.Samples (1)
Dynamic\DataOperations\LoadFromEnumerable.cs (1)
77definedSchema[0].ColumnType = new VectorDataViewType(vectorItemType,
Microsoft.ML.StandardTrainers (32)
LdSvm\LdSvmModelParameters.cs (2)
84InputType = new VectorDataViewType(NumberDataViewType.Single, _w[0].Length); 121InputType = 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); 380var colType = new VectorDataViewType(NumberDataViewType.Single, Weight.Length);
Standard\LogisticRegression\MulticlassLogisticRegression.cs (6)
478InputType = new VectorDataViewType(NumberDataViewType.Single, NumberOfFeatures); 479OutputType = new VectorDataViewType(NumberDataViewType.Single, NumberOfClasses); 523InputType = new VectorDataViewType(NumberDataViewType.Single, NumberOfFeatures); 524OutputType = new VectorDataViewType(NumberDataViewType.Single, NumberOfClasses); 605InputType = new VectorDataViewType(NumberDataViewType.Single, NumberOfFeatures); 606OutputType = new VectorDataViewType(NumberDataViewType.Single, NumberOfClasses);
Standard\ModelStatistics.cs (1)
581var 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); 450var typeOne = new VectorDataViewType(NumberDataViewType.Single, 1); 451var typeFea = new VectorDataViewType(NumberDataViewType.Single, _featureHistogram[0].Length); 455var greaterOutput = ctx.AddIntermediateVariable(new VectorDataViewType(BooleanDataViewType.Instance, _featureHistogram[0].Length), "greaterOutput"); 549var scoreIndex = ctx.AddIntermediateVariable(new VectorDataViewType(NumberDataViewType.Int64, 1), "ScoreIndex"); 576var logOutput = ctx.AddIntermediateVariable(new VectorDataViewType(NumberDataViewType.Single, _featureHistogram[0].Length), "LogOutput");
Standard\MulticlassClassification\OneVersusAllTrainer.cs (5)
363DistType = new VectorDataViewType(NumberDataViewType.Single, _impl.Predictors.Length); 395DistType = new VectorDataViewType(NumberDataViewType.Single, _impl.Predictors.Length); 668var type = new VectorDataViewType(NumberDataViewType.Single, probabilityOutputs.Length); 835var type = new VectorDataViewType(NumberDataViewType.Single, divOutputs.Length); 924var 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)
75metadataBuilder.Add(TensorflowUpstreamOperatorsKind, new VectorDataViewType(TextDataViewType.Instance, op.NumInputs), 90DataViewType columnType = new VectorDataViewType(mlType);
Microsoft.ML.TensorFlow.Tests (1)
TensorFlowEstimatorTests.cs (1)
229Assert.Equal(new VectorDataViewType(NumberDataViewType.Single, 10), schema["Output"].Type);
Microsoft.ML.Tests (15)
FakeSchemaTest.cs (1)
26schemaBuilder.AddColumn("A", new VectorDataViewType(NumberDataViewType.Single, 94));
Scenarios\Api\TestApi.cs (3)
211var coltypeStringArray = new VectorDataViewType(coltypeString, valueStringArray.Length); 214var coltypeFloatArray = new VectorDataViewType(coltypeFloat, valueFloatArray.Length); 217var coltypeVBuffer = new VectorDataViewType(coltypeFloat, valueVBuffer.Length);
SvmLightTests.cs (9)
75schemaDef["Features"].ColumnType = new VectorDataViewType(NumberDataViewType.Single, 5); 104schemaDef["Features"].ColumnType = new VectorDataViewType(NumberDataViewType.Single, 5); 132schemaDef["Features"].ColumnType = new VectorDataViewType(NumberDataViewType.Single, 6); 160schemaDef["Features"].ColumnType = new VectorDataViewType(NumberDataViewType.Single, 3); 163new VectorDataViewType(TextDataViewType.Instance, 3)); 211schemaDef["Features"].ColumnType = new VectorDataViewType(NumberDataViewType.Single, 1); 305schemaDef["Features"].ColumnType = new VectorDataViewType(NumberDataViewType.Single, 6); 462schemaDef["Features"].ColumnType = new VectorDataViewType(NumberDataViewType.Single, 6); 489schemaDef["Features"].ColumnType = new VectorDataViewType(NumberDataViewType.Single, 6);
Transformers\HashTests.cs (2)
166builder.Add("Foo", new VectorDataViewType(type, vecLen), (ref VBuffer<T> dst) => denseVec.CopyTo(ref dst)); 197builder.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))) 336info[0] = new DataViewSchema.DetachedColumn(_parent.OutputColumnName, new VectorDataViewType(NumberDataViewType.Double, _parent.OutputLength), meta.ToAnnotations());
SequentialForecastingTransformBase.cs (5)
64confidenceUpperBoundColumn, inputColumnName, new VectorDataViewType(NumberDataViewType.Single, outputLength)) 133info[0] = new DetachedColumn(_parent.OutputColumnName, new VectorDataViewType(NumberDataViewType.Single, _parent._outputLength)); 134info[1] = new DetachedColumn(_parent.ConfidenceLowerBoundColumn, new VectorDataViewType(NumberDataViewType.Single, _parent._outputLength)); 135info[2] = new DetachedColumn(_parent.ConfidenceUpperBoundColumn, new VectorDataViewType(NumberDataViewType.Single, _parent._outputLength)); 140info[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)) 179info[0] = new DataViewSchema.DetachedColumn(_parent.OutputColumnName, new VectorDataViewType(NumberDataViewType.Double, _parent.OutputLength), meta.ToAnnotations());
Microsoft.ML.TorchSharp (9)
AutoFormerV2\ObjectDetectionTrainer.cs (5)
484new VectorDataViewType(new KeyDataViewType(typeof(uint), uint.MaxValue)).ToString(), labelCol.GetTypeString()); 490new VectorDataViewType(NumberDataViewType.Single).ToString(), boundingBoxCol.GetTypeString()); 767info[0] = new DataViewSchema.DetachedColumn(_parent.Options.PredictedLabelColumnName, new VectorDataViewType(new KeyDataViewType(typeof(uint), _parent.Options.NumberOfClasses)), labelBuilder.ToAnnotations()); 769info[1] = new DataViewSchema.DetachedColumn(_parent.Options.ScoreColumnName, new VectorDataViewType(NumberDataViewType.Single), meta.ToAnnotations()); 771info[2] = new DataViewSchema.DetachedColumn(_parent.Options.PredictedBoundingBoxColumnName, new VectorDataViewType(NumberDataViewType.Single));
NasBert\NasBertTrainer.cs (2)
536info[1] = new DataViewSchema.DetachedColumn(Parent.Options.ScoreColumnName, new VectorDataViewType(NumberDataViewType.Single, Parent.Options.NumberOfClasses), meta.ToAnnotations()); 548info[0] = new DataViewSchema.DetachedColumn(Parent.Options.PredictionColumnName, new VectorDataViewType(new KeyDataViewType(typeof(uint), Parent.Options.NumberOfClasses - 1)), labelBuilder.ToAnnotations());
Roberta\QATrainer.cs (2)
746info[0] = new DataViewSchema.DetachedColumn(_parent.Options.PredictedAnswerColumnName, new VectorDataViewType(TextDataViewType.Instance)); 748info[1] = new DataViewSchema.DetachedColumn(_parent.Options.ScoreColumnName, new VectorDataViewType(NumberDataViewType.Single), meta.ToAnnotations());
Microsoft.ML.TorchSharp.Tests (2)
QATests.cs (2)
58Assert.Equal(new VectorDataViewType(TextDataViewType.Instance), transformerSchema[4].Type); 59Assert.Equal(new VectorDataViewType(NumberDataViewType.Single), transformerSchema[5].Type);
Microsoft.ML.Transforms (22)
GroupTransform.cs (1)
298var aggregatedResultType = new VectorDataViewType(aggregatedValueType);
HashJoiningTransform.cs (2)
140OutputColumnType = new VectorDataViewType(itemType, SlotMap.Length); 403new 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)
142types[iinfo] = new VectorDataViewType(NumberDataViewType.Single, 2);
RandomFourierFeaturizing.cs (2)
250new 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)
722schemaDef[0].ColumnType = new VectorDataViewType(NumberDataViewType.Single, keyCount);
Text\LdaTransform.cs (1)
591result[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); 852types[iinfo] = new VectorDataViewType(TextDataViewType.Instance, vec.Length);
Text\StopWordsRemovingTransformer.cs (3)
377_types[i] = new VectorDataViewType(TextDataViewType.Instance); 773private 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); 240dataViewType = new VectorDataViewType(TextDataViewType.Instance, _sourceVectorLength[iinfo]);
Text\WordEmbeddingsExtractor.cs (2)
324_outputType = new VectorDataViewType(NumberDataViewType.Single, 3 * _parent._currentVocab.Dimension); 939throw _host.ExceptSchemaMismatch(nameof(inputSchema), "input", colInfo.InputColumnName, new VectorDataViewType(TextDataViewType.Instance).ToString(), col.GetTypeString());
Text\WordTokenizing.cs (2)
212_type = new VectorDataViewType(TextDataViewType.Instance); 420var 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);