255 instantiations of VectorDataViewType
Microsoft.Data.Analysis (14)
Microsoft.ML.AutoML (1)
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 (4)
Microsoft.ML.Core.Tests (6)
Microsoft.ML.Data (72)
Microsoft.ML.Ensemble (5)
Microsoft.ML.EntryPoints (1)
Microsoft.ML.FastTree (7)
Microsoft.ML.ImageAnalytics (4)
Microsoft.ML.IntegrationTests (3)
Microsoft.ML.KMeansClustering (6)
Microsoft.ML.Mkl.Components (1)
Microsoft.ML.OnnxTransformer (4)
Microsoft.ML.Parquet (1)
Microsoft.ML.PCA (5)
Microsoft.ML.PerformanceTests (1)
Microsoft.ML.Samples (1)
Microsoft.ML.StandardTrainers (35)
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (12)
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);
452var typeLabelByFea = new VectorDataViewType(NumberDataViewType.Single, _labelHistogram.Length, _featureHistogram[0].Length);
453var typeLabelByOne = new VectorDataViewType(NumberDataViewType.Single, _labelHistogram.Length, 1);
455var greaterOutput = ctx.AddIntermediateVariable(new VectorDataViewType(BooleanDataViewType.Instance, _featureHistogram[0].Length), "greaterOutput");
466var isFeaturePresent = ctx.AddIntermediateVariable(new VectorDataViewType(NumberDataViewType.Single, 1, _featureHistogram[0].Length), "isFeaturePresent");
549var scoreIndex = ctx.AddIntermediateVariable(new VectorDataViewType(NumberDataViewType.Int64, 1), "ScoreIndex");
576var logOutput = ctx.AddIntermediateVariable(new VectorDataViewType(NumberDataViewType.Single, _featureHistogram[0].Length), "LogOutput");
Microsoft.ML.TensorFlow (5)
Microsoft.ML.TensorFlow.Tests (2)
Microsoft.ML.Tests (15)
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));
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)
Microsoft.ML.TorchSharp.Tests (2)
Microsoft.ML.Transforms (31)
Microsoft.ML.Vision (4)
689 references to VectorDataViewType
Microsoft.Data.Analysis (3)
Microsoft.ML.AutoML (2)
Microsoft.ML.Core (11)
Microsoft.ML.Core.Tests (10)
Microsoft.ML.Data (356)
Commands\ShowSchemaCommand.cs (7)
141var slotType = transposeDataView?.GetSlotType(col);
197if (!(type is VectorDataViewType vectorType))
214Contracts.Assert(!(type is VectorDataViewType));
234Contracts.Assert(!(type is VectorDataViewType));
247private static void ShowMetadataValueVec(IndentedTextWriter itw, DataViewSchema schema, int col, string kind, VectorDataViewType type)
261Action<IndentedTextWriter, DataViewSchema, int, string, VectorDataViewType> del = ShowMetadataValueVec<int>;
266private static void ShowMetadataValueVec<T>(IndentedTextWriter itw, DataViewSchema schema, int col, string kind, VectorDataViewType type)
Data\RowCursorUtils.cs (9)
160var typeSrc = row.Schema[col].Type as VectorDataViewType;
163Func<VectorDataViewType, PrimitiveDataViewType, GetterFactory, ValueGetter<VBuffer<int>>> del = GetVecGetterAsCore<int, int>;
180var typeSrc = row.Schema[col].Type as VectorDataViewType;
183Func<VectorDataViewType, PrimitiveDataViewType, GetterFactory, ValueGetter<VBuffer<TDst>>> del = GetVecGetterAsCore<int, TDst>;
198var typeSrc = cursor.GetSlotType();
200Func<VectorDataViewType, PrimitiveDataViewType, GetterFactory, ValueGetter<VBuffer<TDst>>> del = GetVecGetterAsCore<int, TDst>;
255private static ValueGetter<VBuffer<TDst>> GetVecGetterAsCore<TSrc, TDst>(VectorDataViewType typeSrc, PrimitiveDataViewType typeDst, GetterFactory getterFact)
Evaluators\EvaluatorUtils.cs (24)
309else if (type is VectorDataViewType vectorType
353var slotNamesType = schema[i].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType;
547var typeDst = new VectorDataViewType(itemType, slotNames.Count);
570VectorDataViewType vectorType = type as VectorDataViewType;
574DataViewType keyValueItemType = (keyValueType as VectorDataViewType)?.ItemType ?? keyValueType;
734type, new VectorDataViewType(keyType, ((VectorDataViewType)type).Dimensions), mapper, keyValueGetter, slotNamesGetter);
836if (type is VectorDataViewType vectorType)
930var vectorType = idv.Schema[index].Type as VectorDataViewType;
955VectorDataViewType type, in VBuffer<ReadOnlyMemory<char>> firstDvSlotNames)
984private static IDataView AddVarLengthColumn<TSrc>(IHostEnvironment env, IDataView idv, string variableSizeVectorColumnName, VectorDataViewType typeSrc)
1017else if (type is VectorDataViewType vectorType && vectorType.ItemType == NumberDataViewType.Double)
1027var slotNamesType = schema[i].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType;
1236var keyValuesType = schema[i].Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type as VectorDataViewType;
1280else if (type is VectorDataViewType vectorType && vectorType.IsKnownSize && vectorType.ItemType == NumberDataViewType.Double)
1296AggregatedMetric[] agg, bool hasStdev, int numFolds, int iMetric, int i, VectorDataViewType type, string columnName)
1392var type = countColumn.Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.SlotNames)?.Type as VectorDataViewType;
1478var type = cursor.Schema[countIndex].Type as VectorDataViewType;
Scorers\MulticlassClassificationScorer.cs (17)
76private readonly VectorDataViewType _type;
89public VectorDataViewType Type => _type;
107private LabelNameBindableMapper(IHostEnvironment env, ISchemaBoundMapper mapper, VectorDataViewType type, Delegate getter,
113private LabelNameBindableMapper(IHostEnvironment env, ISchemaBindableMapper bindable, VectorDataViewType type, Delegate getter,
142_type = type as VectorDataViewType;
238internal static ISchemaBoundMapper CreateBound<T>(IHostEnvironment env, ISchemaBoundRowMapper mapper, VectorDataViewType type, Delegate getter,
257private readonly VectorDataViewType _labelNameType;
282public Bound(IHostEnvironment env, ISchemaBoundRowMapper mapper, VectorDataViewType type, ValueGetter<VBuffer<T>> getter,
311private DataViewSchema DecorateOutputSchema(DataViewSchema partialSchema, int scoreColumnIndex, VectorDataViewType labelNameType,
417var keyType = trainSchema.Label.Value.Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.KeyValues)?.Type as VectorDataViewType;
441return labelNameType is VectorDataViewType vectorType && vectorType.Size == scoreType.GetVectorSize();
481return labelNameType is VectorDataViewType vectorType && vectorType.Size == scoreType.GetVectorSize() && vectorType.ItemType == TextDataViewType.Instance;
495env.Assert(type is VectorDataViewType);
505resultMapper = LabelNameBindableMapper.CreateBound<T>(env, (ISchemaBoundRowMapper)resultMapper, type as VectorDataViewType, getter, AnnotationUtils.Kinds.TrainingLabelValues, CanWrapTrainingLabels);
507resultMapper = LabelNameBindableMapper.CreateBound<T>(env, (ISchemaBoundRowMapper)resultMapper, type as VectorDataViewType, getter, AnnotationUtils.Kinds.SlotNames, CanWrapSlotNames);
606scoreType is VectorDataViewType vectorType && vectorType.IsKnownSize && vectorType.ItemType == NumberDataViewType.Single;
Transforms\Hashing.cs (12)
145private readonly VectorDataViewType[] _kvTypes;
167if (srcType is VectorDataViewType vectorType && !column.Combine)
249_kvTypes = new VectorDataViewType[_columns.Length];
268if (!(srcType is VectorDataViewType vectorType))
402private ValueGetter<VBuffer<uint>> ComposeGetterVec(DataViewRow input, int iinfo, int srcCol, VectorDataViewType srcType)
449private ValueGetter<VBuffer<uint>> ComposeGetterVecCore<T, THash>(DataViewRow input, int iinfo, int srcCol, VectorDataViewType srcType)
464private ValueGetter<uint> ComposeGetterCombined(DataViewRow input, int iinfo, int srcCol, VectorDataViewType srcType)
1412if (_srcTypes[iinfo] is VectorDataViewType)
1430var vectorShape = new VectorDataViewType(NumberDataViewType.Int64, _srcTypes[iinfo].GetValueCount());
1496_includeSlot = _srcType is VectorDataViewType && _ex.UseOrderedHashing;
1512VectorDataViewType vectorTypeSrc = typeSrc as VectorDataViewType;
Transforms\NormalizeColumn.cs (12)
200if (type is VectorDataViewType vectorType)
440else if (typeSrc is VectorDataViewType vectorType && vectorType.ItemType is NumberDataViewType)
559else if (typeSrc is VectorDataViewType vectorType && vectorType.ItemType is NumberDataViewType)
695if (typeSrc is VectorDataViewType vectorType && vectorType.ItemType is NumberDataViewType)
990if (srcType is VectorDataViewType vectorType && vectorType.IsKnownSize && vectorType.ItemType is NumberDataViewType)
1029if (srcType is VectorDataViewType vectorType && vectorType.IsKnownSize && vectorType.ItemType is NumberDataViewType)
1070if (srcType is VectorDataViewType vectorType && vectorType.IsKnownSize && vectorType.ItemType is NumberDataViewType)
1110if (srcType is VectorDataViewType vectorType && vectorType.IsKnownSize && vectorType.ItemType is NumberDataViewType)
1169if (srcType is VectorDataViewType vectorType && vectorType.ItemType is NumberDataViewType)
1221if (srcType is VectorDataViewType vectorType && vectorType.IsKnownSize && vectorType.ItemType is NumberDataViewType)
1224return Sng.RobustScalerVecFunctionBuilder.Create(column, host, srcType as VectorDataViewType, column.CenterData, column.QuantileMin, column.QuantileMax, cursor.GetGetter<VBuffer<float>>(srcColumn));
1226return Dbl.RobustScalerVecFunctionBuilder.Create(column, host, srcType as VectorDataViewType, column.CenterData, column.QuantileMin, column.QuantileMax, cursor.GetGetter<VBuffer<double>>(srcColumn));
Transforms\NormalizeColumnDbl.cs (8)
729public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc)
1055public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc)
1258public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc)
1601public static IColumnFunctionBuilder Create(NormalizingEstimator.MinMaxColumnOptions column, IHost host, VectorDataViewType srcType,
1746public static IColumnFunctionBuilder Create(NormalizingEstimator.MeanVarianceColumnOptions column, IHost host, VectorDataViewType srcType,
1754public static IColumnFunctionBuilder Create(NormalizingEstimator.LogMeanVarianceColumnOptions column, IHost host, VectorDataViewType srcType,
1916public static IColumnFunctionBuilder Create(NormalizingEstimator.BinningColumnOptions column, IHost host, VectorDataViewType srcType,
2153public static IColumnFunctionBuilder Create(NormalizingEstimator.RobustScalingColumnOptions column, IHost host, VectorDataViewType srcType,
Transforms\NormalizeColumnSng.cs (8)
886public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc)
1215public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc)
1419public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc)
1764public static IColumnFunctionBuilder Create(NormalizingEstimator.MinMaxColumnOptions column, IHost host, VectorDataViewType srcType,
1909public static IColumnFunctionBuilder Create(NormalizingEstimator.MeanVarianceColumnOptions column, IHost host, VectorDataViewType srcType,
1917public static IColumnFunctionBuilder Create(NormalizingEstimator.LogMeanVarianceColumnOptions column, IHost host, VectorDataViewType srcType,
2079public static IColumnFunctionBuilder Create(NormalizingEstimator.BinningColumnOptions column, IHost host, VectorDataViewType srcType,
2315public static IColumnFunctionBuilder Create(NormalizingEstimator.RobustScalingColumnOptions column, IHost host, VectorDataViewType srcType,
Microsoft.ML.DataView (3)
Microsoft.ML.Ensemble (27)
Microsoft.ML.EntryPoints (4)
Microsoft.ML.FastTree (4)
Microsoft.ML.ImageAnalytics (7)
Microsoft.ML.IntegrationTests (6)
Microsoft.ML.KMeansClustering (1)
Microsoft.ML.Mkl.Components (7)
Microsoft.ML.OnnxConverter (4)
Microsoft.ML.OnnxTransformer (7)
Microsoft.ML.PCA (1)
Microsoft.ML.PerformanceTests (2)
Microsoft.ML.Predictor.Tests (5)
Microsoft.ML.Samples (9)
Microsoft.ML.Samples.GPU (4)
Microsoft.ML.StandardTrainers (29)
Microsoft.ML.TensorFlow (4)
Microsoft.ML.TensorFlow.Tests (14)
Microsoft.ML.TestFramework (3)
Microsoft.ML.TestFrameworkCommon (5)
Microsoft.ML.Tests (21)
Microsoft.ML.TimeSeries (2)
Microsoft.ML.TorchSharp (24)
Microsoft.ML.Transforms (106)
Microsoft.ML.Vision (8)