271 references to String
Microsoft.ML.AutoML (2)
ColumnInference\ColumnTypeInference.cs (1)
262Columns = new[] { new TextLoader.Column("C", DataKind.String, 0, args.ColumnCount - 1) },
ColumnInference\TextFileContents.cs (1)
68DataKind = DataKind.String,
Microsoft.ML.AutoML.Tests (2)
ColumnInferenceTests.cs (2)
124Assert.Equal(DataKind.String, labelColumn.DataKind); 141Assert.Equal(DataKind.String, nameColumn.DataKind);
Microsoft.ML.CodeGenerator (2)
Utils.cs (2)
154case Microsoft.ML.Data.DataKind.String: 345case DataKind.String:
Microsoft.ML.CodeGenerator.Tests (44)
ApprovalTests\ConsoleCodeGeneratorTests.cs (33)
572new TextLoader.Column("Label", DataKind.String, 0), 573new TextLoader.Column("userId", DataKind.String, 1), 574new TextLoader.Column("movieId", DataKind.String, 2), 614new TextLoader.Column("col3", DataKind.String, 0), 651new TextLoader.Column("col3", DataKind.String, 0), 701new TextLoader.Column("Label", DataKind.String, 0), 702new TextLoader.Column("ImagePath", DataKind.String, 1), // 0? 742new TextLoader.Column("col2", DataKind.String, 0), 790new TextLoader.Column("Label", DataKind.String, 0), 791new TextLoader.Column("ImageSource", DataKind.String, 1), // 0? 822new TextLoader.Column("Workclass", DataKind.String, 1), // 0? 824new TextLoader.Column("Education", DataKind.String, 3), 826new TextLoader.Column("Marital_status", DataKind.String, 5), 827new TextLoader.Column("Occupation", DataKind.String, 6), 828new TextLoader.Column("Relationship", DataKind.String, 7), 829new TextLoader.Column("Race", DataKind.String, 8), 830new TextLoader.Column("Sex", DataKind.String, 9), 834new TextLoader.Column("Native_country", DataKind.String, 13), 866ColumnType = DataKind.String, 882ColumnType = DataKind.String, 898ColumnType = DataKind.String, 906ColumnType = DataKind.String, 914ColumnType = DataKind.String, 922ColumnType = DataKind.String, 930ColumnType = DataKind.String, 962ColumnType = DataKind.String, 998new TextLoader.Column("Make", DataKind.String, 2), 999new TextLoader.Column("Model", DataKind.String, 3), 1001new TextLoader.Column("work category", DataKind.String, 5), 1042ColumnType = DataKind.String, 1050ColumnType = DataKind.String, 1066ColumnType = DataKind.String, 1109new TextLoader.Column("col3", DataKind.String, 0),
CodeGenTests.cs (11)
151new TextLoader.Column(){ Name = "Country", Source = new TextLoader.Range[]{new TextLoader.Range(2) }, DataKind = DataKind.String } 157new TextLoader.Column(){ Name = "Shape", Source = new TextLoader.Range[]{new TextLoader.Range(2) }, DataKind = DataKind.String }, 158new TextLoader.Column(){ Name = "color", Source = new TextLoader.Range[]{new TextLoader.Range(3) }, DataKind = DataKind.String }, 163new TextLoader.Column(){ Name = "vin", Source = new TextLoader.Range[]{new TextLoader.Range(0) }, DataKind = DataKind.String }, 164new TextLoader.Column(){ Name = "make", Source = new TextLoader.Range[]{new TextLoader.Range(1) }, DataKind = DataKind.String }, 165new TextLoader.Column(){ Name = "model", Source = new TextLoader.Range[]{new TextLoader.Range(2) }, DataKind = DataKind.String }, 166new TextLoader.Column(){ Name = "color", Source = new TextLoader.Range[]{new TextLoader.Range(3) }, DataKind = DataKind.String }, 173new TextLoader.Column(){ Name = "var_text", Source = new TextLoader.Range[]{new TextLoader.Range(0) }, DataKind = DataKind.String }, 174new TextLoader.Column(){ Name = "var_text", Source = new TextLoader.Range[]{new TextLoader.Range(1) }, DataKind = DataKind.String }, 178new TextLoader.Column(){ Name = "var_text", Source = new TextLoader.Range[]{new TextLoader.Range(5) }, DataKind = DataKind.String }, 180new TextLoader.Column(){ Name = "var_text", Source = new TextLoader.Range[]{new TextLoader.Range(7) }, DataKind = DataKind.String },
Microsoft.ML.Core (1)
Data\DataKind.cs (1)
98TX = DataKind.String,
Microsoft.ML.Core.Tests (8)
UnitTests\TestEntryPoints.cs (8)
75new TextLoader.Column("F1", DataKind.String, 1), 1370new TextLoader.Column("SentimentText", DataKind.String, 1) 1777new TextLoader.Column("Label", DataKind.String, 0), 1778new TextLoader.Column("Text", DataKind.String, 3) 2141new TextLoader.Column("Cat", DataKind.String, 9) 4529new TextLoader.Column("Text", DataKind.String, 4721new TextLoader.Column("Text", DataKind.String, 1, 2), 4763new TextLoader.Column("Text", DataKind.String, 1, 2),
Microsoft.ML.Data (6)
Transforms\ValueMapping.cs (4)
642keyColumn = new TextLoader.Column(keyColumnName, DataKind.String, 0); 643valueColumn = new TextLoader.Column(valueColumnName, DataKind.String, 1); 665keyColumn = new TextLoader.Column(keyColumnName, DataKind.String, 0); 1202var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.String).ToType();
Transforms\ValueToKeyMappingTransformer.cs (2)
442new TextLoader.Column("Term", DataKind.String, 0) 793var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.String).ToType();
Microsoft.ML.Fairlearn (1)
Metrics\FairlearnMetricCatalog.cs (1)
68var convertToString = _context.Transforms.Conversion.ConvertType(sensitiveCol.Name, sensitiveCol.Name, DataKind.String);
Microsoft.ML.IntegrationTests (1)
Datasets\TypeTestData.cs (1)
92new TextLoader.Column("Tx", DataKind.String, 11),
Microsoft.ML.OnnxTransformerTest (8)
DnnImageFeaturizerTest.cs (2)
105new TextLoader.Column("imagePath", DataKind.String, 0), 106new TextLoader.Column("name", DataKind.String, 1)
OnnxTransformTests.cs (6)
250new TextLoader.Column("imagePath", DataKind.String, 0), 251new TextLoader.Column("name", DataKind.String, 1) 301new TextLoader.Column("imagePath", DataKind.String, 0), 302new TextLoader.Column("name", DataKind.String, 1) 1130new TextLoader.Column("imagePath", DataKind.String, 0), 1131new TextLoader.Column("name", DataKind.String, 1)
Microsoft.ML.PerformanceTests (5)
FeaturizeTextBench.cs (1)
36columns.Add(new TextLoader.Column($"Column{i}", DataKind.String, i));
KMeansAndLogisticRegressionBench.cs (1)
26new TextLoader.Column("CatFeatures", DataKind.String,
PredictionEngineBench.cs (1)
85new TextLoader.Column("SentimentText", DataKind.String, 1)
StochasticDualCoordinateAscentClassifierBench.cs (1)
94new TextLoader.Column("SentimentText", DataKind.String, new[] { new TextLoader.Range() { Min = 1, Max = 1 } })
TextLoaderBench.cs (1)
39_columns.Add(new TextLoader.Column($"Column{i}", DataKind.String, i));
Microsoft.ML.Samples (11)
Dynamic\TensorFlow\TextClassification.cs (1)
50new TextLoader.Column("Words", DataKind.String, 0),
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScale.cs (2)
38new TextLoader.Column("ImagePath", DataKind.String, 0), 39new TextLoader.Column("Name", DataKind.String, 1),
Dynamic\Transforms\ImageAnalytics\DnnFeaturizeImage.cs (2)
37new TextLoader.Column("ImagePath", DataKind.String, 0), 38new TextLoader.Column("Name", DataKind.String, 1),
Dynamic\Transforms\ImageAnalytics\ExtractPixels.cs (2)
40new TextLoader.Column("ImagePath", DataKind.String, 0), 41new TextLoader.Column("Name", DataKind.String, 1),
Dynamic\Transforms\ImageAnalytics\LoadImages.cs (2)
37new TextLoader.Column("ImagePath", DataKind.String, 0), 38new TextLoader.Column("Name", DataKind.String, 1),
Dynamic\Transforms\ImageAnalytics\ResizeImages.cs (2)
37new TextLoader.Column("ImagePath", DataKind.String, 0), 38new TextLoader.Column("Name", DataKind.String, 1),
Microsoft.ML.Samples.GPU (1)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\TextClassification.cs (1)
50new TextLoader.Column("Words", DataKind.String, 0),
Microsoft.ML.SamplesUtils (8)
SamplesDatasetUtils.cs (8)
130new TextLoader.Column("workclass", DataKind.String, 1), 132new TextLoader.Column("education", DataKind.String, 3), 134new TextLoader.Column("marital-status", DataKind.String, 5), 135new TextLoader.Column("occupation", DataKind.String, 6), 136new TextLoader.Column("relationship", DataKind.String, 7), 137new TextLoader.Column("ethnicity", DataKind.String, 8), 138new TextLoader.Column("sex", DataKind.String, 9), 142new TextLoader.Column("native-country", DataKind.String, 13),
Microsoft.ML.TensorFlow.Tests (21)
TensorFlowEstimatorTests.cs (6)
157new TextLoader.Column("imagePath", DataKind.String, 0), 158new TextLoader.Column("name", DataKind.String, 1) 199new TextLoader.Column("imagePath", DataKind.String, 0), 200new TextLoader.Column("name", DataKind.String, 1) 250new TextLoader.Column("imagePath", DataKind.String, 0), 251new TextLoader.Column("name", DataKind.String, 1)
TensorflowTests.cs (15)
143new TextLoader.Column("ImagePath", DataKind.String, 0), 144new TextLoader.Column("Label", DataKind.String, 1), 544new TextLoader.Column("ImagePath", DataKind.String , 0), 545new TextLoader.Column("Name", DataKind.String, 1) 1014new TextLoader.Column("ImagePath", DataKind.String, 0), 1015new TextLoader.Column("Name", DataKind.String, 1), 1072new TextLoader.Column("ImagePath", DataKind.String, 0), 1073new TextLoader.Column("Name", DataKind.String, 1), 1153new TextLoader.Column("ImagePath", DataKind.String, 0), 1154new TextLoader.Column("Label", DataKind.String, 1), 1226new TextLoader.Column("ImagePath", DataKind.String, 0), 1227new TextLoader.Column("Name", DataKind.String, 1), 1269new TextLoader.Column("Words", DataKind.String, 0), 2054new TextLoader.Column("imagePath", DataKind.String, 0), 2055new TextLoader.Column("name", DataKind.String, 1)
Microsoft.ML.TestFrameworkCommon (2)
Datasets.cs (2)
234new TextLoader.Column("SentimentText", DataKind.String, 1) 420new TextLoader.Column("Label", DataKind.String, 4)
Microsoft.ML.Tests (135)
ImagesTests.cs (31)
38new TextLoader.Column("ImagePath", DataKind.String, 0), 39new TextLoader.Column("Name", DataKind.String, 1), 69new TextLoader.Column("ImagePath", DataKind.String, 0), 70new TextLoader.Column("Name", DataKind.String, 1), 113new TextLoader.Column("ImagePath", DataKind.String, 0), 114new TextLoader.Column("Name", DataKind.String, 1), 145new TextLoader.Column("ImagePath", DataKind.String, 0), 146new TextLoader.Column("Name", DataKind.String, 1), 182new TextLoader.Column("ImagePath", DataKind.String, 0), 183new TextLoader.Column("Name", DataKind.String, 1), 341new TextLoader.Column("ImagePath", DataKind.String, 0), 342new TextLoader.Column("Name", DataKind.String, 1), 416new TextLoader.Column("ImagePath", DataKind.String, 0), 417new TextLoader.Column("Name", DataKind.String, 1), 492new TextLoader.Column("ImagePath", DataKind.String, 0), 493new TextLoader.Column("Name", DataKind.String, 1), 567new TextLoader.Column("ImagePath", DataKind.String, 0), 568new TextLoader.Column("Name", DataKind.String, 1), 642new TextLoader.Column("ImagePath", DataKind.String, 0), 643new TextLoader.Column("Name", DataKind.String, 1), 717new TextLoader.Column("ImagePath", DataKind.String, 0), 718new TextLoader.Column("Name", DataKind.String, 1), 793new TextLoader.Column("ImagePath", DataKind.String, 0), 794new TextLoader.Column("Name", DataKind.String, 1), 868new TextLoader.Column("ImagePath", DataKind.String, 0), 869new TextLoader.Column("Name", DataKind.String, 1), 944new TextLoader.Column("ImagePath", DataKind.String, 0), 945new TextLoader.Column("Name", DataKind.String, 1), 1016new TextLoader.Column("ImagePath", DataKind.String, 0) 1131new TextLoader.Column("ImagePath", DataKind.String, 0), 1132new TextLoader.Column("Label", DataKind.String, 1),
OnnxConversionTest.cs (26)
388new TextLoader.Column("text", DataKind.String, 1) 461DataKind.UInt32, DataKind.UInt16, DataKind.Double, DataKind.String, DataKind.Boolean)] DataKind valueType, 872new TextLoader.Column("text", DataKind.String, 1) 928[InlineData(DataKind.String, DataKind.Double)] 929[InlineData(DataKind.String, DataKind.Single)] 930[InlineData(DataKind.String, DataKind.UInt64)] 931[InlineData(DataKind.String, DataKind.UInt32)] 932[InlineData(DataKind.String, DataKind.UInt16)] 933[InlineData(DataKind.String, DataKind.Byte)] 934[InlineData(DataKind.String, DataKind.Int64)] 935[InlineData(DataKind.String, DataKind.Int32)] 936[InlineData(DataKind.String, DataKind.Int16)] 937[InlineData(DataKind.String, DataKind.SByte)] 1055DataKind.UInt16, DataKind.UInt32, DataKind.UInt64, DataKind.Single, DataKind.Double, DataKind.String, DataKind.Boolean)] DataKind type, 1072(type == DataKind.String) ? 20 : 22; 1094DataKind.UInt16, DataKind.UInt32, DataKind.UInt64, DataKind.Single, DataKind.Double, DataKind.String, DataKind.Boolean)] DataKind type, 1111(type == DataKind.String) ? 20 : 22; 1123(type == DataKind.String) ? 21 : 23; 1184DataKind.UInt32, DataKind.UInt16, DataKind.Double, DataKind.String, DataKind.Boolean)] DataKind valueType, 1223DataKind.UInt16, DataKind.Int16, DataKind.Double, DataKind.String, DataKind.Boolean)] 1283else if (keyType == DataKind.String) 1387[InlineData(DataKind.String)] 1596[InlineData(DataKind.String)] 1765new TextLoader.Column("Label", DataKind.String, 0), 1838[InlineData(DataKind.String)] 1869if (dataKind == DataKind.String && i > 0)
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (3)
507new TextLoader.Column("Message", DataKind.String, 1), 577new TextLoader.Column("CategoricalFeatures", DataKind.String, 1, 8), 581new TextLoader.Column("Workclass", DataKind.String, 1),
Scenarios\Api\TestApi.cs (4)
303new TextLoader.Column("Workclass", DataKind.String, 1), 304new TextLoader.Column("Education", DataKind.String,2), 351new TextLoader.Column("Workclass", DataKind.String, 1), 352new TextLoader.Column("Education", DataKind.String,2),
Scenarios\GetColumnTests.cs (6)
32new TextLoader.Column("stringScalar", DataKind.String, 4), 33new TextLoader.Column("stringVector", DataKind.String, 5, 7) 53new TextLoader.Column("floatScalar", DataKind.String, 1), 55new TextLoader.Column("stringVector", DataKind.String, 5, 7) 74new TextLoader.Column("stringScalar", DataKind.String, 4), 75new TextLoader.Column("stringVector", DataKind.String, 5, 7)
Scenarios\IrisPlantClassificationWithStringLabelTests.cs (1)
24new TextLoader.Column("IrisPlantType", DataKind.String, 4),
TermEstimatorTests.cs (2)
64new TextLoader.Column("text1", DataKind.String, 1), 65new TextLoader.Column("text2", DataKind.String, new[]{new TextLoader.Range(1), new TextLoader.Range(2)}),
TextLoaderTests.cs (5)
1287new TextLoader.Column("description", DataKind.String, 1), 1288new TextLoader.Column("animal", DataKind.String, 2), 1398new TextLoader.Column("description", DataKind.String, 1), 1399new TextLoader.Column("animal", DataKind.String, 2), 1437new TextLoader.Column("description", DataKind.String, 1),
TrainerEstimators\PriorRandomTests.cs (1)
23new TextLoader.Column("F1", DataKind.String, 1),
TrainerEstimators\TrainerEstimators.cs (4)
200new TextLoader.Column("SentimentText", DataKind.String, 1), 234new TextLoader.Column("Workclass", DataKind.String, 1), 271new TextLoader.Column("Label", DataKind.String, 4) 284new TextLoader.Column("Label", DataKind.String, 4)
Transformers\CategoricalHashTests.cs (3)
82new TextLoader.Column("ScalarString", DataKind.String, 1), 83new TextLoader.Column("VectorString", DataKind.String, 1, 4), 84new TextLoader.Column("SingleVectorString", DataKind.String, new[] { new TextLoader.Range(1, 1) })
Transformers\CategoricalTests.cs (2)
158new TextLoader.Column("ScalarString", DataKind.String, 1), 159new TextLoader.Column("VectorString", DataKind.String, 1, 4)
Transformers\ConvertTests.cs (6)
254var allInputTypesDataPipe = ML.Transforms.Conversion.ConvertType(columns: new[] {new TypeConvertingEstimator.ColumnOptions("A1", DataKind.String, "A"), 255new TypeConvertingEstimator.ColumnOptions("B1", DataKind.String, "B"), 256new TypeConvertingEstimator.ColumnOptions("C1", DataKind.String, "C"), 257new TypeConvertingEstimator.ColumnOptions("D1", DataKind.String, "D"), 258new TypeConvertingEstimator.ColumnOptions("E1", DataKind.String, "E"), 259new TypeConvertingEstimator.ColumnOptions("F1", DataKind.String, "F"),
Transformers\CountTargetEncodingTests.cs (9)
27new TextLoader.Column("ScalarString", DataKind.String, 1), 28new TextLoader.Column("VectorString", DataKind.String, 1, 9), 43new TextLoader.Column("Text", DataKind.String, 1,9)}); 58new TextLoader.Column("ScalarString", DataKind.String, 1), 59new TextLoader.Column("VectorString", DataKind.String, 1, 9), 78new TextLoader.Column("ScalarString", DataKind.String, 1), 79new TextLoader.Column("VectorString", DataKind.String, 2, 9), 163new TextLoader.Column("ScalarString", DataKind.String, 1), 164new TextLoader.Column("VectorString", DataKind.String, 1, 9),
Transformers\CustomMappingTests.cs (2)
95new TextLoader.Column("Text1", DataKind.String, 0) 172new TextLoader.Column("Label", DataKind.String, 0),
Transformers\ExpressionTransformerTests.cs (2)
33new TextLoader.Column("Text", DataKind.String, 1), 34new TextLoader.Column("TextVector", DataKind.String, 2, 8),
Transformers\FeatureSelectionTests.cs (2)
33new TextLoader.Column("text", DataKind.String, 1) }, 233new TextLoader.Column("Features", DataKind.String, 1, 9),
Transformers\KeyToBinaryVectorEstimatorTest.cs (2)
64new TextLoader.Column("ScalarString", DataKind.String, 0), 65new TextLoader.Column("VectorString", DataKind.String, 1, 4),
Transformers\KeyToValueTests.cs (4)
31new TextLoader.Column("ScalarString", DataKind.String, 1), 32new TextLoader.Column("VectorString", DataKind.String, new[] {new TextLoader.Range(1, 4) }), 69new TextLoader.Column("ScalarString", DataKind.String, 0), 70new TextLoader.Column("VectorString", DataKind.String, 1, 4),
Transformers\KeyToVectorEstimatorTests.cs (2)
74new TextLoader.Column("ScalarString", DataKind.String, 0), 75new TextLoader.Column("VectorString", DataKind.String, 1, 4),
Transformers\NormalizerTests.cs (4)
663new TextLoader.Column("features", DataKind.String, 0, 10) 697new TextLoader.Column("features", DataKind.String, 0, 10) 761new TextLoader.Column("features", DataKind.String, 0, 10) 821new TextLoader.Column("features", DataKind.String, 0, 10)
Transformers\PcaTests.cs (1)
38new TextLoader.Column("features", DataKind.String, 1, 10)
Transformers\TextFeaturizerTests.cs (10)
428new TextLoader.Column("text", DataKind.String, 1) }, 461new TextLoader.Column("text", DataKind.String, 1) }, 491new TextLoader.Column("text", DataKind.String, 1) }, 528new TextLoader.Column("text", DataKind.String, 1) }, 562new TextLoader.Column("Text", DataKind.String, 1) 591new TextLoader.Column("text", DataKind.String, 1) }, 621new TextLoader.Column("text", DataKind.String, 1) }, 658new TextLoader.Column("SentimentText", DataKind.String, 1) }, 675new TextLoader.Column("text", DataKind.String, 1) }, 779new TextLoader.Column("Features", DataKind.String, 1, 9)
Transformers\TextNormalizer.cs (1)
53new TextLoader.Column("text", DataKind.String, 1)
Transformers\WordEmbeddingsTests.cs (2)
37new TextLoader.Column("SentimentText", DataKind.String, 1) 72new TextLoader.Column("SentimentText", DataKind.String, 1)
Microsoft.ML.TorchSharp.Tests (12)
NerTests.cs (3)
197new TextLoader.Column("Key", DataKind.String, 0) 206new TextLoader.Column("Sentence", DataKind.String, 0), 207new TextLoader.Column("Label", DataKind.String, new TextLoader.Range[]
ObjectDetectionTests.cs (4)
37new TextLoader.Column("ImagePath", DataKind.String, 0), 38new TextLoader.Column("Labels", DataKind.String, 1), 39new TextLoader.Column("Box", DataKind.String, 2) 96new TextLoader.Column("ImagePath", DataKind.String, 0),
QATests.cs (3)
77new TextLoader.Column("Context", DataKind.String,0), 78new TextLoader.Column("Question", DataKind.String,1), 79new TextLoader.Column("TrainingAnswer", DataKind.String,2),
TextClassificationTests.cs (2)
421new TextLoader.Column("search_term", DataKind.String,3), 423new TextLoader.Column("product_description", DataKind.String,5)
Microsoft.ML.Transforms (1)
Text\StopWordsRemovingTransformer.cs (1)
816new TextLoader.Column(stopwordsCol, DataKind.String, 0)