30 references to KeyDataViewType
Microsoft.ML.AutoML.Tests (1)
TransformPostTrainerInferenceTests.cs (1)
62new DatasetColumnInfo("Label", new KeyDataViewType(typeof(uint), 3), ColumnPurpose.Label, new ColumnDimensions(null, null)),
Microsoft.ML.Core (1)
Data\AnnotationUtils.cs (1)
170Interlocked.CompareExchange(ref _scoreColumnSetIdType, new KeyDataViewType(typeof(uint), int.MaxValue), null) ??
Microsoft.ML.Core.Tests (3)
UnitTests\ColumnTypes.cs (1)
60tmp = new KeyDataViewType(rawType, count);
UnitTests\ScoreSchemaTest.cs (2)
37var expectedScoreColumnType = new KeyDataViewType(typeof(uint), keyCount); 94var expectedScoreColumnType = new KeyDataViewType(typeof(uint), keyCount);
Microsoft.ML.Data (11)
DataLoadSave\Binary\Codecs.cs (1)
1261type = new KeyDataViewType(itemType.RawType, count);
DataLoadSave\FakeSchema.cs (1)
51curType = new KeyDataViewType(((PrimitiveDataViewType)curType).RawType, AllKeySizes);
Evaluators\ClusteringEvaluator.cs (2)
596var key = new KeyDataViewType(typeof(uint), _numClusters); 615var key = new KeyDataViewType(typeof(uint), _numClusters);
Evaluators\EvaluatorUtils.cs (3)
414new KeyDataViewType(typeof(uint), keyCount), (in TSrc src, ref uint dst) => 614var keyType = new KeyDataViewType(typeof(uint), keyNames.Count); 682var keyType = new KeyDataViewType(typeof(uint), keyNames.Count);
Evaluators\MulticlassClassificationEvaluator.cs (2)
632var key = new KeyDataViewType(typeof(uint), _numClasses); 661var key = new KeyDataViewType(typeof(uint), _numClasses);
Scorers\BinaryClassifierScorer.cs (1)
306return new KeyDataViewType(typeof(uint), labelNameBindableMapper.Type.Size);
Transforms\ValueToKeyMappingTransformerImpl.cs (1)
507OutputType = new KeyDataViewType(typeof(uint), Count == 0 ? 1 : Count);
Microsoft.ML.PerformanceTests (3)
HashBench.cs (3)
185InitMapMurmurHashV2(6u, new KeyDataViewType(typeof(uint), 100)); 236InitDenseVecMap(new[] { 1u, 2u, 0u, 4u, 5u }, new KeyDataViewType(typeof(uint), 100)); 261InitMapMurmurHashV1(6u, new KeyDataViewType(typeof(uint), 100));
Microsoft.ML.Recommender (2)
MatrixFactorizationPredictor.cs (2)
148MatrixColumnIndexType = new KeyDataViewType(typeof(uint), NumberOfColumns); 149MatrixRowIndexType = new KeyDataViewType(typeof(uint), NumberOfRows);
Microsoft.ML.Tests (5)
FakeSchemaTest.cs (1)
27schemaBuilder.AddColumn("B", new KeyDataViewType(typeof(uint), 17));
Transformers\HashTests.cs (4)
233HashTestCore((byte)value, new KeyDataViewType(typeof(byte), byte.MaxValue - 1), eKey, eoKey, e3Key, ecKey, 0); 238HashTestCore((ushort)value, new KeyDataViewType(typeof(ushort), ushort.MaxValue - 1), eKey, eoKey, e3Key, ecKey, 0); 243HashTestCore((uint)value, new KeyDataViewType(typeof(uint), int.MaxValue - 1), eKey, eoKey, e3Key, ecKey, 0); 269HashTestCore(value, new KeyDataViewType(typeof(ulong), int.MaxValue - 1), eKey, eoKey, e3Key, ecKey, 0);
Microsoft.ML.TorchSharp (3)
AutoFormerV2\ObjectDetectionTrainer.cs (1)
767info[0] = new DataViewSchema.DetachedColumn(_parent.Options.PredictedLabelColumnName, new VectorDataViewType(new KeyDataViewType(typeof(uint), _parent.Options.NumberOfClasses)), labelBuilder.ToAnnotations());
NasBert\NasBertTrainer.cs (2)
534info[0] = new DataViewSchema.DetachedColumn(Parent.Options.PredictionColumnName, new KeyDataViewType(typeof(uint), Parent.Options.NumberOfClasses), labelBuilder.ToAnnotations()); 548info[0] = new DataViewSchema.DetachedColumn(Parent.Options.PredictionColumnName, new VectorDataViewType(new KeyDataViewType(typeof(uint), Parent.Options.NumberOfClasses - 1)), labelBuilder.ToAnnotations());
Microsoft.ML.Transforms (1)
Text\TokenizingByCharacters.cs (1)
202var keyType = new KeyDataViewType(typeof(ushort), CharsCount);