271 references to String
Microsoft.ML.AutoML (2)
Microsoft.ML.AutoML.Tests (2)
Microsoft.ML.CodeGenerator (2)
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)
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)
Microsoft.ML.Fairlearn (1)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.OnnxTransformerTest (8)
Microsoft.ML.PerformanceTests (5)
Microsoft.ML.Samples (11)
Microsoft.ML.Samples.GPU (1)
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)
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)
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\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\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\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\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\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)
Microsoft.ML.TorchSharp.Tests (12)
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),
Microsoft.ML.Transforms (1)