1143 references to DataKind
Microsoft.ML.AutoML (13)
AutoMLExperiment\ITrialResultManager.cs (6)
140new TextLoader.Column("id", DataKind.Int32, 0), 141new TextLoader.Column("loss", DataKind.Single, 1), 142new TextLoader.Column("durationInMilliseconds", DataKind.Single, 2), 143new TextLoader.Column("peakCpu", DataKind.Single, 3), 144new TextLoader.Column("peakMemoryInMegaByte", DataKind.Single, 4), 145new TextLoader.Column("parameter", DataKind.Double, 5, 5 + _searchSpace.FeatureSpaceDim - 1),
ColumnInference\ColumnGroupingInference.cs (5)
28public DataKind ItemKind; 32public GroupingColumn(string name, DataKind kind, ColumnPurpose purpose, Range[] ranges) 94private static string GetName(DataKind itemKind, ColumnPurpose purpose, List<GroupingColumn> previousColumns) 108private static string GetPurposeName(ColumnPurpose purpose, DataKind itemKind) 113if (itemKind == DataKind.Boolean)
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 (17)
AutoFitTests.cs (7)
699new TextLoader.Column(labelColumnName, DataKind.Single, new [] { new TextLoader.Range(0) }), 700new TextLoader.Column(userIdColumnName, DataKind.UInt32, new [] { new TextLoader.Range(1) }, new KeyCount(20)), 701new TextLoader.Column(itemIdColumnName, DataKind.UInt32, new [] { new TextLoader.Range(2) }, new KeyCount(40)), 714new TextLoader.Column(labelColumnName, DataKind.Single, 0), 715new TextLoader.Column(groupIdColumnName, DataKind.Int32, 1), 716new TextLoader.Column(featureColumnVectorNameA, DataKind.Single, 2, 9), 717new TextLoader.Column(featureColumnVectorNameB, DataKind.Single, 10, 137)
ColumnInferenceTests.cs (10)
83Assert.Equal(DataKind.Single, emptyColumn.DataKind); 95Assert.Equal(DataKind.Single, boolColumn.DataKind); 96Assert.Equal(DataKind.Boolean, labelColumn.DataKind); 124Assert.Equal(DataKind.String, labelColumn.DataKind); 125Assert.Equal(DataKind.Single, userColumn.DataKind); 126Assert.Equal(DataKind.Single, itemColumn.DataKind); 127Assert.Equal(DataKind.Single, ignoreColumn.DataKind); 141Assert.Equal(DataKind.String, nameColumn.DataKind); 142Assert.Equal(DataKind.Boolean, labelColumn.DataKind); 193Assert.Equal(DataKind.Single, labelCol.DataKind);
Microsoft.ML.CodeGenerator (22)
CodeGenerator\CSharp\AzureCodeGenerator\AzureAttachModelCodeGenerator.cs (1)
56var labelType = _columnInferenceResult.TextLoaderOptions.Columns.Where(t => t.Name == _settings.LabelName).First().DataKind;
CodeGenerator\CSharp\CodeGenerator.cs (1)
60var labelType = _columnInferenceResult.TextLoaderOptions.Columns.Where(t => t.Name == _settings.LabelName).First().DataKind;
CodeGenerator\CSharp\CodeGeneratorSettings.cs (1)
82public DataKind ColumnType;
Utils.cs (19)
150internal static Type GetCSharpType(DataKind labelType) 154case Microsoft.ML.Data.DataKind.String: 156case Microsoft.ML.Data.DataKind.Boolean: 158case Microsoft.ML.Data.DataKind.Single: 160case Microsoft.ML.Data.DataKind.Double: 162case Microsoft.ML.Data.DataKind.Int32: 164case Microsoft.ML.Data.DataKind.UInt32: 166case Microsoft.ML.Data.DataKind.Int64: 168case Microsoft.ML.Data.DataKind.UInt64: 274DataKind dataKind; 341internal static string GetSymbolOfDataKind(DataKind dataKind) 345case DataKind.String: 347case DataKind.Boolean: 349case DataKind.Single: 351case DataKind.Double: 353case DataKind.Int32: 355case DataKind.UInt32: 357case DataKind.Int64: 359case DataKind.UInt64:
Microsoft.ML.CodeGenerator.Tests (102)
ApprovalTests\ConsoleCodeGeneratorTests.cs (77)
572new TextLoader.Column("Label", DataKind.String, 0), 573new TextLoader.Column("userId", DataKind.String, 1), 574new TextLoader.Column("movieId", DataKind.String, 2), 611new TextLoader.Column("Label", DataKind.Boolean, 0), 612new TextLoader.Column("col1", DataKind.Single, 1), 613new TextLoader.Column("col2", DataKind.Single, 0), 614new TextLoader.Column("col3", DataKind.String, 0), 615new TextLoader.Column("col4", DataKind.Int32, 0), 616new TextLoader.Column("col5", DataKind.UInt32, 0), 648new TextLoader.Column("Label", DataKind.Boolean, 0), 649new TextLoader.Column("col1", DataKind.Single, 1), 650new TextLoader.Column("col2", DataKind.Single, 0), 651new TextLoader.Column("col3", DataKind.String, 0), 652new TextLoader.Column("col4", DataKind.Int32, 0), 653new TextLoader.Column("col5", DataKind.UInt32, 0), 701new TextLoader.Column("Label", DataKind.String, 0), 702new TextLoader.Column("ImagePath", DataKind.String, 1), // 0? 739new TextLoader.Column("Label", DataKind.Boolean, 0), 740new TextLoader.Column("GroupId", DataKind.Single, 1), 741new TextLoader.Column("col1", DataKind.Single, 0), 742new TextLoader.Column("col2", DataKind.String, 0), 743new TextLoader.Column("col3", DataKind.Int32, 0), 744new TextLoader.Column("col4", DataKind.UInt32, 0), 790new TextLoader.Column("Label", DataKind.String, 0), 791new TextLoader.Column("ImageSource", DataKind.String, 1), // 0? 821new TextLoader.Column("Age", DataKind.Double, 0), 822new TextLoader.Column("Workclass", DataKind.String, 1), // 0? 823new TextLoader.Column("Fnlwgt", DataKind.Double, 2), 824new TextLoader.Column("Education", DataKind.String, 3), 825new TextLoader.Column("Education_num", DataKind.Double, 4), 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), 831new TextLoader.Column("Capital_gain", DataKind.Double, 10), 832new TextLoader.Column("Capital_loss", DataKind.Double, 11), 833new TextLoader.Column("Hours_per_week", DataKind.Double, 12), 834new TextLoader.Column("Native_country", DataKind.String, 13), 835new TextLoader.Column("label", DataKind.Boolean, 14), 858ColumnType = DataKind.Int64, 866ColumnType = DataKind.String, 874ColumnType = DataKind.Int64, 882ColumnType = DataKind.String, 890ColumnType = DataKind.Int64, 898ColumnType = DataKind.String, 906ColumnType = DataKind.String, 914ColumnType = DataKind.String, 922ColumnType = DataKind.String, 930ColumnType = DataKind.String, 938ColumnType = DataKind.Int64, 946ColumnType = DataKind.Int64, 954ColumnType = DataKind.Int64, 962ColumnType = DataKind.String, 970ColumnType = DataKind.Boolean, 996new TextLoader.Column("id", DataKind.Int32, 0), 997new TextLoader.Column("MsAssetNum", DataKind.Int32, 1), 998new TextLoader.Column("Make", DataKind.String, 2), 999new TextLoader.Column("Model", DataKind.String, 3), 1000new TextLoader.Column("model", DataKind.Double, 4), 1001new TextLoader.Column("work category", DataKind.String, 5), 1002new TextLoader.Column("Work category", DataKind.Int32, 6), 1003new TextLoader.Column("IsDetachable", DataKind.Boolean, 7), 1026ColumnType = DataKind.Int32, 1034ColumnType = DataKind.Int32, 1042ColumnType = DataKind.String, 1050ColumnType = DataKind.String, 1058ColumnType = DataKind.Double, 1066ColumnType = DataKind.String, 1074ColumnType = DataKind.Int32, 1082ColumnType = DataKind.Boolean, 1106new TextLoader.Column("Label", DataKind.Boolean, 0), 1107new TextLoader.Column("col1", DataKind.Single, 1), 1108new TextLoader.Column("col2", DataKind.Single, 0), 1109new TextLoader.Column("col3", DataKind.String, 0), 1110new TextLoader.Column("col4", DataKind.Int32, 0), 1111new TextLoader.Column("col5", DataKind.UInt32, 0),
CodeGenTests.cs (25)
145new TextLoader.Column(){ Name = "Label", Source = new TextLoader.Range[]{new TextLoader.Range(0) }, DataKind = DataKind.Boolean }, 149new TextLoader.Column(){ Name = "id", Source = new TextLoader.Range[]{new TextLoader.Range(0) }, DataKind = DataKind.Single }, 150new TextLoader.Column(){ Name = "country", Source = new TextLoader.Range[]{new TextLoader.Range(1) }, DataKind = DataKind.Single }, 151new TextLoader.Column(){ Name = "Country", Source = new TextLoader.Range[]{new TextLoader.Range(2) }, DataKind = DataKind.String } 155new TextLoader.Column(){ Name = "id", Source = new TextLoader.Range[]{new TextLoader.Range(0) }, DataKind = DataKind.Int32 }, 156new TextLoader.Column(){ Name = "shape", Source = new TextLoader.Range[]{new TextLoader.Range(1) }, DataKind = DataKind.Int32 }, 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 }, 159new TextLoader.Column(){ Name = "price", Source = new TextLoader.Range[]{new TextLoader.Range(4) }, DataKind = DataKind.Double }, 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 }, 167new TextLoader.Column(){ Name = "MSRP", Source = new TextLoader.Range[]{new TextLoader.Range(4) }, DataKind = DataKind.Single }, 168new TextLoader.Column(){ Name = "engine size", Source = new TextLoader.Range[]{new TextLoader.Range(5) }, DataKind = DataKind.Double }, 169new TextLoader.Column(){ Name = "isElectric", Source = new TextLoader.Range[]{new TextLoader.Range(6) }, DataKind = DataKind.Boolean }, 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 }, 175new TextLoader.Column(){ Name = "var_num", Source = new TextLoader.Range[]{new TextLoader.Range(2) }, DataKind = DataKind.Int32 }, 176new TextLoader.Column(){ Name = "var_num", Source = new TextLoader.Range[]{new TextLoader.Range(3) }, DataKind = DataKind.Int32 }, 177new TextLoader.Column(){ Name = "var_num", Source = new TextLoader.Range[]{new TextLoader.Range(4) }, DataKind = DataKind.Int32 }, 178new TextLoader.Column(){ Name = "var_text", Source = new TextLoader.Range[]{new TextLoader.Range(5) }, DataKind = DataKind.String }, 179new TextLoader.Column(){ Name = "var_num", Source = new TextLoader.Range[]{new TextLoader.Range(6) }, DataKind = DataKind.Int32 }, 180new TextLoader.Column(){ Name = "var_text", Source = new TextLoader.Range[]{new TextLoader.Range(7) }, DataKind = DataKind.String }, 181new TextLoader.Column(){ Name = "var_num", Source = new TextLoader.Range[]{new TextLoader.Range(8) }, DataKind = DataKind.Double },
Microsoft.ML.Core (23)
Data\DataKind.cs (23)
75/// Data type specifier used in command line. <see cref="InternalDataKind"/> is the underlying version of <see cref="DataKind"/> 86I1 = DataKind.SByte, 87U1 = DataKind.Byte, 88I2 = DataKind.Int16, 89U2 = DataKind.UInt16, 90I4 = DataKind.Int32, 91U4 = DataKind.UInt32, 92I8 = DataKind.Int64, 93U8 = DataKind.UInt64, 94R4 = DataKind.Single, 95R8 = DataKind.Double, 98TX = DataKind.String, 103BL = DataKind.Boolean, 106TS = DataKind.TimeSpan, 108DT = DataKind.DateTime, 110DZ = DataKind.DateTimeOffset, 147/// Because <see cref="DataKind"/> is a subset of <see cref="InternalDataKind"/>, the conversion is straightforward. 149public static InternalDataKind ToInternalDataKind(this DataKind dataKind) => (InternalDataKind)dataKind; 152/// This function converts <paramref name="kind"/> to <see cref="DataKind"/>. 153/// Because <see cref="DataKind"/> is a subset of <see cref="InternalDataKind"/>, we should check if <paramref name="kind"/> 154/// can be found in <see cref="DataKind"/>. 156public static DataKind ToDataKind(this InternalDataKind kind) 159return (DataKind)kind;
Microsoft.ML.Core.Tests (24)
UnitTests\TestEntryPoints.cs (23)
53new TextLoader.Column("Label", DataKind.Single, 0), 54new TextLoader.Column("Features", DataKind.Single, 74new TextLoader.Column("Label", DataKind.Single, 0), 75new TextLoader.Column("F1", DataKind.String, 1), 76new TextLoader.Column("F2", DataKind.Int32, 2), 77new TextLoader.Column("Rest", DataKind.Single, new [] { new TextLoader.Range(3, 9) }) 1369new TextLoader.Column("Label", DataKind.Boolean, 0), 1370new TextLoader.Column("SentimentText", DataKind.String, 1) 1777new TextLoader.Column("Label", DataKind.String, 0), 1778new TextLoader.Column("Text", DataKind.String, 3) 1993new TextLoader.Column("Label", DataKind.Single, 0), 1994new TextLoader.Column("Features", DataKind.Single, new [] { new TextLoader.Range(1, 4) }) 2139new TextLoader.Column("Label", DataKind.Single, 0), 2140new TextLoader.Column("Features", DataKind.Single, new[] { new TextLoader.Range(1, 8) }), 2141new TextLoader.Column("Cat", DataKind.String, 9) 4241new TextLoader.Column("Label", DataKind.Single, 0), 4242new TextLoader.Column("Features", DataKind.Single, new [] { new TextLoader.Range(1, 9) }) 4316new TextLoader.Column("Features", DataKind.Single, new [] { new TextLoader.Range(1, 784) }) 4529new TextLoader.Column("Text", DataKind.String, 4721new TextLoader.Column("Text", DataKind.String, 1, 2), 4722new TextLoader.Column("Label", DataKind.Single, 0) 4763new TextLoader.Column("Text", DataKind.String, 1, 2), 4764new TextLoader.Column("Label", DataKind.Single, 0)
UnitTests\TestHosts.cs (1)
131env.Data.CreateTextLoader(new TextLoader.Options { Columns = new[] { new TextLoader.Column("TestColumn", DataKind.Single, 0) } });
Microsoft.ML.Data (34)
DataLoadSave\DataOperationsCatalog.cs (1)
566data = new TypeConvertingTransformer(env, splitColumnName, DataKind.Int64, samplingKeyColumn).Transform(data);
DataLoadSave\Text\TextLoader.cs (8)
54/// <param name="dataKind"><see cref="Data.DataKind"/> of the items in the column.</param> 56public Column(string name, DataKind dataKind, int index) 65/// <param name="dataKind"><see cref="Data.DataKind"/> of the items in the column.</param> 68public Column(string name, DataKind dataKind, int minIndex, int maxIndex) 77/// <param name="dataKind"><see cref="Data.DataKind"/> of the items in the column.</param> 80public Column(string name, DataKind dataKind, Range[] source, KeyCount keyCount = null) 118/// <see cref="Data.DataKind"/> of the items in the column. 121public DataKind DataKind
DataLoadSave\Text\TextLoaderSaverCatalog.cs (2)
151/// values by the default missing value for each type documented in <see cref="DataKind"/>.</param> 224/// values by the default missing value for each type documented in <see cref="DataKind"/>.</param>
Transforms\ConversionsExtensionsCatalog.cs (2)
83DataKind outputKind = ConvertDefaults.DefaultOutputKind) 102DataKind outputKind = ConvertDefaults.DefaultOutputKind)
Transforms\KeyToValue.cs (3)
514var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Int64).ToType(); 554t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Double).ToType(); 568t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Boolean).ToType();
Transforms\TypeConverting.cs (8)
192internal TypeConvertingTransformer(IHostEnvironment env, string outputColumnName, DataKind outputKind, string inputColumnName = null, KeyCount outputKeyCount = null) 531/// <seealso cref="ConversionsExtensionsCatalog.ConvertType(TransformsCatalog.ConversionTransforms, InputOutputColumnPair[], DataKind)"/> 532/// <seealso cref="ConversionsExtensionsCatalog.ConvertType(TransformsCatalog.ConversionTransforms, string, string, DataKind)"/> 537public const DataKind DefaultOutputKind = DataKind.Single; 557public readonly DataKind OutputKind; 570public ColumnOptions(string name, DataKind outputKind, string inputColumnName, KeyCount outputKeyCount = null) 605DataKind outputKind = Defaults.DefaultOutputKind)
Transforms\ValueMapping.cs (7)
534TextLoader.Column valueColumn = new TextLoader.Column(valueColumnName, DataKind.UInt32, 1); 541valueColumn.Type = DataKind.UInt64.ToInternalDataKind(); 642keyColumn = new TextLoader.Column(keyColumnName, DataKind.String, 0); 643valueColumn = new TextLoader.Column(valueColumnName, DataKind.String, 1); 665keyColumn = new TextLoader.Column(keyColumnName, DataKind.String, 0); 666valueColumn = new TextLoader.Column(valueColumnName, DataKind.Single, 1); 1202var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.String).ToType();
Transforms\ValueToKeyMappingTransformer.cs (3)
442new TextLoader.Column("Term", DataKind.String, 0) 793var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.String).ToType(); 806var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Single).ToType();
Microsoft.ML.EntryPoints (2)
FeatureCombiner.cs (2)
188Utils.Add(ref cvt, new TypeConvertingEstimator.ColumnOptions(colName, DataKind.Single, col.Name)); 303var xf = new TypeConvertingTransformer(host, new TypeConvertingEstimator.ColumnOptions(input.LabelColumn, DataKind.Single, input.LabelColumn)).Transform(input.Data);
Microsoft.ML.Fairlearn (1)
Metrics\FairlearnMetricCatalog.cs (1)
68var convertToString = _context.Transforms.Conversion.ConvertType(sensitiveCol.Name, sensitiveCol.Name, DataKind.String);
Microsoft.ML.FastTree (1)
FastTree.cs (1)
1355data = new TypeConvertingTransformer(Host, new TypeConvertingEstimator.ColumnOptions(groupName, DataKind.UInt64, groupName)).Transform(data);
Microsoft.ML.IntegrationTests (23)
Datasets\MnistOneClass.cs (2)
21new TextLoader.Column("Label", DataKind.Single, 0), 22new TextLoader.Column("Features", DataKind.Single, 1, 1 + _featureLength)
Datasets\TypeTestData.cs (17)
12/// A class containing one property per <see cref="DataKind"/>. 81new TextLoader.Column("Label", DataKind.Boolean, 0), 82new TextLoader.Column("I1", DataKind.SByte, 1), 83new TextLoader.Column("U1", DataKind.Byte, 2), 84new TextLoader.Column("I2", DataKind.Int16, 3), 85new TextLoader.Column("U2", DataKind.UInt16, 4), 86new TextLoader.Column("I4", DataKind.Int32, 5), 87new TextLoader.Column("U4", DataKind.UInt32, 6), 88new TextLoader.Column("I8", DataKind.Int64, 7), 89new TextLoader.Column("U8", DataKind.UInt64, 8), 90new TextLoader.Column("R4", DataKind.Single, 9), 91new TextLoader.Column("R8", DataKind.Double, 10), 92new TextLoader.Column("Tx", DataKind.String, 11), 93new TextLoader.Column("Ts", DataKind.TimeSpan, 12), 94new TextLoader.Column("Dt", DataKind.DateTime, 13), 95new TextLoader.Column("Dz", DataKind.DateTimeOffset, 14), 96new TextLoader.Column("Features", DataKind.Single, 15, 15 + _numFeatures - 1),
Validation.cs (4)
79new TextLoader.Column(labelColumnName, DataKind.Single, 0), 80new TextLoader.Column(groupIdColumnName, DataKind.Int32, 1), 81new TextLoader.Column(featuresColumnVectorNameA, DataKind.Single, 2, 9), 82new TextLoader.Column(featuresColumnVectorNameB, DataKind.Single, 10, 137)
Microsoft.ML.KMeansClustering (1)
KMeansModelParameters.cs (1)
367var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.UInt32).ToType();
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 (28)
FeaturizeTextBench.cs (1)
36columns.Add(new TextLoader.Column($"Column{i}", DataKind.String, i));
KMeansAndLogisticRegressionBench.cs (3)
25new TextLoader.Column("Label", DataKind.Boolean, 0), 26new TextLoader.Column("CatFeatures", DataKind.String, 30new TextLoader.Column("NumFeatures", DataKind.Single,
PredictionEngineBench.cs (9)
45new TextLoader.Column("Label", DataKind.Single, 0), 46new TextLoader.Column("SepalLength", DataKind.Single, 1), 47new TextLoader.Column("SepalWidth", DataKind.Single, 2), 48new TextLoader.Column("PetalLength", DataKind.Single, 3), 49new TextLoader.Column("PetalWidth", DataKind.Single, 4), 84new TextLoader.Column("Label", DataKind.Boolean, 0), 85new TextLoader.Column("SentimentText", DataKind.String, 1) 119new TextLoader.Column("Label", DataKind.Boolean, 0), 120new TextLoader.Column("Features", DataKind.Single, new[] { new TextLoader.Range(1, 9) })
RffTransform.cs (2)
36new TextLoader.Column("Label", DataKind.Single, 64), 37new TextLoader.Column("Features", DataKind.Single, new[] {new TextLoader.Range() {Min = 0, Max = 63}})
StochasticDualCoordinateAscentClassifierBench.cs (12)
66new TextLoader.Column("Label", DataKind.Single, 0), 67new TextLoader.Column("SepalLength", DataKind.Single, 1), 68new TextLoader.Column("SepalWidth", DataKind.Single, 2), 69new TextLoader.Column("PetalLength", DataKind.Single, 3), 70new TextLoader.Column("PetalWidth", DataKind.Single, 4), 93new TextLoader.Column("Label", DataKind.Single, new[] { new TextLoader.Range() { Min = 0, Max = 0 } }), 94new TextLoader.Column("SentimentText", DataKind.String, new[] { new TextLoader.Range() { Min = 1, Max = 1 } }) 135new TextLoader.Column("Label", DataKind.Single, 0), 136new TextLoader.Column("SepalLength", DataKind.Single, 1), 137new TextLoader.Column("SepalWidth", DataKind.Single, 2), 138new TextLoader.Column("PetalLength", DataKind.Single, 3), 139new TextLoader.Column("PetalWidth", DataKind.Single, 4),
TextLoaderBench.cs (1)
39_columns.Add(new TextLoader.Column($"Column{i}", DataKind.String, i));
Microsoft.ML.Predictor.Tests (4)
TestIniModels.cs (4)
525new TextLoader.Column("Label", DataKind.Single, 0), 526new TextLoader.Column("Features", DataKind.Single, 1, 9) 564new TextLoader.Column("Label", DataKind.Boolean, 0), 565new TextLoader.Column("Features", DataKind.Single, 1, 9)
Microsoft.ML.Samples (22)
Dynamic\DataOperations\LoadingText.cs (3)
46new TextLoader.Column("Features", DataKind.Single, 0, 9) 95DataKind.Single, 141new TextLoader.Column("Features", DataKind.Single, 0, 9)
Dynamic\TensorFlow\TextClassification.cs (2)
50new TextLoader.Column("Words", DataKind.String, 0), 51new TextLoader.Column("Ids", DataKind.Int32, 1),
Dynamic\Trainers\Regression\OrdinaryLeastSquaresAdvanced.cs (2)
38new TextLoader.Column("Label", DataKind.Single, 0), 39new TextLoader.Column("Features", DataKind.Single, 1, 6)
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptionsAdvanced.cs (2)
38new TextLoader.Column("Label", DataKind.Single, 0), 39new TextLoader.Column("Features", DataKind.Single, 1, 6)
Dynamic\Transforms\Concatenate.cs (1)
50outputKind: DataKind.Single)
Dynamic\Transforms\Conversion\ConvertType.cs (1)
24"SurvivedInt32", "Survived", DataKind.Int32);
Dynamic\Transforms\Conversion\ConvertTypeMultiColumn.cs (1)
47DataKind.Single);
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 (2)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\TextClassification.cs (2)
50new TextLoader.Column("Words", DataKind.String, 0), 51new TextLoader.Column("Ids", DataKind.Int32, 1),
Microsoft.ML.Samples.OneDal (3)
Program.cs (3)
29columns.Add(new TextLoader.Column(column, DataKind.Boolean, Array.IndexOf(headerArray, column))); 31columns.Add(new TextLoader.Column(column, DataKind.Single, Array.IndexOf(headerArray, column))); 35columns.Add(new TextLoader.Column(column, DataKind.Single, Array.IndexOf(headerArray, column)));
Microsoft.ML.SamplesUtils (27)
SamplesDatasetUtils.cs (27)
53new TextLoader.Column("MedianHomeValue", DataKind.Single, 0), 54new TextLoader.Column("CrimesPerCapita", DataKind.Single, 1), 55new TextLoader.Column("PercentResidental", DataKind.Single, 2), 56new TextLoader.Column("PercentNonRetail", DataKind.Single, 3), 57new TextLoader.Column("CharlesRiver", DataKind.Single, 4), 58new TextLoader.Column("NitricOxides", DataKind.Single, 5), 59new TextLoader.Column("RoomsPerDwelling", DataKind.Single, 6), 60new TextLoader.Column("PercentPre40s", DataKind.Single, 7), 61new TextLoader.Column("EmploymentDistance", DataKind.Single, 8), 62new TextLoader.Column("HighwayDistance", DataKind.Single, 9), 63new TextLoader.Column("TaxRate", DataKind.Single, 10), 64new TextLoader.Column("TeacherRatio", DataKind.Single, 11), 129new TextLoader.Column("age", DataKind.Single, 0), 130new TextLoader.Column("workclass", DataKind.String, 1), 131new TextLoader.Column("fnlwgt", DataKind.Single, 2), 132new TextLoader.Column("education", DataKind.String, 3), 133new TextLoader.Column("education-num", DataKind.Single, 4), 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), 139new TextLoader.Column("capital-gain", DataKind.Single, 10), 140new TextLoader.Column("capital-loss", DataKind.Single, 11), 141new TextLoader.Column("hours-per-week", DataKind.Single, 12), 142new TextLoader.Column("native-country", DataKind.String, 13), 143new TextLoader.Column("IsOver50K", DataKind.Boolean, 14),
Microsoft.ML.StandardTrainers (9)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
1006var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.UInt32).ToType();
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (4)
462var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Single).ToType(); 533t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Single).ToType(); 557t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Single).ToType(); 567t = InternalDataKindExtensions.ToInternalDataKind(DataKind.UInt32).ToType();
Standard\MulticlassClassification\OneVersusAllTrainer.cs (3)
589var t2 = InternalDataKindExtensions.ToInternalDataKind(DataKind.UInt32).ToType(); 808var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Boolean).ToType(); 818var t1 = InternalDataKindExtensions.ToInternalDataKind(DataKind.Single).ToType();
Standard\Simple\SimpleTrainers.cs (1)
427var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.Single).ToType();
Microsoft.ML.TensorFlow.Tests (31)
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 (25)
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) 657new TextLoader.Column("Label", DataKind.UInt32 , new [] { new TextLoader.Range(0) }, new KeyCount(10)), 658new TextLoader.Column("Placeholder", DataKind.Single, new []{ new TextLoader.Range(1, 784) }) 700new TextLoader.Column("Label", DataKind.Int64, 0), 701new TextLoader.Column("Placeholder", DataKind.Single, new []{ new TextLoader.Range(1, 784) }) 789new TextLoader.Column("Label", DataKind.UInt32, new []{ new TextLoader.Range(0) }, new KeyCount(10)), 790new TextLoader.Column("TfLabel", DataKind.Int64, 0), 791new TextLoader.Column("Placeholder", DataKind.Single, new []{ new TextLoader.Range(1, 784) }) 882new TextLoader.Column("Label", DataKind.UInt32 , new [] { new TextLoader.Range(0) }, new KeyCount(10)), 883new TextLoader.Column("Placeholder", DataKind.Single, new []{ new TextLoader.Range(1, 784) }) 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), 1270new TextLoader.Column("Ids", DataKind.Int32, 1), 2054new TextLoader.Column("imagePath", DataKind.String, 0), 2055new TextLoader.Column("name", DataKind.String, 1)
Microsoft.ML.TestFrameworkCommon (19)
Datasets.cs (19)
180new TextLoader.Column("MedianHomeValue", DataKind.Single, 0), 181new TextLoader.Column("CrimesPerCapita", DataKind.Single, 1), 182new TextLoader.Column("PercentResidental", DataKind.Single, 2), 183new TextLoader.Column("PercentNonRetail", DataKind.Single, 3), 184new TextLoader.Column("CharlesRiver", DataKind.Single, 4), 185new TextLoader.Column("NitricOxides", DataKind.Single, 5), 186new TextLoader.Column("RoomsPerDwelling", DataKind.Single, 6), 187new TextLoader.Column("PercentPre40s", DataKind.Single, 7), 188new TextLoader.Column("EmploymentDistance", DataKind.Single, 8), 189new TextLoader.Column("HighwayDistance", DataKind.Single, 9), 190new TextLoader.Column("TaxRate", DataKind.Single, 10), 191new TextLoader.Column("TeacherRatio", DataKind.Single, 11), 233new TextLoader.Column("Label", DataKind.Boolean, 0), 234new TextLoader.Column("SentimentText", DataKind.String, 1) 416new TextLoader.Column("SepalLength", DataKind.Single, 0), 417new TextLoader.Column("SepalWidth", DataKind.Single, 1), 418new TextLoader.Column("PetalLength", DataKind.Single, 2), 419new TextLoader.Column("PetalWidth",DataKind.Single, 3), 420new TextLoader.Column("Label", DataKind.String, 4)
Microsoft.ML.Tests (705)
AnomalyDetectionTests.cs (2)
241new TextLoader.Column(DefaultColumnNames.Label, DataKind.Single, 0), 242new TextLoader.Column(DefaultColumnNames.Features, DataKind.Single, 1, 784)
CalibratedModelParametersTests.cs (1)
136return pipeline.Append(ML.Transforms.Conversion.ConvertType("Label", outputKind: DataKind.Boolean))
FeatureContributionTests.cs (1)
318return pipeline.Append(ML.Transforms.Conversion.ConvertType("Label", outputKind: DataKind.Boolean))
ImagesTests.cs (32)
38new TextLoader.Column("ImagePath", DataKind.String, 0), 39new TextLoader.Column("Name", DataKind.String, 1), 46new TextLoader.Column("ImagePath", DataKind.Single, 0), 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 (271)
263new TextLoader.Column("label", DataKind.Single, 11), 264new TextLoader.Column("features", DataKind.Single, 0, 10) 387new TextLoader.Column("label", DataKind.Boolean, 0), 388new TextLoader.Column("text", DataKind.String, 1) 460public void KeyToVectorTest([CombinatorialValues(DataKind.Single, DataKind.Int64, DataKind.Int32, DataKind.Int16, DataKind.UInt64, 461DataKind.UInt32, DataKind.UInt16, DataKind.Double, DataKind.String, DataKind.Boolean)] DataKind valueType, 465string filePath = (valueType == DataKind.Boolean) ? GetDataPath("type-conversion-boolean.txt") : GetDataPath("type-conversion.txt"); 770new TextLoader.Column("VectorDouble2", DataKind.Double, 1), 771new TextLoader.Column("VectorDouble1", DataKind.Double, 4, 8), 772new TextLoader.Column("Label", DataKind.Boolean, 0) 871new TextLoader.Column("label", DataKind.Boolean, 0), 872new TextLoader.Column("text", DataKind.String, 1) 887[InlineData(DataKind.SByte, DataKind.SByte)] 888[InlineData(DataKind.SByte, DataKind.Int16)] 889[InlineData(DataKind.SByte, DataKind.Int32)] 890[InlineData(DataKind.SByte, DataKind.Int64)] 891[InlineData(DataKind.SByte, DataKind.Single)] 892[InlineData(DataKind.SByte, DataKind.Double)] 893[InlineData(DataKind.Byte, DataKind.Byte)] 894[InlineData(DataKind.Byte, DataKind.UInt16)] 895[InlineData(DataKind.Byte, DataKind.UInt32)] 896[InlineData(DataKind.Byte, DataKind.UInt64)] 897[InlineData(DataKind.Byte, DataKind.Single)] 898[InlineData(DataKind.Byte, DataKind.Double)] 899[InlineData(DataKind.Int16, DataKind.Int16)] 900[InlineData(DataKind.Int16, DataKind.Int32)] 901[InlineData(DataKind.Int16, DataKind.Int64)] 902[InlineData(DataKind.Int16, DataKind.Single)] 903[InlineData(DataKind.Int16, DataKind.Double)] 904[InlineData(DataKind.UInt16, DataKind.UInt16)] 905[InlineData(DataKind.UInt16, DataKind.UInt32)] 906[InlineData(DataKind.UInt16, DataKind.UInt64)] 907[InlineData(DataKind.UInt16, DataKind.Single)] 908[InlineData(DataKind.UInt16, DataKind.Double)] 909[InlineData(DataKind.Int32, DataKind.Int16)] 910[InlineData(DataKind.Int32, DataKind.Int32)] 911[InlineData(DataKind.Int32, DataKind.Int64)] 912[InlineData(DataKind.Int32, DataKind.Single)] 913[InlineData(DataKind.Int32, DataKind.Double)] 914[InlineData(DataKind.Int64, DataKind.Int16)] 915[InlineData(DataKind.Int64, DataKind.Int32)] 916[InlineData(DataKind.Int64, DataKind.Int64)] 917[InlineData(DataKind.Int64, DataKind.Single)] 918[InlineData(DataKind.Int64, DataKind.Double)] 919[InlineData(DataKind.UInt64, DataKind.UInt16)] 920[InlineData(DataKind.UInt64, DataKind.UInt32)] 921[InlineData(DataKind.UInt64, DataKind.UInt64)] 922[InlineData(DataKind.UInt64, DataKind.Single)] 923[InlineData(DataKind.UInt64, DataKind.Double)] 924[InlineData(DataKind.Single, DataKind.Single)] 925[InlineData(DataKind.Single, DataKind.Double)] 926[InlineData(DataKind.Double, DataKind.Single)] 927[InlineData(DataKind.Double, DataKind.Double)] 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)] 938public void OnnxTypeConversionTest(DataKind fromKind, DataKind toKind) 968new TextLoader.Column("label", DataKind.Single, 11), 969new TextLoader.Column("features", DataKind.Single, 0, 10) 1023[CombinatorialValues(DataKind.Byte, DataKind.UInt16, DataKind.UInt32, DataKind.UInt64)] DataKind keyType) 1054[CombinatorialValues(DataKind.SByte, DataKind.Int16, DataKind.Int32, DataKind.Int64, DataKind.Byte, 1055DataKind.UInt16, DataKind.UInt32, DataKind.UInt64, DataKind.Single, DataKind.Double, DataKind.String, DataKind.Boolean)] DataKind type, 1062var column = (type == DataKind.SByte) ? 0 : 1063(type == DataKind.Byte) ? 2 : 1064(type == DataKind.Int16) ? 4 : 1065(type == DataKind.UInt16) ? 6 : 1066(type == DataKind.Int32) ? 8 : 1067(type == DataKind.UInt32) ? 10 : 1068(type == DataKind.Int64) ? 12 : 1069(type == DataKind.UInt64) ? 14 : 1070(type == DataKind.Single) ? 16 : 1071(type == DataKind.Double) ? 18 : 1072(type == DataKind.String) ? 20 : 22; 1093[CombinatorialValues(DataKind.SByte, DataKind.Int16, DataKind.Int32, DataKind.Int64, DataKind.Byte, 1094DataKind.UInt16, DataKind.UInt32, DataKind.UInt64, DataKind.Single, DataKind.Double, DataKind.String, DataKind.Boolean)] DataKind type, 1101var columnStart = (type == DataKind.SByte) ? 0 : 1102(type == DataKind.Byte) ? 2 : 1103(type == DataKind.Int16) ? 4 : 1104(type == DataKind.UInt16) ? 6 : 1105(type == DataKind.Int32) ? 8 : 1106(type == DataKind.UInt32) ? 10 : 1107(type == DataKind.Int64) ? 12 : 1108(type == DataKind.UInt64) ? 14 : 1109(type == DataKind.Single) ? 16 : 1110(type == DataKind.Double) ? 18 : 1111(type == DataKind.String) ? 20 : 22; 1113var columnEnd = (type == DataKind.SByte) ? 1 : 1114(type == DataKind.Byte) ? 3 : 1115(type == DataKind.Int16) ? 5 : 1116(type == DataKind.UInt16) ? 7 : 1117(type == DataKind.Int32) ? 9 : 1118(type == DataKind.UInt32) ? 11 : 1119(type == DataKind.Int64) ? 13 : 1120(type == DataKind.UInt64) ? 15 : 1121(type == DataKind.Single) ? 17 : 1122(type == DataKind.Double) ? 19 : 1123(type == DataKind.String) ? 21 : 23; 1168.Append(mlContext.Transforms.Conversion.ConvertType("MissingIndicator", outputKind: DataKind.Int32)); 1183[CombinatorialValues(DataKind.Single, DataKind.Int64, DataKind.Int32, DataKind.Int16, DataKind.UInt64, 1184DataKind.UInt32, DataKind.UInt16, DataKind.Double, DataKind.String, DataKind.Boolean)] DataKind valueType, 1189string filePath = (valueType == DataKind.Boolean) ? GetDataPath("type-conversion-boolean.txt") 1222public void ValueMappingOnnxConversionTest([CombinatorialValues(DataKind.Int64, DataKind.Int32, DataKind.UInt32, DataKind.UInt64, 1223DataKind.UInt16, DataKind.Int16, DataKind.Double, DataKind.String, DataKind.Boolean)] 1224DataKind keyType, [CombinatorialValues(true, false)] bool treatValuesAsKeyType) 1227string filePath = (keyType == DataKind.Boolean) ? GetDataPath("type-conversion-boolean.txt") 1245if (keyType == DataKind.Single) 1258else if (keyType == DataKind.Double) 1270else if (keyType == DataKind.Boolean) 1283else if (keyType == DataKind.String) 1295else if (keyType == DataKind.Int32) 1307else if (keyType == DataKind.Int16) 1319else if (keyType == DataKind.Int64) 1331else if (keyType == DataKind.UInt32) 1343else if (keyType == DataKind.UInt16) 1355else if (keyType == DataKind.UInt64) 1379[InlineData(DataKind.Single)] 1380[InlineData(DataKind.Int64)] 1381[InlineData(DataKind.Int32)] 1382[InlineData(DataKind.Int16)] 1383[InlineData(DataKind.UInt64)] 1384[InlineData(DataKind.UInt32)] 1385[InlineData(DataKind.UInt16)] 1386[InlineData(DataKind.Double)] 1387[InlineData(DataKind.String)] 1388[InlineData(DataKind.Boolean)] 1389public void KeyToValueMappingOnnxConversionTest(DataKind valueType) 1392string filePath = (valueType == DataKind.Boolean) ? GetDataPath("type-conversion-boolean.txt") : GetDataPath("type-conversion.txt"); 1585[InlineData(DataKind.Boolean)] 1586[InlineData(DataKind.SByte)] 1587[InlineData(DataKind.Byte)] 1588[InlineData(DataKind.Int16)] 1589[InlineData(DataKind.UInt16)] 1590[InlineData(DataKind.Int32)] 1591[InlineData(DataKind.UInt32)] 1592[InlineData(DataKind.Int64)] 1593[InlineData(DataKind.UInt64)] 1594[InlineData(DataKind.Single)] 1595[InlineData(DataKind.Double)] 1596[InlineData(DataKind.String)] 1597public void OptionalColumnOnnxTest(DataKind dataKind) 1605new TextLoader.Column("Thickness", DataKind.Single, 1), 1765new TextLoader.Column("Label", DataKind.String, 0), 1766new TextLoader.Column("SepalLength", DataKind.Single, 1), 1767new TextLoader.Column("SepalWidth", DataKind.Single, 2), 1768new TextLoader.Column("PetalLength", DataKind.Single, 3), 1769new TextLoader.Column("PetalWidth", DataKind.Single, 4) 1838[InlineData(DataKind.String)] 1839[InlineData(DataKind.Single)] 1840[InlineData(DataKind.Double)] 1841public void FeatureSelectionOnnxTest(DataKind dataKind) 1850new TextLoader.Column("Label", DataKind.Boolean, 0) 1869if (dataKind == DataKind.String && i > 0) 1887new TextLoader.Column("Label", DataKind.Boolean, 0), 1888new TextLoader.Column("Thickness", DataKind.Double, 1), 1889new TextLoader.Column("Size", DataKind.Single, 2), 1890new TextLoader.Column("Shape", DataKind.Int32, 3), 1891new TextLoader.Column("Adhesion", DataKind.Int32, 4), 1892new TextLoader.Column("EpithelialSize", DataKind.Int32, 5), 1893new TextLoader.Column("BlandChromatin", DataKind.Int32, 7), 1894new TextLoader.Column("NormalNucleoli", DataKind.Int32, 8), 1895new TextLoader.Column("Mitoses", DataKind.Int32, 9),
PermutationFeatureImportanceTests.cs (4)
490new[] { new TextLoader.Column("Label", DataKind.Boolean, 0), 491new TextLoader.Column("Features", DataKind.Single, 1, 9) }); 861return pipeline.Append(ML.Transforms.Conversion.ConvertType("Label", outputKind: DataKind.Boolean)) 942return pipeline.Append(ML.Transforms.Conversion.ConvertType("Label", outputKind: DataKind.Boolean))
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (56)
336new TextLoader.Column("Label", DataKind.Single, 0), 337new TextLoader.Column("CrimesPerCapita", DataKind.Single, 1), 338new TextLoader.Column("PercentResidental", DataKind.Single, 2), 339new TextLoader.Column("PercentNonRetail", DataKind.Single, 3), 340new TextLoader.Column("CharlesRiver", DataKind.Single, 4), 341new TextLoader.Column("NitricOxides", DataKind.Single, 5), 342new TextLoader.Column("RoomsPerDwelling", DataKind.Single, 6), 343new TextLoader.Column("PercentPre40s", DataKind.Single, 7), 344new TextLoader.Column("EmploymentDistance", DataKind.Single, 8), 345new TextLoader.Column("HighwayDistance", DataKind.Single, 9), 346new TextLoader.Column("TaxRate", DataKind.Single, 10), 347new TextLoader.Column("TeacherRatio", DataKind.Single, 11) 376new TextLoader.Column("Label", DataKind.Single, 0), 377new TextLoader.Column("CrimesPerCapita", DataKind.Single, 1), 378new TextLoader.Column("PercentResidental", DataKind.Single, 2), 379new TextLoader.Column("PercentNonRetail", DataKind.Single, 3), 380new TextLoader.Column("CharlesRiver", DataKind.Single, 4), 381new TextLoader.Column("NitricOxides", DataKind.Single, 5), 382new TextLoader.Column("RoomsPerDwelling", DataKind.Single, 6), 383new TextLoader.Column("PercentPre40s", DataKind.Single, 7), 384new TextLoader.Column("EmploymentDistance", DataKind.Single, 8), 385new TextLoader.Column("HighwayDistance", DataKind.Single, 9), 386new TextLoader.Column("TaxRate", DataKind.Single, 10), 387new TextLoader.Column("TeacherRatio", DataKind.Single, 11) 411new TextLoader.Column("Label", DataKind.Single, 0), 412new TextLoader.Column("CrimesPerCapita", DataKind.Single, 1), 413new TextLoader.Column("PercentResidental", DataKind.Single, 2), 414new TextLoader.Column("PercentNonRetail", DataKind.Single, 3), 415new TextLoader.Column("CharlesRiver", DataKind.Single, 4), 416new TextLoader.Column("NitricOxides", DataKind.Single, 5), 417new TextLoader.Column("RoomsPerDwelling", DataKind.Single, 6), 418new TextLoader.Column("PercentPre40s", DataKind.Single, 7), 419new TextLoader.Column("EmploymentDistance", DataKind.Single, 8), 420new TextLoader.Column("HighwayDistance", DataKind.Single, 9), 421new TextLoader.Column("TaxRate", DataKind.Single, 10), 422new TextLoader.Column("TeacherRatio", DataKind.Single, 11) 447new TextLoader.Column("MedianHomeValue", DataKind.Single, 0), 448new TextLoader.Column("CrimesPerCapita", DataKind.Single, 1), 449new TextLoader.Column("PercentResidental", DataKind.Single, 2), 450new TextLoader.Column("PercentNonRetail", DataKind.Single, 3), 451new TextLoader.Column("CharlesRiver", DataKind.Single, 4), 452new TextLoader.Column("NitricOxides", DataKind.Single, 5), 453new TextLoader.Column("RoomsPerDwelling", DataKind.Single, 6), 454new TextLoader.Column("PercentPre40s", DataKind.Single, 7), 455new TextLoader.Column("EmploymentDistance", DataKind.Single, 8), 456new TextLoader.Column("HighwayDistance", DataKind.Single, 9), 457new TextLoader.Column("TaxRate", DataKind.Single, 10), 458new TextLoader.Column("TeacherRatio", DataKind.Single, 11) 506new TextLoader.Column("IsToxic", DataKind.Boolean, 0), 507new TextLoader.Column("Message", DataKind.String, 1), 575new TextLoader.Column("Label", DataKind.Boolean, 0), 577new TextLoader.Column("CategoricalFeatures", DataKind.String, 1, 8), 579new TextLoader.Column("NumericalFeatures", DataKind.Single, 9, 14), 581new TextLoader.Column("Workclass", DataKind.String, 1), 708new TextLoader.Column("Income", DataKind.Single, 10), 709new TextLoader.Column("Features", DataKind.Single, 12, 14)
Scenarios\Api\Estimators\PredictAndMetadata.cs (2)
102new TextLoader.Column("Label", DataKind.Single, 0), //notice the label being loaded as a float 103new TextLoader.Column("Features", DataKind.Single, new[]{ new TextLoader.Range(1,4) })
Scenarios\Api\TestApi.cs (9)
180xf = mlContext.Transforms.Conversion.ConvertType("Label", outputKind: DataKind.Boolean).Fit(xf).Transform(xf); 302new TextLoader.Column("Label", DataKind.Boolean, 0), 303new TextLoader.Column("Workclass", DataKind.String, 1), 304new TextLoader.Column("Education", DataKind.String,2), 305new TextLoader.Column("Age", DataKind.Single,9) 350new TextLoader.Column("Label", DataKind.Boolean, 0), 351new TextLoader.Column("Workclass", DataKind.String, 1), 352new TextLoader.Column("Education", DataKind.String,2), 353new TextLoader.Column("Age", DataKind.Single,9)
Scenarios\GetColumnTests.cs (11)
30new TextLoader.Column("floatScalar", DataKind.Single, 1), 31new TextLoader.Column("floatVector", DataKind.Single, 2, 6), 32new TextLoader.Column("stringScalar", DataKind.String, 4), 33new TextLoader.Column("stringVector", DataKind.String, 5, 7) 53new TextLoader.Column("floatScalar", DataKind.String, 1), 54new TextLoader.Column("anotherFloatVector", DataKind.Single, 2, 6), 55new TextLoader.Column("stringVector", DataKind.String, 5, 7) 72new TextLoader.Column("floatScalar", DataKind.Single, 1), 73new TextLoader.Column("floatVector", DataKind.Single, 2, 6), 74new TextLoader.Column("stringScalar", DataKind.String, 4), 75new TextLoader.Column("stringVector", DataKind.String, 5, 7)
Scenarios\IrisPlantClassificationTests.cs (5)
24new TextLoader.Column("Label", DataKind.Single, 0), 25new TextLoader.Column("SepalLength", DataKind.Single, 1), 26new TextLoader.Column("SepalWidth", DataKind.Single, 2), 27new TextLoader.Column("PetalLength", DataKind.Single, 3), 28new TextLoader.Column("PetalWidth", DataKind.Single, 4)
Scenarios\IrisPlantClassificationWithStringLabelTests.cs (5)
20new TextLoader.Column("SepalLength", DataKind.Single, 0), 21new TextLoader.Column("SepalWidth", DataKind.Single, 1), 22new TextLoader.Column("PetalLength", DataKind.Single, 2), 23new TextLoader.Column("PetalWidth", DataKind.Single, 3), 24new TextLoader.Column("IrisPlantType", DataKind.String, 4),
Scenarios\OvaTest.cs (8)
26new TextLoader.Column("Label", DataKind.Single, 0), 27new TextLoader.Column("Features", DataKind.Single, new [] { new TextLoader.Range(1, 4) }), 59new TextLoader.Column("Label", DataKind.Single, 0), 60new TextLoader.Column("Features", DataKind.Single, new [] { new TextLoader.Range(1, 4) }), 95new TextLoader.Column("Label", DataKind.Single, 0), 96new TextLoader.Column("Features", DataKind.Single, new [] { new TextLoader.Range(1, 4) }), 130new TextLoader.Column("Label", DataKind.Single, 0), 131new TextLoader.Column("Features", DataKind.Single, new [] { new TextLoader.Range(1, 4) }),
ScenariosWithDirectInstantiation\IrisPlantClassificationTests.cs (5)
22new TextLoader.Column("Label", DataKind.Single, 0), 23new TextLoader.Column("SepalLength", DataKind.Single, 1), 24new TextLoader.Column("SepalWidth", DataKind.Single, 2), 25new TextLoader.Column("PetalLength", DataKind.Single, 3), 26new TextLoader.Column("PetalWidth", DataKind.Single, 4)
SvmLightTests.cs (1)
506var loader = ML.Data.CreateTextLoader(new[] { new TextLoader.Column("Column", DataKind.Single, 0) });
TermEstimatorTests.cs (7)
59new TextLoader.Column("float1", DataKind.Single, 9), 60new TextLoader.Column("float4", DataKind.Single, new[]{new TextLoader.Range(9), new TextLoader.Range(10), new TextLoader.Range(11), new TextLoader.Range(12) }), 61new TextLoader.Column("double1", DataKind.Double, 9), 62new TextLoader.Column("double4", DataKind.Double, new[]{new TextLoader.Range(9), new TextLoader.Range(10), new TextLoader.Range(11), new TextLoader.Range(12) }), 63new TextLoader.Column("int1", DataKind.Int32, 9), 64new TextLoader.Column("text1", DataKind.String, 1), 65new TextLoader.Column("text2", DataKind.String, new[]{new TextLoader.Range(1), new TextLoader.Range(2)}),
TextLoaderTests.cs (33)
898new TextLoader.Column("Label", DataKind.UInt32, 0), 899new TextLoader.Column("Features", typeof(T) == typeof(double) ? DataKind.Double : DataKind.Single, new [] { new TextLoader.Range(1, 4) }), 934new TextLoader.Column("Label", DataKind.UInt32, 0), 935new TextLoader.Column("Features", typeof(T) == typeof(double) ? DataKind.Double : DataKind.Single, new [] { new TextLoader.Range(1, 4) }) 993new TextLoader.Column("Label", DataKind.UInt32, 0), 994new TextLoader.Column("Features", DataKind.Single, new [] { new TextLoader.Range(1, 4) }) 1045new TextLoader.Column("Label", DataKind.UInt32, 0), 1046new TextLoader.Column("Features", DataKind.Single, new[] { new TextLoader.Range(1, 4) }) 1055new TextLoader.Column("Label", DataKind.UInt32, 0), 1056new TextLoader.Column("Features", DataKind.Single, new[] { new TextLoader.Range(1, 4) }) 1286new TextLoader.Column("id", DataKind.Int32, 0), 1287new TextLoader.Column("description", DataKind.String, 1), 1288new TextLoader.Column("animal", DataKind.String, 2), 1397new TextLoader.Column("id", DataKind.Int32, 0), 1398new TextLoader.Column("description", DataKind.String, 1), 1399new TextLoader.Column("animal", DataKind.String, 2), 1436new TextLoader.Column("id", DataKind.Int32, 0), 1437new TextLoader.Column("description", DataKind.String, 1), 1438new TextLoader.Column("date", DataKind.DateTime, 4), 1439new TextLoader.Column("sing1", DataKind.Single, 2), 1440new TextLoader.Column("sing2", DataKind.Single, 3), 1441new TextLoader.Column("singFt1", DataKind.Single, new [] { new TextLoader.Range(2,3) } ), 1442new TextLoader.Column("sing3", DataKind.Single, 5), 1443new TextLoader.Column("sing4", DataKind.Single, 6), 1444new TextLoader.Column("singFt2", DataKind.Single, new [] { new TextLoader.Range(2,3), new TextLoader.Range(5,6) } ), 1445new TextLoader.Column("doub1", DataKind.Double, 2), 1446new TextLoader.Column("doub2", DataKind.Double, 3), 1447new TextLoader.Column("doubFt1", DataKind.Double, new [] { new TextLoader.Range(2,3) } ), 1448new TextLoader.Column("doub3", DataKind.Double, 5), 1449new TextLoader.Column("doub4", DataKind.Double, 6), 1450new TextLoader.Column("doubFt2", DataKind.Double, new [] { new TextLoader.Range(2,3), new TextLoader.Range(5,6) } )
TrainerEstimators\FAFMEstimator.cs (5)
97new TextLoader.Column("Feature1", DataKind.Single, new [] { new TextLoader.Range(1, 2) }), 98new TextLoader.Column("Feature2", DataKind.Single, new [] { new TextLoader.Range(3, 4) }), 99new TextLoader.Column("Feature3", DataKind.Single, new [] { new TextLoader.Range(5, 6) }), 100new TextLoader.Column("Feature4", DataKind.Single, new [] { new TextLoader.Range(7, 9) }), 101new TextLoader.Column("Label", DataKind.Boolean, 0)
TrainerEstimators\MatrixFactorizationTests.cs (3)
164new TextLoader.Column(labelColumnName, DataKind.Single, new [] { new TextLoader.Range(0) }), 165new TextLoader.Column(matrixColumnIndexColumnName, DataKind.UInt32, new [] { new TextLoader.Range(1) }, new KeyCount(20)), 166new TextLoader.Column(matrixRowIndexColumnName, DataKind.UInt32, new [] { new TextLoader.Range(2) }, new KeyCount(40)),
TrainerEstimators\OneDalEstimators.cs (9)
41new TextLoader.Column("f0", DataKind.Single, 0), 42new TextLoader.Column("f1", DataKind.Single, 1), 43new TextLoader.Column("f2", DataKind.Single, 2), 44new TextLoader.Column("f3", DataKind.Single, 3), 45new TextLoader.Column("f4", DataKind.Single, 4), 46new TextLoader.Column("f5", DataKind.Single, 5), 47new TextLoader.Column("f6", DataKind.Single, 6), 48new TextLoader.Column("f7", DataKind.Single, 7), 49new TextLoader.Column("target", DataKind.Boolean,8)},
TrainerEstimators\OnlineLinearTests.cs (4)
21new TextLoader.Column("Label", DataKind.Single, 0), 22new TextLoader.Column("Features", DataKind.Single, 1, 10) 35new TextLoader.Column("Label", DataKind.Boolean, 0), 36new TextLoader.Column("Features", DataKind.Single, 1, 10)
TrainerEstimators\PriorRandomTests.cs (4)
22new TextLoader.Column("Label", DataKind.Boolean, 0), 23new TextLoader.Column("F1", DataKind.String, 1), 24new TextLoader.Column("F2", DataKind.Int32, 2), 25new TextLoader.Column("Rest", DataKind.Single, new [] { new TextLoader.Range(3, 9) })
TrainerEstimators\SdcaTests.cs (3)
22new TextLoader.Column("Label", DataKind.Single, 0), 23new TextLoader.Column("Features", DataKind.Single, 1, 10) 28var binaryData = ML.Transforms.Conversion.ConvertType("Label", outputKind: DataKind.Boolean)
TrainerEstimators\TrainerEstimators.cs (15)
36new TextLoader.Column(featureColumn, DataKind.Single, new [] { new TextLoader.Range(1, 784) }) 65new TextLoader.Column(featureColumn, DataKind.Single, new [] { new TextLoader.Range(1, 784) }), 66new TextLoader.Column(weights, DataKind.Single, 0), 199new TextLoader.Column("Label", DataKind.Boolean, 0), 200new TextLoader.Column("SentimentText", DataKind.String, 1), 201new TextLoader.Column("LoggedIn", DataKind.Boolean, 2) 233new TextLoader.Column("Label", DataKind.Single, 0), 234new TextLoader.Column("Workclass", DataKind.String, 1), 235new TextLoader.Column("NumericFeatures", DataKind.Single, new [] { new TextLoader.Range(9, 14) }) 256new TextLoader.Column("Label", DataKind.Single, 11), 257new TextLoader.Column("Features", DataKind.Single, new [] { new TextLoader.Range(0, 10) } ) 270new TextLoader.Column("Features", DataKind.Single, new [] { new TextLoader.Range(0, 3) }), 271new TextLoader.Column("Label", DataKind.String, 4) 283new TextLoader.Column("Features", DataKind.Single, new [] { new TextLoader.Range(0, 3) }), 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 (4)
109var pipe = mlContext.Transforms.Conversion.ConvertType("A", outputKind: DataKind.Single) 110.Append(mlContext.Transforms.Conversion.ConvertType("B", outputKind: DataKind.Single)) 158new TextLoader.Column("ScalarString", DataKind.String, 1), 159new TextLoader.Column("VectorString", DataKind.String, 1, 4)
Transformers\ConcatTests.cs (7)
49new TextLoader.Column("float1", DataKind.Single, 9), 50new TextLoader.Column("float4", DataKind.Single, new[]{new TextLoader.Range(9), new TextLoader.Range(10), new TextLoader.Range(11), new TextLoader.Range(12) }), 51new TextLoader.Column("float6", DataKind.Single, new[]{new TextLoader.Range(9), new TextLoader.Range(10), new TextLoader.Range(11), new TextLoader.Range(12, 14) }), 52new TextLoader.Column("vfloat", DataKind.Single, new[]{new TextLoader.Range(14, null) { AutoEnd = false, VariableEnd = true } }) 107new TextLoader.Column("float1", DataKind.Single, 9), 108new TextLoader.Column("float4", DataKind.Single, new[]{new TextLoader.Range(9), new TextLoader.Range(10), new TextLoader.Range(11), new TextLoader.Range(12) }), 109new TextLoader.Column("vfloat", DataKind.Single, new[]{new TextLoader.Range(9), new TextLoader.Range(10), new TextLoader.Range(11), new TextLoader.Range(12, null) { AutoEnd = false, VariableEnd = true } })
Transformers\ConvertTests.cs (24)
130var pipe = ML.Transforms.Conversion.ConvertType(columns: new[] {new TypeConvertingEstimator.ColumnOptions("ConvA", DataKind.Single, "A"), 131new TypeConvertingEstimator.ColumnOptions("ConvB", DataKind.Single, "B")}); 170new TypeConvertingEstimator.ColumnOptions("ConvA", DataKind.Single, "AA"), 171new TypeConvertingEstimator.ColumnOptions("ConvB", DataKind.Single, "AB"), 172new TypeConvertingEstimator.ColumnOptions("ConvC", DataKind.Single, "AC"), 173new TypeConvertingEstimator.ColumnOptions("ConvD", DataKind.Single, "AD"), 174new TypeConvertingEstimator.ColumnOptions("ConvE", DataKind.Single, "AE"), 175new TypeConvertingEstimator.ColumnOptions("ConvF", DataKind.Single, "AF"), 176new TypeConvertingEstimator.ColumnOptions("ConvG", DataKind.Single, "AG"), 177new TypeConvertingEstimator.ColumnOptions("ConvH", DataKind.Single, "AH"), 178new TypeConvertingEstimator.ColumnOptions("ConvK", DataKind.Single, "AK"), 179new TypeConvertingEstimator.ColumnOptions("ConvL", DataKind.Single, "AL"), 180new TypeConvertingEstimator.ColumnOptions("ConvM", DataKind.Single, "AM"), 181new TypeConvertingEstimator.ColumnOptions("ConvN", DataKind.Single, "AN"), 182new TypeConvertingEstimator.ColumnOptions("ConvBI", DataKind.Int32, "AB") // verify Boolean -> Int32 conversion 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"), 342new TypeConvertingEstimator.ColumnOptions("ConvA", DataKind.Double, "CatA"), 343new TypeConvertingEstimator.ColumnOptions("ConvB", DataKind.UInt16, "CatB") 401DataKind.UInt64, "key", new KeyCount(4)) }).Fit(dataView);
Transformers\CountTargetEncodingTests.cs (14)
27new TextLoader.Column("ScalarString", DataKind.String, 1), 28new TextLoader.Column("VectorString", DataKind.String, 1, 9), 29new TextLoader.Column("Label", DataKind.Single, 0) 42var data = ML.Data.LoadFromTextFile(dataPath, new[] { new TextLoader.Column("Label", DataKind.Single, 0), 43new TextLoader.Column("Text", DataKind.String, 1,9)}); 58new TextLoader.Column("ScalarString", DataKind.String, 1), 59new TextLoader.Column("VectorString", DataKind.String, 1, 9), 60new TextLoader.Column("Label", DataKind.Single, 0) 78new TextLoader.Column("ScalarString", DataKind.String, 1), 79new TextLoader.Column("VectorString", DataKind.String, 2, 9), 80new TextLoader.Column("Label", DataKind.Boolean, 0) 163new TextLoader.Column("ScalarString", DataKind.String, 1), 164new TextLoader.Column("VectorString", DataKind.String, 1, 9), 165new TextLoader.Column("Label", DataKind.Single, 0)
Transformers\CustomMappingTests.cs (10)
57new TextLoader.Column("Float1", DataKind.Single, 9), 58new TextLoader.Column("Float4", DataKind.Single, new[]{new TextLoader.Range(9), new TextLoader.Range(10), new TextLoader.Range(11), new TextLoader.Range(12) }) 93new TextLoader.Column("Float1", DataKind.Single, 0), 94new TextLoader.Column("Float4", DataKind.Single, new[]{new TextLoader.Range(0), new TextLoader.Range(2), new TextLoader.Range(4), new TextLoader.Range(10) }), 95new TextLoader.Column("Text1", DataKind.String, 0) 171new TextLoader.Column("Features", DataKind.Single, 1, 9), 172new TextLoader.Column("Label", DataKind.String, 0), 173new TextLoader.Column("Value", DataKind.Single, 2), 196new TextLoader.Column("Float4", DataKind.Single, 1, 4), 197new TextLoader.Column("Float1", DataKind.Single, 2),
Transformers\ExpressionTransformerTests.cs (8)
27new TextLoader.Column("Float", DataKind.Single, 9), 28new TextLoader.Column("FloatVector", DataKind.Single, 9, 14), 29new TextLoader.Column("Double", DataKind.Double, 9), 30new TextLoader.Column("DoubleVector", DataKind.Double, 9, 14), 31new TextLoader.Column("Int", DataKind.Int32, 9), 32new TextLoader.Column("IntVector", DataKind.Int32, 9, 14), 33new TextLoader.Column("Text", DataKind.String, 1), 34new TextLoader.Column("TextVector", DataKind.String, 2, 8),
Transformers\FeatureSelectionTests.cs (22)
32new TextLoader.Column("label", DataKind.Boolean, 0), 33new TextLoader.Column("text", DataKind.String, 1) }, 37new TextLoader.Column("label", DataKind.Boolean, 0), 38new TextLoader.Column("text", DataKind.Single, 1) }, 66new TextLoader.Column("ScalarFloat", DataKind.Single, 1), 67new TextLoader.Column("ScalarDouble", DataKind.Double, 1), 68new TextLoader.Column("VectorFloat", DataKind.Single, 1, 4), 69new TextLoader.Column("VectorDouble", DataKind.Double, 4, 8), 108new TextLoader.Column("ScalarFloat", DataKind.Single, 6), 109new TextLoader.Column("VectorFloat", DataKind.Single, 1, 4), 110new TextLoader.Column("VectorDouble", DataKind.Double, 4, 8), 149new TextLoader.Column("Label", DataKind.UInt32, new[]{ new TextLoader.Range(0) }, new KeyCount(3)), 150new TextLoader.Column("VectorFloat", DataKind.Single, 1, 4) 171new TextLoader.Column("Label", DataKind.UInt32, new[] { new TextLoader.Range(0) }, new KeyCount(3)), 172new TextLoader.Column("ScalarFloat", DataKind.Single, 6), 173new TextLoader.Column("VectorFloat", DataKind.Single, 1, 4), 174new TextLoader.Column("VectorDouble", DataKind.Double, 4, 8), 209new TextLoader.Column("Label", DataKind.UInt32, new[]{ new TextLoader.Range(0) }, new KeyCount(3)), 210new TextLoader.Column("VectorFloat", DataKind.Single, 1, 4) 231new TextLoader.Column("BadLabel", DataKind.UInt32, 0), 232new TextLoader.Column("Label", DataKind.Single, 0), 233new TextLoader.Column("Features", DataKind.String, 1, 9),
Transformers\HashTests.cs (1)
359new TextLoader.Column("Features", DataKind.Single, 1, 9)
Transformers\KeyToBinaryVectorEstimatorTest.cs (2)
64new TextLoader.Column("ScalarString", DataKind.String, 0), 65new TextLoader.Column("VectorString", DataKind.String, 1, 4),
Transformers\KeyToValueTests.cs (5)
31new TextLoader.Column("ScalarString", DataKind.String, 1), 32new TextLoader.Column("VectorString", DataKind.String, new[] {new TextLoader.Range(1, 4) }), 33new TextLoader.Column("BareKey", DataKind.UInt32, new[] { new TextLoader.Range(0) }, new KeyCount(6)) 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\NAIndicatorTests.cs (4)
96new TextLoader.Column("ScalarFloat", DataKind.Single, 1), 97new TextLoader.Column("ScalarDouble", DataKind.Double, 1), 98new TextLoader.Column("VectorFloat", DataKind.Single, 1, 4), 99new TextLoader.Column("VectorDoulbe", DataKind.Double, 1, 4)
Transformers\NAReplaceTests.cs (4)
126new TextLoader.Column("ScalarFloat", DataKind.Single, 1), 127new TextLoader.Column("ScalarDouble", DataKind.Double, 1), 128new TextLoader.Column("VectorFloat", DataKind.Single, 1, 4), 129new TextLoader.Column("VectorDouble", DataKind.Double, 1, 4)
Transformers\NormalizerTests.cs (52)
40new TextLoader.Column("float1", DataKind.Single, 1), 41new TextLoader.Column("float4", DataKind.Single, new[]{new TextLoader.Range(1, 4) }), 42new TextLoader.Column("double1", DataKind.Double, 1), 43new TextLoader.Column("double4", DataKind.Double, new[]{new TextLoader.Range(1, 4) }), 44new TextLoader.Column("int1", DataKind.Int32, 0), 45new TextLoader.Column("float0", DataKind.Single, new[]{ new TextLoader.Range { Min = 1, VariableEnd = true } }), 109new TextLoader.Column("float1", DataKind.Single, 1), 110new TextLoader.Column("float4", DataKind.Single, new[]{new TextLoader.Range(1, 4) }), 111new TextLoader.Column("double1", DataKind.Double, 1), 112new TextLoader.Column("double4", DataKind.Double, new[]{new TextLoader.Range(1, 4) }), 113new TextLoader.Column("int1", DataKind.Int32, 0), 114new TextLoader.Column("float0", DataKind.Single, new[]{ new TextLoader.Range { Min = 1, VariableEnd = true } }) 227new TextLoader.Column("Label", DataKind.Single, 0), 228new TextLoader.Column("float1", DataKind.Single, 1), 229new TextLoader.Column("float4", DataKind.Single, new[]{new TextLoader.Range(1, 4) }), 230new TextLoader.Column("double1", DataKind.Double, 1), 231new TextLoader.Column("double4", DataKind.Double, new[]{new TextLoader.Range(1, 4) }), 232new TextLoader.Column("int1", DataKind.Int32, 0), 233new TextLoader.Column("float0", DataKind.Single, new[]{ new TextLoader.Range { Min = 1, VariableEnd = true } }) 474new TextLoader.Column("Label", DataKind.Single, 0), 475new TextLoader.Column("float4", DataKind.Single, new[]{new TextLoader.Range(1, 4) }), 578new TextLoader.Column("Label", DataKind.Single, 0), 579new TextLoader.Column("float4", DataKind.Single, new[]{new TextLoader.Range(1, 4) }), 636new TextLoader.Column("Label", DataKind.Single, 0), 637new TextLoader.Column("input", DataKind.Single, new[]{new TextLoader.Range(1, 4) }), 657new TextLoader.Column("label", DataKind.Single, 11), 658new TextLoader.Column("features", DataKind.Single, 0, 10) 662new TextLoader.Column("label", DataKind.Single, 11), 663new TextLoader.Column("features", DataKind.String, 0, 10) 691new TextLoader.Column("label", DataKind.Single, 11), 692new TextLoader.Column("features", DataKind.Single, 0, 10) 696new TextLoader.Column("label", DataKind.Single, 11), 697new TextLoader.Column("features", DataKind.String, 0, 10) 733new TextLoader.Column("label", DataKind.Single, 11), 734new TextLoader.Column("features", DataKind.Single, 0, 10) 755new TextLoader.Column("label", DataKind.Single, 11), 756new TextLoader.Column("features", DataKind.Single, 0, 10) 760new TextLoader.Column("label", DataKind.Single, 11), 761new TextLoader.Column("features", DataKind.String, 0, 10) 794new TextLoader.Column("label", DataKind.Single, 11), 795new TextLoader.Column("features", DataKind.Single, 0, 10) 815new TextLoader.Column("label", DataKind.Single, 11), 816new TextLoader.Column("features", DataKind.Single, 0, 10) 820new TextLoader.Column("label", DataKind.Single, 11), 821new TextLoader.Column("features", DataKind.String, 0, 10) 854new TextLoader.Column("label", DataKind.Single, 11), 855new TextLoader.Column("features", DataKind.Single, 0, 10) 994new TextLoader.Column("float1", DataKind.Single, 1), 995new TextLoader.Column("float4", DataKind.Single, new[]{new TextLoader.Range(1, 4) }), 996new TextLoader.Column("double1", DataKind.Double, 1), 997new TextLoader.Column("double4", DataKind.Double, new[]{new TextLoader.Range(1, 4) }), 998new TextLoader.Column("int1", DataKind.Int32, 0),
Transformers\PcaTests.cs (8)
30new TextLoader.Column("label", DataKind.Single, 11), 31new TextLoader.Column("weight", DataKind.Single, 0), 32new TextLoader.Column("features", DataKind.Single, 1, 10) 36new TextLoader.Column("label", DataKind.Single, 11), 37new TextLoader.Column("weight", DataKind.Single, 0), 38new TextLoader.Column("features", DataKind.String, 1, 10) 54new TextLoader.Column("label", DataKind.Single, 11), 55new TextLoader.Column("features", DataKind.Single, 0, 10)
Transformers\RffTests.cs (2)
68new TextLoader.Column("VectorFloat", DataKind.Single, 1, 8), 69new TextLoader.Column("Label", DataKind.Single, 0)
Transformers\TextFeaturizerTests.cs (31)
427new TextLoader.Column("label", DataKind.Boolean, 0), 428new TextLoader.Column("text", DataKind.String, 1) }, 432new TextLoader.Column("label", DataKind.Boolean, 0), 433new TextLoader.Column("text", DataKind.Single, 1) }, 460new TextLoader.Column("label", DataKind.Boolean, 0), 461new TextLoader.Column("text", DataKind.String, 1) }, 465new TextLoader.Column("label", DataKind.Boolean, 0), 466new TextLoader.Column("text", DataKind.Single, 1) }, 490new TextLoader.Column("label", DataKind.Boolean, 0), 491new TextLoader.Column("text", DataKind.String, 1) }, 527new TextLoader.Column("label", DataKind.Boolean, 0), 528new TextLoader.Column("text", DataKind.String, 1) }, 532new TextLoader.Column("label", DataKind.Boolean, 0), 533new TextLoader.Column("text", DataKind.Single, 1) }, 562new TextLoader.Column("Text", DataKind.String, 1) 590new TextLoader.Column("label", DataKind.Boolean, 0), 591new TextLoader.Column("text", DataKind.String, 1) }, 595new TextLoader.Column("label", DataKind.Boolean, 0), 596new TextLoader.Column("text", DataKind.Single, 1) }, 620new TextLoader.Column("label", DataKind.Boolean, 0), 621new TextLoader.Column("text", DataKind.String, 1) }, 625new TextLoader.Column("label", DataKind.Boolean, 0), 626new TextLoader.Column("text", DataKind.Single, 1) }, 657new TextLoader.Column("Sentiment", DataKind.Boolean, 0), 658new TextLoader.Column("SentimentText", DataKind.String, 1) }, 674new TextLoader.Column("label", DataKind.Boolean, 0), 675new TextLoader.Column("text", DataKind.String, 1) }, 679new TextLoader.Column("label", DataKind.Boolean, 0), 680new TextLoader.Column("text", DataKind.Single, 1) }, 778new TextLoader.Column("Label", DataKind.Boolean, 0), 779new TextLoader.Column("Features", DataKind.String, 1, 9)
Transformers\TextNormalizer.cs (2)
52new TextLoader.Column("label", DataKind.Boolean, 0), 53new TextLoader.Column("text", DataKind.String, 1)
Transformers\WordEmbeddingsTests.cs (4)
36new TextLoader.Column("Label", DataKind.Boolean, 0), 37new TextLoader.Column("SentimentText", DataKind.String, 1) 71new TextLoader.Column("Label", DataKind.Boolean, 0), 72new TextLoader.Column("SentimentText", DataKind.String, 1)
Microsoft.ML.TimeSeries.Tests (3)
TimeSeriesDirectApi.cs (3)
304.Append(ml.Transforms.Conversion.ConvertType("Value", "Value", DataKind.Single)) 450.Append(ml.Transforms.Conversion.ConvertType("Value", "Value", DataKind.Single)) 540new TextLoader.Column("Value", DataKind.Single, 0),
Microsoft.ML.TorchSharp.Tests (14)
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 (4)
77new TextLoader.Column("Context", DataKind.String,0), 78new TextLoader.Column("Question", DataKind.String,1), 79new TextLoader.Column("TrainingAnswer", DataKind.String,2), 80new TextLoader.Column("AnswerIndex", DataKind.Int32,3)
TextClassificationTests.cs (3)
421new TextLoader.Column("search_term", DataKind.String,3), 422new TextLoader.Column("relevance", DataKind.Single,4), 423new TextLoader.Column("product_description", DataKind.String,5)
Microsoft.ML.Transforms (5)
Text\NgramTransform.cs (3)
790var dataKind = _srcTypes[iinfo] == NumberDataViewType.UInt32 ? DataKind.Int32 : DataKind.Int64;
Text\StopWordsRemovingTransformer.cs (1)
816new TextLoader.Column(stopwordsCol, DataKind.String, 0)
Text\TokenizingByCharacters.cs (1)
267var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.UInt16).ToType();