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