399 references to Single
Microsoft.ML.AutoML (4)
AutoMLExperiment\ITrialResultManager.cs (4)
141
new TextLoader.Column("loss", DataKind.
Single
, 1),
142
new TextLoader.Column("durationInMilliseconds", DataKind.
Single
, 2),
143
new TextLoader.Column("peakCpu", DataKind.
Single
, 3),
144
new TextLoader.Column("peakMemoryInMegaByte", DataKind.
Single
, 4),
Microsoft.ML.AutoML.Tests (10)
AutoFitTests.cs (4)
699
new TextLoader.Column(labelColumnName, DataKind.
Single
, new [] { new TextLoader.Range(0) }),
714
new TextLoader.Column(labelColumnName, DataKind.
Single
, 0),
716
new TextLoader.Column(featureColumnVectorNameA, DataKind.
Single
, 2, 9),
717
new TextLoader.Column(featureColumnVectorNameB, DataKind.
Single
, 10, 137)
ColumnInferenceTests.cs (6)
83
Assert.Equal(DataKind.
Single
, emptyColumn.DataKind);
95
Assert.Equal(DataKind.
Single
, boolColumn.DataKind);
125
Assert.Equal(DataKind.
Single
, userColumn.DataKind);
126
Assert.Equal(DataKind.
Single
, itemColumn.DataKind);
127
Assert.Equal(DataKind.
Single
, ignoreColumn.DataKind);
193
Assert.Equal(DataKind.
Single
, labelCol.DataKind);
Microsoft.ML.CodeGenerator (2)
Utils.cs (2)
158
case Microsoft.ML.Data.DataKind.
Single
:
349
case DataKind.
Single
:
Microsoft.ML.CodeGenerator.Tests (11)
ApprovalTests\ConsoleCodeGeneratorTests.cs (8)
612
new TextLoader.Column("col1", DataKind.
Single
, 1),
613
new TextLoader.Column("col2", DataKind.
Single
, 0),
649
new TextLoader.Column("col1", DataKind.
Single
, 1),
650
new TextLoader.Column("col2", DataKind.
Single
, 0),
740
new TextLoader.Column("GroupId", DataKind.
Single
, 1),
741
new TextLoader.Column("col1", DataKind.
Single
, 0),
1107
new TextLoader.Column("col1", DataKind.
Single
, 1),
1108
new TextLoader.Column("col2", DataKind.
Single
, 0),
CodeGenTests.cs (3)
149
new TextLoader.Column(){ Name = "id", Source = new TextLoader.Range[]{new TextLoader.Range(0) }, DataKind = DataKind.
Single
},
150
new TextLoader.Column(){ Name = "country", Source = new TextLoader.Range[]{new TextLoader.Range(1) }, DataKind = DataKind.
Single
},
167
new TextLoader.Column(){ Name = "MSRP", Source = new TextLoader.Range[]{new TextLoader.Range(4) }, DataKind = DataKind.
Single
},
Microsoft.ML.Core (1)
Data\DataKind.cs (1)
94
R4 = DataKind.
Single
,
Microsoft.ML.Core.Tests (14)
UnitTests\TestEntryPoints.cs (13)
53
new TextLoader.Column("Label", DataKind.
Single
, 0),
54
new TextLoader.Column("Features", DataKind.
Single
,
74
new TextLoader.Column("Label", DataKind.
Single
, 0),
77
new TextLoader.Column("Rest", DataKind.
Single
, new [] { new TextLoader.Range(3, 9) })
1993
new TextLoader.Column("Label", DataKind.
Single
, 0),
1994
new TextLoader.Column("Features", DataKind.
Single
, new [] { new TextLoader.Range(1, 4) })
2139
new TextLoader.Column("Label", DataKind.
Single
, 0),
2140
new TextLoader.Column("Features", DataKind.
Single
, new[] { new TextLoader.Range(1, 8) }),
4241
new TextLoader.Column("Label", DataKind.
Single
, 0),
4242
new TextLoader.Column("Features", DataKind.
Single
, new [] { new TextLoader.Range(1, 9) })
4316
new TextLoader.Column("Features", DataKind.
Single
, new [] { new TextLoader.Range(1, 784) })
4722
new TextLoader.Column("Label", DataKind.
Single
, 0)
4764
new TextLoader.Column("Label", DataKind.
Single
, 0)
UnitTests\TestHosts.cs (1)
131
env.Data.CreateTextLoader(new TextLoader.Options { Columns = new[] { new TextLoader.Column("TestColumn", DataKind.
Single
, 0) } });
Microsoft.ML.Data (3)
Transforms\TypeConverting.cs (1)
537
public const DataKind DefaultOutputKind = DataKind.
Single
;
Transforms\ValueMapping.cs (1)
666
valueColumn = new TextLoader.Column(valueColumnName, DataKind.
Single
, 1);
Transforms\ValueToKeyMappingTransformer.cs (1)
806
var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.
Single
).ToType();
Microsoft.ML.EntryPoints (2)
FeatureCombiner.cs (2)
188
Utils.Add(ref cvt, new TypeConvertingEstimator.ColumnOptions(colName, DataKind.
Single
, col.Name));
303
var xf = new TypeConvertingTransformer(host, new TypeConvertingEstimator.ColumnOptions(input.LabelColumn, DataKind.
Single
, input.LabelColumn)).Transform(input.Data);
Microsoft.ML.IntegrationTests (7)
Datasets\MnistOneClass.cs (2)
21
new TextLoader.Column("Label", DataKind.
Single
, 0),
22
new TextLoader.Column("Features", DataKind.
Single
, 1, 1 + _featureLength)
Datasets\TypeTestData.cs (2)
90
new TextLoader.Column("R4", DataKind.
Single
, 9),
96
new TextLoader.Column("Features", DataKind.
Single
, 15, 15 + _numFeatures - 1),
Validation.cs (3)
79
new TextLoader.Column(labelColumnName, DataKind.
Single
, 0),
81
new TextLoader.Column(featuresColumnVectorNameA, DataKind.
Single
, 2, 9),
82
new TextLoader.Column(featuresColumnVectorNameB, DataKind.
Single
, 10, 137)
Microsoft.ML.PerformanceTests (20)
KMeansAndLogisticRegressionBench.cs (1)
30
new TextLoader.Column("NumFeatures", DataKind.
Single
,
PredictionEngineBench.cs (6)
45
new TextLoader.Column("Label", DataKind.
Single
, 0),
46
new TextLoader.Column("SepalLength", DataKind.
Single
, 1),
47
new TextLoader.Column("SepalWidth", DataKind.
Single
, 2),
48
new TextLoader.Column("PetalLength", DataKind.
Single
, 3),
49
new TextLoader.Column("PetalWidth", DataKind.
Single
, 4),
120
new TextLoader.Column("Features", DataKind.
Single
, new[] { new TextLoader.Range(1, 9) })
RffTransform.cs (2)
36
new TextLoader.Column("Label", DataKind.
Single
, 64),
37
new TextLoader.Column("Features", DataKind.
Single
, new[] {new TextLoader.Range() {Min = 0, Max = 63}})
StochasticDualCoordinateAscentClassifierBench.cs (11)
66
new TextLoader.Column("Label", DataKind.
Single
, 0),
67
new TextLoader.Column("SepalLength", DataKind.
Single
, 1),
68
new TextLoader.Column("SepalWidth", DataKind.
Single
, 2),
69
new TextLoader.Column("PetalLength", DataKind.
Single
, 3),
70
new TextLoader.Column("PetalWidth", DataKind.
Single
, 4),
93
new TextLoader.Column("Label", DataKind.
Single
, new[] { new TextLoader.Range() { Min = 0, Max = 0 } }),
135
new TextLoader.Column("Label", DataKind.
Single
, 0),
136
new TextLoader.Column("SepalLength", DataKind.
Single
, 1),
137
new TextLoader.Column("SepalWidth", DataKind.
Single
, 2),
138
new TextLoader.Column("PetalLength", DataKind.
Single
, 3),
139
new TextLoader.Column("PetalWidth", DataKind.
Single
, 4),
Microsoft.ML.Predictor.Tests (3)
TestIniModels.cs (3)
525
new TextLoader.Column("Label", DataKind.
Single
, 0),
526
new TextLoader.Column("Features", DataKind.
Single
, 1, 9)
565
new TextLoader.Column("Features", DataKind.
Single
, 1, 9)
Microsoft.ML.Samples (9)
Dynamic\DataOperations\LoadingText.cs (3)
46
new TextLoader.Column("Features", DataKind.
Single
, 0, 9)
95
DataKind.
Single
,
141
new TextLoader.Column("Features", DataKind.
Single
, 0, 9)
Dynamic\Trainers\Regression\OrdinaryLeastSquaresAdvanced.cs (2)
38
new TextLoader.Column("Label", DataKind.
Single
, 0),
39
new TextLoader.Column("Features", DataKind.
Single
, 1, 6)
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptionsAdvanced.cs (2)
38
new TextLoader.Column("Label", DataKind.
Single
, 0),
39
new TextLoader.Column("Features", DataKind.
Single
, 1, 6)
Dynamic\Transforms\Concatenate.cs (1)
50
outputKind: DataKind.
Single
)
Dynamic\Transforms\Conversion\ConvertTypeMultiColumn.cs (1)
47
DataKind.
Single
);
Microsoft.ML.Samples.OneDal (2)
Program.cs (2)
31
columns.Add(new TextLoader.Column(column, DataKind.
Single
, Array.IndexOf(headerArray, column)));
35
columns.Add(new TextLoader.Column(column, DataKind.
Single
, Array.IndexOf(headerArray, column)));
Microsoft.ML.SamplesUtils (18)
SamplesDatasetUtils.cs (18)
53
new TextLoader.Column("MedianHomeValue", DataKind.
Single
, 0),
54
new TextLoader.Column("CrimesPerCapita", DataKind.
Single
, 1),
55
new TextLoader.Column("PercentResidental", DataKind.
Single
, 2),
56
new TextLoader.Column("PercentNonRetail", DataKind.
Single
, 3),
57
new TextLoader.Column("CharlesRiver", DataKind.
Single
, 4),
58
new TextLoader.Column("NitricOxides", DataKind.
Single
, 5),
59
new TextLoader.Column("RoomsPerDwelling", DataKind.
Single
, 6),
60
new TextLoader.Column("PercentPre40s", DataKind.
Single
, 7),
61
new TextLoader.Column("EmploymentDistance", DataKind.
Single
, 8),
62
new TextLoader.Column("HighwayDistance", DataKind.
Single
, 9),
63
new TextLoader.Column("TaxRate", DataKind.
Single
, 10),
64
new TextLoader.Column("TeacherRatio", DataKind.
Single
, 11),
129
new TextLoader.Column("age", DataKind.
Single
, 0),
131
new TextLoader.Column("fnlwgt", DataKind.
Single
, 2),
133
new TextLoader.Column("education-num", DataKind.
Single
, 4),
139
new TextLoader.Column("capital-gain", DataKind.
Single
, 10),
140
new TextLoader.Column("capital-loss", DataKind.
Single
, 11),
141
new TextLoader.Column("hours-per-week", DataKind.
Single
, 12),
Microsoft.ML.StandardTrainers (5)
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (3)
462
var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.
Single
).ToType();
533
t = InternalDataKindExtensions.ToInternalDataKind(DataKind.
Single
).ToType();
557
t = InternalDataKindExtensions.ToInternalDataKind(DataKind.
Single
).ToType();
Standard\MulticlassClassification\OneVersusAllTrainer.cs (1)
818
var t1 = InternalDataKindExtensions.ToInternalDataKind(DataKind.
Single
).ToType();
Standard\Simple\SimpleTrainers.cs (1)
427
var t = InternalDataKindExtensions.ToInternalDataKind(DataKind.
Single
).ToType();
Microsoft.ML.TensorFlow.Tests (4)
TensorflowTests.cs (4)
658
new TextLoader.Column("Placeholder", DataKind.
Single
, new []{ new TextLoader.Range(1, 784) })
701
new TextLoader.Column("Placeholder", DataKind.
Single
, new []{ new TextLoader.Range(1, 784) })
791
new TextLoader.Column("Placeholder", DataKind.
Single
, new []{ new TextLoader.Range(1, 784) })
883
new TextLoader.Column("Placeholder", DataKind.
Single
, new []{ new TextLoader.Range(1, 784) })
Microsoft.ML.TestFrameworkCommon (16)
Datasets.cs (16)
180
new TextLoader.Column("MedianHomeValue", DataKind.
Single
, 0),
181
new TextLoader.Column("CrimesPerCapita", DataKind.
Single
, 1),
182
new TextLoader.Column("PercentResidental", DataKind.
Single
, 2),
183
new TextLoader.Column("PercentNonRetail", DataKind.
Single
, 3),
184
new TextLoader.Column("CharlesRiver", DataKind.
Single
, 4),
185
new TextLoader.Column("NitricOxides", DataKind.
Single
, 5),
186
new TextLoader.Column("RoomsPerDwelling", DataKind.
Single
, 6),
187
new TextLoader.Column("PercentPre40s", DataKind.
Single
, 7),
188
new TextLoader.Column("EmploymentDistance", DataKind.
Single
, 8),
189
new TextLoader.Column("HighwayDistance", DataKind.
Single
, 9),
190
new TextLoader.Column("TaxRate", DataKind.
Single
, 10),
191
new TextLoader.Column("TeacherRatio", DataKind.
Single
, 11),
416
new TextLoader.Column("SepalLength", DataKind.
Single
, 0),
417
new TextLoader.Column("SepalWidth", DataKind.
Single
, 1),
418
new TextLoader.Column("PetalLength", DataKind.
Single
, 2),
419
new TextLoader.Column("PetalWidth",DataKind.
Single
, 3),
Microsoft.ML.Tests (264)
AnomalyDetectionTests.cs (2)
241
new TextLoader.Column(DefaultColumnNames.Label, DataKind.
Single
, 0),
242
new TextLoader.Column(DefaultColumnNames.Features, DataKind.
Single
, 1, 784)
ImagesTests.cs (1)
46
new TextLoader.Column("ImagePath", DataKind.
Single
, 0),
OnnxConversionTest.cs (33)
263
new TextLoader.Column("label", DataKind.
Single
, 11),
264
new TextLoader.Column("features", DataKind.
Single
, 0, 10)
460
public void KeyToVectorTest([CombinatorialValues(DataKind.
Single
, DataKind.Int64, DataKind.Int32, DataKind.Int16, DataKind.UInt64,
891
[InlineData(DataKind.SByte, DataKind.
Single
)]
897
[InlineData(DataKind.Byte, DataKind.
Single
)]
902
[InlineData(DataKind.Int16, DataKind.
Single
)]
907
[InlineData(DataKind.UInt16, DataKind.
Single
)]
912
[InlineData(DataKind.Int32, DataKind.
Single
)]
917
[InlineData(DataKind.Int64, DataKind.
Single
)]
922
[InlineData(DataKind.UInt64, DataKind.
Single
)]
924
[InlineData(DataKind.
Single
, DataKind.
Single
)]
925
[InlineData(DataKind.
Single
, DataKind.Double)]
926
[InlineData(DataKind.Double, DataKind.
Single
)]
929
[InlineData(DataKind.String, DataKind.
Single
)]
968
new TextLoader.Column("label", DataKind.
Single
, 11),
969
new TextLoader.Column("features", DataKind.
Single
, 0, 10)
1055
DataKind.UInt16, DataKind.UInt32, DataKind.UInt64, DataKind.
Single
, DataKind.Double, DataKind.String, DataKind.Boolean)] DataKind type,
1070
(type == DataKind.
Single
) ? 16 :
1094
DataKind.UInt16, DataKind.UInt32, DataKind.UInt64, DataKind.
Single
, DataKind.Double, DataKind.String, DataKind.Boolean)] DataKind type,
1109
(type == DataKind.
Single
) ? 16 :
1121
(type == DataKind.
Single
) ? 17 :
1183
[CombinatorialValues(DataKind.
Single
, DataKind.Int64, DataKind.Int32, DataKind.Int16, DataKind.UInt64,
1245
if (keyType == DataKind.
Single
)
1379
[InlineData(DataKind.
Single
)]
1594
[InlineData(DataKind.
Single
)]
1605
new TextLoader.Column("Thickness", DataKind.
Single
, 1),
1766
new TextLoader.Column("SepalLength", DataKind.
Single
, 1),
1767
new TextLoader.Column("SepalWidth", DataKind.
Single
, 2),
1768
new TextLoader.Column("PetalLength", DataKind.
Single
, 3),
1769
new TextLoader.Column("PetalWidth", DataKind.
Single
, 4)
1839
[InlineData(DataKind.
Single
)]
1889
new TextLoader.Column("Size", DataKind.
Single
, 2),
PermutationFeatureImportanceTests.cs (1)
491
new TextLoader.Column("Features", DataKind.
Single
, 1, 9) });
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (51)
336
new TextLoader.Column("Label", DataKind.
Single
, 0),
337
new TextLoader.Column("CrimesPerCapita", DataKind.
Single
, 1),
338
new TextLoader.Column("PercentResidental", DataKind.
Single
, 2),
339
new TextLoader.Column("PercentNonRetail", DataKind.
Single
, 3),
340
new TextLoader.Column("CharlesRiver", DataKind.
Single
, 4),
341
new TextLoader.Column("NitricOxides", DataKind.
Single
, 5),
342
new TextLoader.Column("RoomsPerDwelling", DataKind.
Single
, 6),
343
new TextLoader.Column("PercentPre40s", DataKind.
Single
, 7),
344
new TextLoader.Column("EmploymentDistance", DataKind.
Single
, 8),
345
new TextLoader.Column("HighwayDistance", DataKind.
Single
, 9),
346
new TextLoader.Column("TaxRate", DataKind.
Single
, 10),
347
new TextLoader.Column("TeacherRatio", DataKind.
Single
, 11)
376
new TextLoader.Column("Label", DataKind.
Single
, 0),
377
new TextLoader.Column("CrimesPerCapita", DataKind.
Single
, 1),
378
new TextLoader.Column("PercentResidental", DataKind.
Single
, 2),
379
new TextLoader.Column("PercentNonRetail", DataKind.
Single
, 3),
380
new TextLoader.Column("CharlesRiver", DataKind.
Single
, 4),
381
new TextLoader.Column("NitricOxides", DataKind.
Single
, 5),
382
new TextLoader.Column("RoomsPerDwelling", DataKind.
Single
, 6),
383
new TextLoader.Column("PercentPre40s", DataKind.
Single
, 7),
384
new TextLoader.Column("EmploymentDistance", DataKind.
Single
, 8),
385
new TextLoader.Column("HighwayDistance", DataKind.
Single
, 9),
386
new TextLoader.Column("TaxRate", DataKind.
Single
, 10),
387
new TextLoader.Column("TeacherRatio", DataKind.
Single
, 11)
411
new TextLoader.Column("Label", DataKind.
Single
, 0),
412
new TextLoader.Column("CrimesPerCapita", DataKind.
Single
, 1),
413
new TextLoader.Column("PercentResidental", DataKind.
Single
, 2),
414
new TextLoader.Column("PercentNonRetail", DataKind.
Single
, 3),
415
new TextLoader.Column("CharlesRiver", DataKind.
Single
, 4),
416
new TextLoader.Column("NitricOxides", DataKind.
Single
, 5),
417
new TextLoader.Column("RoomsPerDwelling", DataKind.
Single
, 6),
418
new TextLoader.Column("PercentPre40s", DataKind.
Single
, 7),
419
new TextLoader.Column("EmploymentDistance", DataKind.
Single
, 8),
420
new TextLoader.Column("HighwayDistance", DataKind.
Single
, 9),
421
new TextLoader.Column("TaxRate", DataKind.
Single
, 10),
422
new TextLoader.Column("TeacherRatio", DataKind.
Single
, 11)
447
new TextLoader.Column("MedianHomeValue", DataKind.
Single
, 0),
448
new TextLoader.Column("CrimesPerCapita", DataKind.
Single
, 1),
449
new TextLoader.Column("PercentResidental", DataKind.
Single
, 2),
450
new TextLoader.Column("PercentNonRetail", DataKind.
Single
, 3),
451
new TextLoader.Column("CharlesRiver", DataKind.
Single
, 4),
452
new TextLoader.Column("NitricOxides", DataKind.
Single
, 5),
453
new TextLoader.Column("RoomsPerDwelling", DataKind.
Single
, 6),
454
new TextLoader.Column("PercentPre40s", DataKind.
Single
, 7),
455
new TextLoader.Column("EmploymentDistance", DataKind.
Single
, 8),
456
new TextLoader.Column("HighwayDistance", DataKind.
Single
, 9),
457
new TextLoader.Column("TaxRate", DataKind.
Single
, 10),
458
new TextLoader.Column("TeacherRatio", DataKind.
Single
, 11)
579
new TextLoader.Column("NumericalFeatures", DataKind.
Single
, 9, 14),
708
new TextLoader.Column("Income", DataKind.
Single
, 10),
709
new TextLoader.Column("Features", DataKind.
Single
, 12, 14)
Scenarios\Api\Estimators\PredictAndMetadata.cs (2)
102
new TextLoader.Column("Label", DataKind.
Single
, 0), //notice the label being loaded as a float
103
new TextLoader.Column("Features", DataKind.
Single
, new[]{ new TextLoader.Range(1,4) })
Scenarios\Api\TestApi.cs (2)
305
new TextLoader.Column("Age", DataKind.
Single
,9)
353
new TextLoader.Column("Age", DataKind.
Single
,9)
Scenarios\GetColumnTests.cs (5)
30
new TextLoader.Column("floatScalar", DataKind.
Single
, 1),
31
new TextLoader.Column("floatVector", DataKind.
Single
, 2, 6),
54
new TextLoader.Column("anotherFloatVector", DataKind.
Single
, 2, 6),
72
new TextLoader.Column("floatScalar", DataKind.
Single
, 1),
73
new TextLoader.Column("floatVector", DataKind.
Single
, 2, 6),
Scenarios\IrisPlantClassificationTests.cs (5)
24
new TextLoader.Column("Label", DataKind.
Single
, 0),
25
new TextLoader.Column("SepalLength", DataKind.
Single
, 1),
26
new TextLoader.Column("SepalWidth", DataKind.
Single
, 2),
27
new TextLoader.Column("PetalLength", DataKind.
Single
, 3),
28
new TextLoader.Column("PetalWidth", DataKind.
Single
, 4)
Scenarios\IrisPlantClassificationWithStringLabelTests.cs (4)
20
new TextLoader.Column("SepalLength", DataKind.
Single
, 0),
21
new TextLoader.Column("SepalWidth", DataKind.
Single
, 1),
22
new TextLoader.Column("PetalLength", DataKind.
Single
, 2),
23
new TextLoader.Column("PetalWidth", DataKind.
Single
, 3),
Scenarios\OvaTest.cs (8)
26
new TextLoader.Column("Label", DataKind.
Single
, 0),
27
new TextLoader.Column("Features", DataKind.
Single
, new [] { new TextLoader.Range(1, 4) }),
59
new TextLoader.Column("Label", DataKind.
Single
, 0),
60
new TextLoader.Column("Features", DataKind.
Single
, new [] { new TextLoader.Range(1, 4) }),
95
new TextLoader.Column("Label", DataKind.
Single
, 0),
96
new TextLoader.Column("Features", DataKind.
Single
, new [] { new TextLoader.Range(1, 4) }),
130
new TextLoader.Column("Label", DataKind.
Single
, 0),
131
new TextLoader.Column("Features", DataKind.
Single
, new [] { new TextLoader.Range(1, 4) }),
ScenariosWithDirectInstantiation\IrisPlantClassificationTests.cs (5)
22
new TextLoader.Column("Label", DataKind.
Single
, 0),
23
new TextLoader.Column("SepalLength", DataKind.
Single
, 1),
24
new TextLoader.Column("SepalWidth", DataKind.
Single
, 2),
25
new TextLoader.Column("PetalLength", DataKind.
Single
, 3),
26
new TextLoader.Column("PetalWidth", DataKind.
Single
, 4)
SvmLightTests.cs (1)
506
var loader = ML.Data.CreateTextLoader(new[] { new TextLoader.Column("Column", DataKind.
Single
, 0) });
TermEstimatorTests.cs (2)
59
new TextLoader.Column("float1", DataKind.
Single
, 9),
60
new TextLoader.Column("float4", DataKind.
Single
, new[]{new TextLoader.Range(9), new TextLoader.Range(10), new TextLoader.Range(11), new TextLoader.Range(12) }),
TextLoaderTests.cs (11)
899
new TextLoader.Column("Features", typeof(T) == typeof(double) ? DataKind.Double : DataKind.
Single
, new [] { new TextLoader.Range(1, 4) }),
935
new TextLoader.Column("Features", typeof(T) == typeof(double) ? DataKind.Double : DataKind.
Single
, new [] { new TextLoader.Range(1, 4) })
994
new TextLoader.Column("Features", DataKind.
Single
, new [] { new TextLoader.Range(1, 4) })
1046
new TextLoader.Column("Features", DataKind.
Single
, new[] { new TextLoader.Range(1, 4) })
1056
new TextLoader.Column("Features", DataKind.
Single
, new[] { new TextLoader.Range(1, 4) })
1439
new TextLoader.Column("sing1", DataKind.
Single
, 2),
1440
new TextLoader.Column("sing2", DataKind.
Single
, 3),
1441
new TextLoader.Column("singFt1", DataKind.
Single
, new [] { new TextLoader.Range(2,3) } ),
1442
new TextLoader.Column("sing3", DataKind.
Single
, 5),
1443
new TextLoader.Column("sing4", DataKind.
Single
, 6),
1444
new TextLoader.Column("singFt2", DataKind.
Single
, new [] { new TextLoader.Range(2,3), new TextLoader.Range(5,6) } ),
TrainerEstimators\FAFMEstimator.cs (4)
97
new TextLoader.Column("Feature1", DataKind.
Single
, new [] { new TextLoader.Range(1, 2) }),
98
new TextLoader.Column("Feature2", DataKind.
Single
, new [] { new TextLoader.Range(3, 4) }),
99
new TextLoader.Column("Feature3", DataKind.
Single
, new [] { new TextLoader.Range(5, 6) }),
100
new TextLoader.Column("Feature4", DataKind.
Single
, new [] { new TextLoader.Range(7, 9) }),
TrainerEstimators\MatrixFactorizationTests.cs (1)
164
new TextLoader.Column(labelColumnName, DataKind.
Single
, new [] { new TextLoader.Range(0) }),
TrainerEstimators\OneDalEstimators.cs (8)
41
new TextLoader.Column("f0", DataKind.
Single
, 0),
42
new TextLoader.Column("f1", DataKind.
Single
, 1),
43
new TextLoader.Column("f2", DataKind.
Single
, 2),
44
new TextLoader.Column("f3", DataKind.
Single
, 3),
45
new TextLoader.Column("f4", DataKind.
Single
, 4),
46
new TextLoader.Column("f5", DataKind.
Single
, 5),
47
new TextLoader.Column("f6", DataKind.
Single
, 6),
48
new TextLoader.Column("f7", DataKind.
Single
, 7),
TrainerEstimators\OnlineLinearTests.cs (3)
21
new TextLoader.Column("Label", DataKind.
Single
, 0),
22
new TextLoader.Column("Features", DataKind.
Single
, 1, 10)
36
new TextLoader.Column("Features", DataKind.
Single
, 1, 10)
TrainerEstimators\PriorRandomTests.cs (1)
25
new TextLoader.Column("Rest", DataKind.
Single
, new [] { new TextLoader.Range(3, 9) })
TrainerEstimators\SdcaTests.cs (2)
22
new TextLoader.Column("Label", DataKind.
Single
, 0),
23
new TextLoader.Column("Features", DataKind.
Single
, 1, 10)
TrainerEstimators\TrainerEstimators.cs (9)
36
new TextLoader.Column(featureColumn, DataKind.
Single
, new [] { new TextLoader.Range(1, 784) })
65
new TextLoader.Column(featureColumn, DataKind.
Single
, new [] { new TextLoader.Range(1, 784) }),
66
new TextLoader.Column(weights, DataKind.
Single
, 0),
233
new TextLoader.Column("Label", DataKind.
Single
, 0),
235
new TextLoader.Column("NumericFeatures", DataKind.
Single
, new [] { new TextLoader.Range(9, 14) })
256
new TextLoader.Column("Label", DataKind.
Single
, 11),
257
new TextLoader.Column("Features", DataKind.
Single
, new [] { new TextLoader.Range(0, 10) } )
270
new TextLoader.Column("Features", DataKind.
Single
, new [] { new TextLoader.Range(0, 3) }),
283
new TextLoader.Column("Features", DataKind.
Single
, new [] { new TextLoader.Range(0, 3) }),
Transformers\CategoricalTests.cs (2)
109
var pipe = mlContext.Transforms.Conversion.ConvertType("A", outputKind: DataKind.
Single
)
110
.Append(mlContext.Transforms.Conversion.ConvertType("B", outputKind: DataKind.
Single
))
Transformers\ConcatTests.cs (7)
49
new TextLoader.Column("float1", DataKind.
Single
, 9),
50
new TextLoader.Column("float4", DataKind.
Single
, new[]{new TextLoader.Range(9), new TextLoader.Range(10), new TextLoader.Range(11), new TextLoader.Range(12) }),
51
new TextLoader.Column("float6", DataKind.
Single
, new[]{new TextLoader.Range(9), new TextLoader.Range(10), new TextLoader.Range(11), new TextLoader.Range(12, 14) }),
52
new TextLoader.Column("vfloat", DataKind.
Single
, new[]{new TextLoader.Range(14, null) { AutoEnd = false, VariableEnd = true } })
107
new TextLoader.Column("float1", DataKind.
Single
, 9),
108
new TextLoader.Column("float4", DataKind.
Single
, new[]{new TextLoader.Range(9), new TextLoader.Range(10), new TextLoader.Range(11), new TextLoader.Range(12) }),
109
new 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 (14)
130
var pipe = ML.Transforms.Conversion.ConvertType(columns: new[] {new TypeConvertingEstimator.ColumnOptions("ConvA", DataKind.
Single
, "A"),
131
new TypeConvertingEstimator.ColumnOptions("ConvB", DataKind.
Single
, "B")});
170
new TypeConvertingEstimator.ColumnOptions("ConvA", DataKind.
Single
, "AA"),
171
new TypeConvertingEstimator.ColumnOptions("ConvB", DataKind.
Single
, "AB"),
172
new TypeConvertingEstimator.ColumnOptions("ConvC", DataKind.
Single
, "AC"),
173
new TypeConvertingEstimator.ColumnOptions("ConvD", DataKind.
Single
, "AD"),
174
new TypeConvertingEstimator.ColumnOptions("ConvE", DataKind.
Single
, "AE"),
175
new TypeConvertingEstimator.ColumnOptions("ConvF", DataKind.
Single
, "AF"),
176
new TypeConvertingEstimator.ColumnOptions("ConvG", DataKind.
Single
, "AG"),
177
new TypeConvertingEstimator.ColumnOptions("ConvH", DataKind.
Single
, "AH"),
178
new TypeConvertingEstimator.ColumnOptions("ConvK", DataKind.
Single
, "AK"),
179
new TypeConvertingEstimator.ColumnOptions("ConvL", DataKind.
Single
, "AL"),
180
new TypeConvertingEstimator.ColumnOptions("ConvM", DataKind.
Single
, "AM"),
181
new TypeConvertingEstimator.ColumnOptions("ConvN", DataKind.
Single
, "AN"),
Transformers\CountTargetEncodingTests.cs (4)
29
new TextLoader.Column("Label", DataKind.
Single
, 0)
42
var data = ML.Data.LoadFromTextFile(dataPath, new[] { new TextLoader.Column("Label", DataKind.
Single
, 0),
60
new TextLoader.Column("Label", DataKind.
Single
, 0)
165
new TextLoader.Column("Label", DataKind.
Single
, 0)
Transformers\CustomMappingTests.cs (8)
57
new TextLoader.Column("Float1", DataKind.
Single
, 9),
58
new TextLoader.Column("Float4", DataKind.
Single
, new[]{new TextLoader.Range(9), new TextLoader.Range(10), new TextLoader.Range(11), new TextLoader.Range(12) })
93
new TextLoader.Column("Float1", DataKind.
Single
, 0),
94
new TextLoader.Column("Float4", DataKind.
Single
, new[]{new TextLoader.Range(0), new TextLoader.Range(2), new TextLoader.Range(4), new TextLoader.Range(10) }),
171
new TextLoader.Column("Features", DataKind.
Single
, 1, 9),
173
new TextLoader.Column("Value", DataKind.
Single
, 2),
196
new TextLoader.Column("Float4", DataKind.
Single
, 1, 4),
197
new TextLoader.Column("Float1", DataKind.
Single
, 2),
Transformers\ExpressionTransformerTests.cs (2)
27
new TextLoader.Column("Float", DataKind.
Single
, 9),
28
new TextLoader.Column("FloatVector", DataKind.
Single
, 9, 14),
Transformers\FeatureSelectionTests.cs (10)
38
new TextLoader.Column("text", DataKind.
Single
, 1) },
66
new TextLoader.Column("ScalarFloat", DataKind.
Single
, 1),
68
new TextLoader.Column("VectorFloat", DataKind.
Single
, 1, 4),
108
new TextLoader.Column("ScalarFloat", DataKind.
Single
, 6),
109
new TextLoader.Column("VectorFloat", DataKind.
Single
, 1, 4),
150
new TextLoader.Column("VectorFloat", DataKind.
Single
, 1, 4)
172
new TextLoader.Column("ScalarFloat", DataKind.
Single
, 6),
173
new TextLoader.Column("VectorFloat", DataKind.
Single
, 1, 4),
210
new TextLoader.Column("VectorFloat", DataKind.
Single
, 1, 4)
232
new TextLoader.Column("Label", DataKind.
Single
, 0),
Transformers\HashTests.cs (1)
359
new TextLoader.Column("Features", DataKind.
Single
, 1, 9)
Transformers\NAIndicatorTests.cs (2)
96
new TextLoader.Column("ScalarFloat", DataKind.
Single
, 1),
98
new TextLoader.Column("VectorFloat", DataKind.
Single
, 1, 4),
Transformers\NAReplaceTests.cs (2)
126
new TextLoader.Column("ScalarFloat", DataKind.
Single
, 1),
128
new TextLoader.Column("VectorFloat", DataKind.
Single
, 1, 4),
Transformers\NormalizerTests.cs (36)
40
new TextLoader.Column("float1", DataKind.
Single
, 1),
41
new TextLoader.Column("float4", DataKind.
Single
, new[]{new TextLoader.Range(1, 4) }),
45
new TextLoader.Column("float0", DataKind.
Single
, new[]{ new TextLoader.Range { Min = 1, VariableEnd = true } }),
109
new TextLoader.Column("float1", DataKind.
Single
, 1),
110
new TextLoader.Column("float4", DataKind.
Single
, new[]{new TextLoader.Range(1, 4) }),
114
new TextLoader.Column("float0", DataKind.
Single
, new[]{ new TextLoader.Range { Min = 1, VariableEnd = true } })
227
new TextLoader.Column("Label", DataKind.
Single
, 0),
228
new TextLoader.Column("float1", DataKind.
Single
, 1),
229
new TextLoader.Column("float4", DataKind.
Single
, new[]{new TextLoader.Range(1, 4) }),
233
new TextLoader.Column("float0", DataKind.
Single
, new[]{ new TextLoader.Range { Min = 1, VariableEnd = true } })
474
new TextLoader.Column("Label", DataKind.
Single
, 0),
475
new TextLoader.Column("float4", DataKind.
Single
, new[]{new TextLoader.Range(1, 4) }),
578
new TextLoader.Column("Label", DataKind.
Single
, 0),
579
new TextLoader.Column("float4", DataKind.
Single
, new[]{new TextLoader.Range(1, 4) }),
636
new TextLoader.Column("Label", DataKind.
Single
, 0),
637
new TextLoader.Column("input", DataKind.
Single
, new[]{new TextLoader.Range(1, 4) }),
657
new TextLoader.Column("label", DataKind.
Single
, 11),
658
new TextLoader.Column("features", DataKind.
Single
, 0, 10)
662
new TextLoader.Column("label", DataKind.
Single
, 11),
691
new TextLoader.Column("label", DataKind.
Single
, 11),
692
new TextLoader.Column("features", DataKind.
Single
, 0, 10)
696
new TextLoader.Column("label", DataKind.
Single
, 11),
733
new TextLoader.Column("label", DataKind.
Single
, 11),
734
new TextLoader.Column("features", DataKind.
Single
, 0, 10)
755
new TextLoader.Column("label", DataKind.
Single
, 11),
756
new TextLoader.Column("features", DataKind.
Single
, 0, 10)
760
new TextLoader.Column("label", DataKind.
Single
, 11),
794
new TextLoader.Column("label", DataKind.
Single
, 11),
795
new TextLoader.Column("features", DataKind.
Single
, 0, 10)
815
new TextLoader.Column("label", DataKind.
Single
, 11),
816
new TextLoader.Column("features", DataKind.
Single
, 0, 10)
820
new TextLoader.Column("label", DataKind.
Single
, 11),
854
new TextLoader.Column("label", DataKind.
Single
, 11),
855
new TextLoader.Column("features", DataKind.
Single
, 0, 10)
994
new TextLoader.Column("float1", DataKind.
Single
, 1),
995
new TextLoader.Column("float4", DataKind.
Single
, new[]{new TextLoader.Range(1, 4) }),
Transformers\PcaTests.cs (7)
30
new TextLoader.Column("label", DataKind.
Single
, 11),
31
new TextLoader.Column("weight", DataKind.
Single
, 0),
32
new TextLoader.Column("features", DataKind.
Single
, 1, 10)
36
new TextLoader.Column("label", DataKind.
Single
, 11),
37
new TextLoader.Column("weight", DataKind.
Single
, 0),
54
new TextLoader.Column("label", DataKind.
Single
, 11),
55
new TextLoader.Column("features", DataKind.
Single
, 0, 10)
Transformers\RffTests.cs (2)
68
new TextLoader.Column("VectorFloat", DataKind.
Single
, 1, 8),
69
new TextLoader.Column("Label", DataKind.
Single
, 0)
Transformers\TextFeaturizerTests.cs (6)
433
new TextLoader.Column("text", DataKind.
Single
, 1) },
466
new TextLoader.Column("text", DataKind.
Single
, 1) },
533
new TextLoader.Column("text", DataKind.
Single
, 1) },
596
new TextLoader.Column("text", DataKind.
Single
, 1) },
626
new TextLoader.Column("text", DataKind.
Single
, 1) },
680
new TextLoader.Column("text", DataKind.
Single
, 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
))
540
new TextLoader.Column("Value", DataKind.
Single
, 0),
Microsoft.ML.TorchSharp.Tests (1)
TextClassificationTests.cs (1)
422
new TextLoader.Column("relevance", DataKind.
Single
,4),