252 references to Instance
Microsoft.Data.Analysis (4)
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
584
builder.AddColumn(Name, TextDataViewType.
Instance
);
DataFrameColumns\StringDataFrameColumn.cs (1)
496
builder.AddColumn(Name, TextDataViewType.
Instance
);
DataFrameColumns\VBufferDataFrameColumn.cs (1)
369
return new VectorDataViewType(TextDataViewType.
Instance
);
IDataView.Extension.cs (1)
115
else if (type == TextDataViewType.
Instance
)
Microsoft.ML.AutoML (5)
ColumnInference\ColumnTypeInference.cs (1)
206
col.SuggestedType = TextDataViewType.
Instance
;
Utils\UserInputValidationUtil.cs (4)
95
column.Type.GetItemType() != TextDataViewType.
Instance
)
98
$"{BooleanDataViewType.Instance}, {NumberDataViewType.Single}, and {TextDataViewType.
Instance
}. " +
115
new DataViewType[] { NumberDataViewType.Single, TextDataViewType.
Instance
});
119
new DataViewType[] { TextDataViewType.
Instance
});
Microsoft.ML.AutoML.Tests (23)
AutoFitTests.cs (3)
353
Assert.Equal(TextDataViewType.
Instance
, scoredData.Schema[DefaultColumnNames.PredictedLabel].Type);
376
Assert.Equal(TextDataViewType.
Instance
, scoredData.Schema[DefaultColumnNames.PredictedLabel].Type);
404
Assert.Equal(TextDataViewType.
Instance
, scoredData.Schema[DefaultColumnNames.PredictedLabel].Type);
TransformInferenceTests.cs (14)
27
new DatasetColumnInfo("Categorical1", TextDataViewType.
Instance
, ColumnPurpose.CategoricalFeature, new ColumnDimensions(7, null)),
28
new DatasetColumnInfo("Categorical2", TextDataViewType.
Instance
, ColumnPurpose.CategoricalFeature, new ColumnDimensions(7, null)),
29
new DatasetColumnInfo("LargeCat1", TextDataViewType.
Instance
, ColumnPurpose.CategoricalFeature, new ColumnDimensions(500, null)),
30
new DatasetColumnInfo("LargeCat2", TextDataViewType.
Instance
, ColumnPurpose.CategoricalFeature, new ColumnDimensions(500, null)),
83
new DatasetColumnInfo("Categorical1", TextDataViewType.
Instance
, ColumnPurpose.CategoricalFeature, new ColumnDimensions(7, null)),
84
new DatasetColumnInfo("Categorical2", TextDataViewType.
Instance
, ColumnPurpose.CategoricalFeature, new ColumnDimensions(7, null)),
85
new DatasetColumnInfo("LargeCat1", TextDataViewType.
Instance
, ColumnPurpose.CategoricalFeature, new ColumnDimensions(500, null)),
86
new DatasetColumnInfo("LargeCat2", TextDataViewType.
Instance
, ColumnPurpose.CategoricalFeature, new ColumnDimensions(500, null)),
139
new DatasetColumnInfo("Categorical1", TextDataViewType.
Instance
, ColumnPurpose.CategoricalFeature, new ColumnDimensions(7, null)),
140
new DatasetColumnInfo("LargeCat1", TextDataViewType.
Instance
, ColumnPurpose.CategoricalFeature, new ColumnDimensions(500, null)),
325
new DatasetColumnInfo("Text", TextDataViewType.
Instance
, ColumnPurpose.TextFeature, new ColumnDimensions(null, null)),
358
new DatasetColumnInfo("Text", TextDataViewType.
Instance
, ColumnPurpose.TextFeature, new ColumnDimensions(null, null)),
674
new DatasetColumnInfo("CustomName", TextDataViewType.
Instance
, columnPurpose, new ColumnDimensions(null, null)),
685
new DatasetColumnInfo("CustomLabel", TextDataViewType.
Instance
, ColumnPurpose.Label, new ColumnDimensions(null, null)),
UserInputValidationTests.cs (5)
239
ValidateLabelTypeTestCore<string>(TaskKind.Regression, TextDataViewType.
Instance
, false);
248
ValidateLabelTypeTestCore<string>(TaskKind.Recommendation, TextDataViewType.
Instance
, false);
264
ValidateLabelTypeTestCore<string>(TaskKind.MulticlassClassification, TextDataViewType.
Instance
, true);
273
ValidateLabelTypeTestCore<string>(TaskKind.Ranking, TextDataViewType.
Instance
, false);
376
if (labelType == TextDataViewType.
Instance
)
Utils\MLNetUtils\DataViewTestFixture.cs (1)
45
else if (column.type == TextDataViewType.
Instance
)
Microsoft.ML.Core (8)
Data\AnnotationBuilderExtensions.cs (1)
19
=> builder.Add(AnnotationUtils.Kinds.SlotNames, new VectorDataViewType(TextDataViewType.
Instance
, size), getter);
Data\AnnotationUtils.cs (5)
145
return new VectorDataViewType(TextDataViewType.
Instance
, size);
345
&& metaCol.ItemType == TextDataViewType.
Instance
;
429
cols.Add(new SchemaShape.Column(Kinds.ScoreColumnKind, SchemaShape.Column.VectorKind.Scalar, TextDataViewType.
Instance
, false));
430
cols.Add(new SchemaShape.Column(Kinds.ScoreValueKind, SchemaShape.Column.VectorKind.Scalar, TextDataViewType.
Instance
, false));
450
cols.Add(new SchemaShape.Column(Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.
Instance
, false));
Data\ColumnTypeExtensions.cs (2)
98
return TextDataViewType.
Instance
;
115
return TextDataViewType.
Instance
;
Microsoft.ML.Core.Tests (10)
UnitTests\ColumnTypes.cs (1)
29
TextDataViewType.
Instance
, BooleanDataViewType.Instance, DateTimeDataViewType.Instance, DateTimeOffsetDataViewType.Instance, TimeSpanDataViewType.Instance };
UnitTests\DataTypes.cs (3)
29
TextDataViewType.
Instance
, NumberDataViewType.Single, out bool identity2);
53
TextDataViewType.
Instance
, NumberDataViewType.Double, out bool identity2);
256
TextDataViewType.
Instance
, dstType, out bool identity);
UnitTests\ScoreSchemaTest.cs (5)
68
Assert.Equal(TextDataViewType.
Instance
, (scoreMetadata.Schema[0].Type as VectorDataViewType).ItemType);
69
Assert.Equal(TextDataViewType.
Instance
, scoreColumn.Annotations.Schema[1].Type);
70
Assert.Equal(TextDataViewType.
Instance
, scoreColumn.Annotations.Schema[2].Type);
122
Assert.Equal(TextDataViewType.
Instance
, scoreColumn.Annotations.Schema[0].Type);
123
Assert.Equal(TextDataViewType.
Instance
, scoreColumn.Annotations.Schema[1].Type);
UnitTests\TestEntryPoints.cs (1)
1794
TextDataViewType.
Instance
, BooleanDataViewType.Instance, labelToBinary);
Microsoft.ML.Data (93)
Commands\ScoreCommand.cs (1)
312
mapper.OutputSchema.TryGetAnnotation(TextDataViewType.
Instance
, AnnotationUtils.Kinds.ScoreColumnKind, 0, ref scoreKind) &&
Data\SchemaAnnotationsExtensions.cs (3)
45
/// though not universal, type to provide is <see cref="TextDataViewType.
Instance
"/>, so if left unspecified
46
/// this will be assumed to have the value <see cref="TextDataViewType.
Instance
"/>.</param>
55
keyValueItemType = TextDataViewType.
Instance
;
DataLoadSave\Binary\BinaryLoader.cs (1)
636
/// should contains a <see cref="DataViewSchema.Column"/> with <see cref="TextDataViewType.
Instance
"/> as its <see cref="DataViewType"/>.
DataLoadSave\Binary\Codecs.cs (1)
299
: base(factory, TextDataViewType.
Instance
)
DataView\ArrayDataViewBuilder.cs (2)
227
meta.AddKeyValues(_columns[i].Type.GetKeyCountAsInt32(_host), TextDataViewType.
Instance
, keyValueGetter);
441
: base(TextDataViewType.
Instance
, values)
DataView\LambdaColumnMapper.cs (2)
127
bldr.AddGetter(AnnotationUtils.Kinds.KeyValues, new VectorDataViewType(TextDataViewType.
Instance
, _typeDst.GetItemType().GetKeyCountAsInt32(Host)), mdGetter);
135
bldr.AddGetter(AnnotationUtils.Kinds.SlotNames, new VectorDataViewType(TextDataViewType.
Instance
, vectorSize), mdGetter);
Deprecated\Instances\HeaderSchema.cs (1)
34
_slotNamesType = new VectorDataViewType(TextDataViewType.
Instance
, collection.Count);
Evaluators\AnomalyDetectionEvaluator.cs (3)
183
overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.
Instance
, stratVal.ToArray());
198
topKdvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.
Instance
, topKStratVal.ToArray());
200
topKdvBldr.AddColumn(TopKResultsColumns.Instance, TextDataViewType.
Instance
, names.ToArray());
Evaluators\BinaryClassifierEvaluator.cs (5)
179
vecType.Size > 0 && vecType.ItemType == TextDataViewType.
Instance
)
338
overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.
Instance
, stratVal.ToArray());
359
confDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.
Instance
, confStratVal.ToArray());
379
dvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.
Instance
, prStratVal.ToArray());
1552
schemaBuilder.AddColumn(MetricKinds.ColumnNames.WarningText, TextDataViewType.
Instance
);
Evaluators\ClusteringEvaluator.cs (2)
205
overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.
Instance
, stratVal.ToArray());
724
var slotNamesType = new VectorDataViewType(TextDataViewType.
Instance
, _numClusters);
Evaluators\EvaluatorBase.cs (1)
310
dvBldr.AddColumn(MetricKinds.ColumnNames.WarningText, TextDataViewType.
Instance
,
Evaluators\EvaluatorUtils.cs (9)
142
if (col.Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.ScoreValueKind)?.Type == TextDataViewType.
Instance
)
203
if (col.Annotations.Schema.GetColumnOrNull(AnnotationUtils.Kinds.ScoreValueKind)?.Type == TextDataViewType.
Instance
)
379
return LambdaColumnMapper.Create(env, registrationName, input, inputColName, outputColName, typeSrc, TextDataViewType.
Instance
,
895
ReconcileKeyValues(env, views, keyCol, TextDataViewType.
Instance
);
901
ReconcileVectorKeyValues(env, views, vectorKeyCol, TextDataViewType.
Instance
);
1259
dvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.
Instance
, stratVals);
1260
weightedDvBldr?.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.
Instance
, stratVals);
1271
dvBldr.AddColumn(MetricKinds.ColumnNames.FoldIndex, TextDataViewType.
Instance
, foldVals);
1272
weightedDvBldr?.AddColumn(MetricKinds.ColumnNames.FoldIndex, TextDataViewType.
Instance
, foldVals);
Evaluators\MulticlassClassificationEvaluator.cs (4)
212
overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.
Instance
, stratVal.ToArray());
236
confDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.
Instance
, confStratVal.ToArray());
813
assignedColKeyValues.AddKeyValues(_numClasses, TextDataViewType.
Instance
, CreateKeyValueGetter());
823
sortedClasses.AddKeyValues(_numClasses, TextDataViewType.
Instance
, CreateKeyValueGetter());
Evaluators\MultiOutputRegressionEvaluator.cs (4)
149
overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.
Instance
, stratVal.ToArray());
553
var slotNamesType = new VectorDataViewType(TextDataViewType.
Instance
, t.Size);
566
builder.Add(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.
Instance
, getter);
568
builder.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.
Instance
, getter);
Evaluators\QuantileRegressionEvaluator.cs (1)
355
var slotNamesType = new VectorDataViewType(TextDataViewType.
Instance
, _scoreSize);
Evaluators\RankingEvaluator.cs (4)
217
overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.
Instance
, stratVal.ToArray());
228
groupDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.
Instance
, groupStratVal.ToArray());
232
groupDvBldr.AddColumn(GroupId, TextDataViewType.
Instance
, groupName.ToArray());
643
_slotNamesType = new VectorDataViewType(TextDataViewType.
Instance
, _truncationLevel);
Evaluators\RegressionEvaluatorBase.cs (1)
98
overallDvBldr.AddColumn(MetricKinds.ColumnNames.StratVal, TextDataViewType.
Instance
, stratVal.ToArray());
Scorers\FeatureContributionCalculation.cs (1)
329
builder.AddColumn(DefaultColumnNames.FeatureContributions, TextDataViewType.
Instance
, null);
Scorers\MulticlassClassificationScorer.cs (1)
481
return labelNameType is VectorDataViewType vectorType && vectorType.Size == scoreType.GetVectorSize() && vectorType.ItemType == TextDataViewType.
Instance
;
Scorers\PredictedLabelScorerBase.cs (4)
178
yield return TextDataViewType.
Instance
.GetPair(AnnotationUtils.Kinds.ScoreColumnKind);
181
yield return TextDataViewType.
Instance
.GetPair(AnnotationUtils.Kinds.ScoreValueKind);
201
return TextDataViewType.
Instance
;
203
return TextDataViewType.
Instance
;
Scorers\ScoreSchemaFactory.cs (7)
30
metadataBuilder.Add(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.
Instance
,
32
metadataBuilder.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.
Instance
,
63
probabilityMetadataBuilder.Add(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.
Instance
,
65
probabilityMetadataBuilder.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.
Instance
,
125
metadataBuilder.AddKeyValues(keyNames.Length, TextDataViewType.
Instance
,
127
metadataBuilder.Add(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.
Instance
,
129
metadataBuilder.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.
Instance
,
Transforms\ColumnConcatenatingEstimator.cs (1)
136
meta.Add(new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.
Instance
, false));
Transforms\Hashing.cs (3)
254
_kvTypes[invertIinfos[i]] = new VectorDataViewType(TextDataViewType.
Instance
, _keyValues[invertIinfos[i]].Length);
445
Host.Assert(srcType.ItemType == TextDataViewType.
Instance
);
1967
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.KeyValues, SchemaShape.Column.VectorKind.Vector, TextDataViewType.
Instance
, false));
Transforms\InvertHashUtils.cs (3)
393
var result = factory.TryGetCodec(new VectorDataViewType(TextDataViewType.
Instance
), out codec);
397
ch.Assert(vectorType.ItemType == TextDataViewType.
Instance
);
469
kvTypesLocal[iinfo] = new VectorDataViewType(TextDataViewType.
Instance
, keyValuesLocal[iinfo].Length);
Transforms\KeyToValue.cs (2)
524
labelEncoderOutput = ctx.AddIntermediateVariable(new VectorDataViewType(TextDataViewType.
Instance
, srcShape), "CastNodeOutput");
557
else if (TypeOutput == TextDataViewType.
Instance
)
Transforms\KeyToVector.cs (2)
327
var slotNamesType = new VectorDataViewType(TextDataViewType.
Instance
, _types[iinfo].Dimensions);
339
var slotNamesType = new VectorDataViewType(TextDataViewType.
Instance
, _types[iinfo].Dimensions);
Transforms\SlotsDroppingTransformer.cs (2)
847
builder.Add(AnnotationUtils.Kinds.SlotNames, new VectorDataViewType(TextDataViewType.
Instance
, dstLength), slotNamesGetter);
916
if (type == TextDataViewType.
Instance
)
Transforms\ValueMapping.cs (15)
870
TextDataViewType.
Instance
,
1092
if (itemType == TextDataViewType.
Instance
)
1113
var labelEncoderOutput = (typeValue == NumberDataViewType.Single || typeValue == TextDataViewType.
Instance
|| typeValue == NumberDataViewType.Int64) ? dstVariableName :
1126
CastInputTo<Int64>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.
Instance
);
1140
CastInputTo<Int32>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.
Instance
);
1147
CastInputTo<Int16>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.
Instance
);
1154
CastInputTo<UInt64>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.
Instance
);
1161
CastInputTo<UInt32>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.
Instance
);
1168
CastInputTo<UInt16>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.
Instance
);
1174
CastInputTo<float>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.
Instance
);
1185
CastInputTo<double>(ctx, out node, srcVariableName, opType, labelEncoderOutput, TextDataViewType.
Instance
);
1189
else if (typeKey == TextDataViewType.
Instance
)
1191
if (typeValue == TextDataViewType.
Instance
)
1200
var castOutput = ctx.AddIntermediateVariable(new VectorDataViewType(TextDataViewType.
Instance
, (int)srcShape[1]), "castOutput");
1258
else if (typeValue == TextDataViewType.
Instance
)
Transforms\ValueToKeyMappingEstimator.cs (1)
196
colInfo.AddKeyValueAnnotationsAsText ? TextDataViewType.
Instance
: col.ItemType, col.IsKey);
Transforms\ValueToKeyMappingTransformer.cs (2)
791
var castOutput = ctx.AddIntermediateVariable(new VectorDataViewType(TextDataViewType.
Instance
, (int)srcShape[1]), "castOutput");
825
if (type.Equals(TextDataViewType.
Instance
))
Transforms\ValueToKeyMappingTransformerImpl.cs (4)
105
: base(TextDataViewType.
Instance
)
587
: base(TextDataViewType.
Instance
, pool.Count)
1060
builder.AddKeyValues(TypedMap.OutputType.GetCountAsInt32(_host), TextDataViewType.
Instance
, getter);
1158
builder.AddKeyValues(keyCount, TextDataViewType.
Instance
, mgetter);
Microsoft.ML.DataView (1)
DataViewType.cs (1)
87
/// Note this can have only one possible value, accessible by the singleton static property <see cref="
Instance
"/>.
Microsoft.ML.EntryPoints (2)
CrossValidationMacro.cs (1)
378
dvBldr.AddColumn(MetricKinds.ColumnNames.WarningText, TextDataViewType.
Instance
, warn.AsMemory());
ScoreColumnSelector.cs (1)
93
if (input.Data.Schema.TryGetAnnotation(TextDataViewType.
Instance
, AnnotationUtils.Kinds.ScoreValueKind, i,
Microsoft.ML.Fairlearn (1)
Metrics\FairlearnMetricCatalog.cs (1)
62
if (sensitiveCol.Type == TextDataViewType.
Instance
)
Microsoft.ML.FastTree (1)
Utils\RegressionTreeBaseUtils.cs (1)
102
builder.AddColumn("IsLeaf", TextDataViewType.
Instance
, isLeaf.ToArray());
Microsoft.ML.ImageAnalytics (2)
ImageLoader.cs (2)
161
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", ColumnPairs[col].inputColumnName, TextDataViewType.
Instance
.ToString(), inputSchema[srcCol].Type.ToString());
446
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", inputColumnName, TextDataViewType.
Instance
.ToString(), col.GetTypeString());
Microsoft.ML.IntegrationTests (1)
ModelFiles.cs (1)
235
inputSchemaDefinition[nameof(ModelInput.CategoricalFeatures)].ColumnType = new VectorDataViewType(TextDataViewType.
Instance
, 5);
Microsoft.ML.OnnxTransformer (1)
OnnxTypeParser.cs (1)
154
scalarType = TextDataViewType.
Instance
;
Microsoft.ML.Parquet (3)
ParquetLoader.cs (2)
355
return TextDataViewType.
Instance
;
367
return TextDataViewType.
Instance
;
PartitionedFileLoader.cs (1)
629
var conv = Conversions.DefaultInstance.GetStandardConversion(TextDataViewType.
Instance
, type) as ValueMapper<ReadOnlyMemory<char>, TValue>;
Microsoft.ML.PerformanceTests (3)
HashBench.cs (3)
149
InitMapMurmurHashV2("Hello".AsMemory(), TextDataViewType.
Instance
);
200
InitDenseVecMap(tokens, TextDataViewType.
Instance
);
249
InitMapMurmurHashV1("Hello".AsMemory(), TextDataViewType.
Instance
);
Microsoft.ML.Samples (1)
Dynamic\SimpleDataViewImplementation.cs (1)
165
builder.AddColumn("Text", TextDataViewType.
Instance
);
Microsoft.ML.StandardTrainers (1)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
183
if (!(labelMetadataType is VectorDataViewType vecType && vecType.ItemType == TextDataViewType.
Instance
&& vecType.Size == _numClasses))
Microsoft.ML.TensorFlow (3)
TensorflowUtils.cs (3)
64
metadataBuilder.Add(TensorflowOperatorTypeKind, TextDataViewType.
Instance
, (ref ReadOnlyMemory<char> value) => value = op.OpType.AsMemory());
75
metadataBuilder.Add(TensorflowUpstreamOperatorsKind, new VectorDataViewType(TextDataViewType.
Instance
, op.NumInputs),
185
return TextDataViewType.
Instance
;
Microsoft.ML.TestFramework (1)
BaseTestBaseline.cs (1)
723
else if (leftType == TextDataViewType.
Instance
)
Microsoft.ML.Tests (6)
Scenarios\Api\TestApi.cs (2)
208
var coltypeString = TextDataViewType.
Instance
;
235
Assert.True(idv.Schema[0].Annotations.Schema[1].Type == TextDataViewType.
Instance
);
SvmLightTests.cs (1)
163
new VectorDataViewType(TextDataViewType.
Instance
, 3));
Transformers\ExpressionTransformerTests.cs (1)
57
Assert.True(transformed.Schema["Expr6"].Type.GetItemType() == TextDataViewType.
Instance
);
Transformers\HashTests.cs (2)
295
HashTestCore("".AsMemory(), TextDataViewType.
Instance
, 0, 0, 0, 0, 0);
296
HashTestCore("hello".AsMemory(), TextDataViewType.
Instance
, 940, 951, 857, 770, 0);
Microsoft.ML.TimeSeries (5)
IidChangePointDetector.cs (1)
271
new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.
Instance
, false)
IidSpikeDetector.cs (1)
247
new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.
Instance
, false)
SRCNNAnomalyDetector.cs (1)
279
new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.
Instance
, false)
SsaChangePointDetector.cs (1)
307
new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.
Instance
, false)
SsaSpikeDetector.cs (1)
286
new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.
Instance
, false)
Microsoft.ML.TorchSharp (37)
AutoFormerV2\ObjectDetectionTrainer.cs (9)
448
TextDataViewType.
Instance
, false));
453
TextDataViewType.
Instance
, false));
455
TextDataViewType.
Instance
, false));
459
TextDataViewType.
Instance
, false));
554
TextDataViewType.
Instance
, false));
556
TextDataViewType.
Instance
, false));
560
TextDataViewType.
Instance
, false));
759
meta.Add(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.
Instance
, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreColumnKind.MulticlassClassification.AsMemory(); });
761
meta.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.
Instance
, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreValueKind.Score.AsMemory(); });
NasBert\NasBertTrainer.cs (12)
330
TextDataViewType.
Instance
, false));
345
TextDataViewType.
Instance
, false));
367
if (sentenceCol.ItemType != TextDataViewType.
Instance
)
369
TextDataViewType.
Instance
.ToString(), sentenceCol.GetTypeString());
385
if (sentenceCol2.ItemType != TextDataViewType.
Instance
)
387
TextDataViewType.
Instance
.ToString(), sentenceCol2.GetTypeString());
404
if (sentenceCol2.ItemType != TextDataViewType.
Instance
)
406
TextDataViewType.
Instance
.ToString(), sentenceCol2.GetTypeString());
423
SentenceColumn = new SchemaShape.Column(options.Sentence1ColumnName, SchemaShape.Column.VectorKind.Scalar, TextDataViewType.
Instance
, false);
424
SentenceColumn2 = options.Sentence2ColumnName == default ? default : new SchemaShape.Column(options.Sentence2ColumnName, SchemaShape.Column.VectorKind.Scalar, TextDataViewType.
Instance
, false);
525
meta.Add(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.
Instance
, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreColumnKind.MulticlassClassification.AsMemory(); });
527
meta.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.
Instance
, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreValueKind.Score.AsMemory(); });
Roberta\QATrainer.cs (16)
513
TextDataViewType.
Instance
, false));
515
TextDataViewType.
Instance
, false));
520
TextDataViewType.
Instance
, false);
535
TextDataViewType.
Instance
.ToString(), contextCol.GetTypeString());
541
TextDataViewType.
Instance
.ToString(), questionCol.GetTypeString());
547
TextDataViewType.
Instance
.ToString(), answerCol.GetTypeString());
599
TextDataViewType.
Instance
, false),
601
TextDataViewType.
Instance
, false),
607
TextDataViewType.
Instance
, false);
619
if (contextCol.ItemType != TextDataViewType.
Instance
)
621
TextDataViewType.
Instance
.ToString(), contextCol.GetTypeString());
625
if (questionCol.ItemType != TextDataViewType.
Instance
)
627
TextDataViewType.
Instance
.ToString(), questionCol.GetTypeString());
741
meta.Add(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.
Instance
, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreColumnKind.MulticlassClassification.AsMemory(); });
743
meta.Add(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.
Instance
, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreValueKind.Score.AsMemory(); });
746
info[0] = new DataViewSchema.DetachedColumn(_parent.Options.PredictedAnswerColumnName, new VectorDataViewType(TextDataViewType.
Instance
));
Microsoft.ML.TorchSharp.Tests (11)
NerTests.cs (3)
77
Assert.Equal(TextDataViewType.
Instance
, estimatorSchema[2].ItemType);
156
Assert.Equal(TextDataViewType.
Instance
, estimatorSchema[2].ItemType);
230
Assert.Equal(TextDataViewType.
Instance
, estimatorSchema[2].ItemType);
QATests.cs (2)
49
Assert.Equal(TextDataViewType.
Instance
, estimatorSchema[4].ItemType);
58
Assert.Equal(new VectorDataViewType(TextDataViewType.
Instance
), transformerSchema[4].Type);
TextClassificationTests.cs (6)
106
Assert.Equal(TextDataViewType.
Instance
, estimatorSchema[3].ItemType);
115
Assert.Equal(TextDataViewType.
Instance
, transformerSchema[3].Type);
244
Assert.Equal(TextDataViewType.
Instance
, estimatorSchema[3].ItemType);
251
Assert.Equal(TextDataViewType.
Instance
, transformerSchema[4].Type);
328
Assert.Equal(TextDataViewType.
Instance
, estimatorSchema[3].ItemType);
335
Assert.Equal(TextDataViewType.
Instance
, transformerSchema[5].Type);
Microsoft.ML.Transforms (28)
Dracula\CountTableTransformer.cs (1)
341
newMetadataKinds.Add(new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.
Instance
, false));
Expression\LambdaBinder.cs (1)
82
node.ResultType = TextDataViewType.
Instance
;
HashJoiningTransform.cs (1)
403
new VectorDataViewType(TextDataViewType.
Instance
, ex.SlotMap.Length), GetSlotNames);
KeyToVectorMapping.cs (2)
244
var slotNamesType = new VectorDataViewType(TextDataViewType.
Instance
, _types[iinfo].Dimensions);
262
var slotNamesType = new VectorDataViewType(TextDataViewType.
Instance
, _types[iinfo].Dimensions);
MissingValueReplacing.cs (1)
418
var strToT = Data.Conversion.Conversions.DefaultInstance.GetStandardConversion<ReadOnlyMemory<char>, T>(TextDataViewType.
Instance
, dstType.GetItemType(), out bool identity);
SvmLight\SvmLightLoader.cs (1)
413
bldr.AddColumn("Text", TextDataViewType.
Instance
);
Text\NgramHashingTransformer.cs (2)
852
types[iinfo] = new VectorDataViewType(TextDataViewType.
Instance
, vec.Length);
1228
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.
Instance
, false));
Text\NgramTransform.cs (2)
519
var slotNamesType = new VectorDataViewType(TextDataViewType.
Instance
, _parent._ngramMaps[iinfo].Count);
1089
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.
Instance
, false));
Text\StopWordsRemovingTransformer.cs (5)
377
_types[i] = new VectorDataViewType(TextDataViewType.
Instance
);
679
result[colInfo.Name] = new SchemaShape.Column(colInfo.Name, SchemaShape.Column.VectorKind.VariableVector, TextDataViewType.
Instance
, false);
773
private static readonly DataViewType _outputType = new VectorDataViewType(TextDataViewType.
Instance
);
1080
_types[i] = new VectorDataViewType(TextDataViewType.
Instance
);
1247
result[colInfo.outputColumnName] = new SchemaShape.Column(colInfo.outputColumnName, SchemaShape.Column.VectorKind.VariableVector, TextDataViewType.
Instance
, false);
Text\TextFeaturizingEstimator.cs (2)
644
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.SlotNames, SchemaShape.Column.VectorKind.Vector, TextDataViewType.
Instance
, false));
654
result[name] = new SchemaShape.Column(name, SchemaShape.Column.VectorKind.VariableVector, TextDataViewType.
Instance
, false);
Text\TextNormalizing.cs (1)
212
_types[i] = srcType is VectorDataViewType ? new VectorDataViewType(TextDataViewType.
Instance
) : srcType;
Text\TokenizingByCharacters.cs (4)
240
dataViewType = new VectorDataViewType(TextDataViewType.
Instance
, _sourceVectorLength[iinfo]);
242
dataViewType = TextDataViewType.
Instance
;
291
builder.AddKeyValues(CharsCount, TextDataViewType.
Instance
, getter);
695
metadata.Add(new SchemaShape.Column(AnnotationUtils.Kinds.KeyValues, SchemaShape.Column.VectorKind.Vector, TextDataViewType.
Instance
, false));
Text\WordBagTransform.cs (2)
191
if (!inputSchema.TryFindColumn(_columnName, out SchemaShape.Column outCol) && outCol.ItemType != TextDataViewType.
Instance
)
296
new DataViewSchema.DetachedColumn(_parent._columnName, TextDataViewType.
Instance
)
Text\WordEmbeddingsExtractor.cs (1)
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 (1)
ImageClassificationTrainer.cs (1)
638
TextDataViewType.
Instance
, false));