87 references to DatasetUtil
Microsoft.ML.AutoML.Tests (87)
AutoFeaturizerTests.cs (6)
47
var dataset =
DatasetUtil
.GetUciAdultDataView();
59
var dataset =
DatasetUtil
.GetIrisDataView();
71
var dataset =
DatasetUtil
.GetNewspaperChurnDataView();
72
var pipeline = context.Auto().Featurizer(dataset, excludeColumns: new[] {
DatasetUtil
.NewspaperChurnLabel });
84
var dataset =
DatasetUtil
.GetCreditApprovalDataView();
107
var datasetPath =
DatasetUtil
.GetFlowersDataset();
AutoFitTests.cs (33)
45
var dataPath =
DatasetUtil
.GetUciAdultDataset();
46
var columnInference = context.Auto().InferColumns(dataPath,
DatasetUtil
.UciAdultLabel);
60
.Execute(trainData, new ColumnInformation() { LabelColumnName =
DatasetUtil
.UciAdultLabel });
71
var dataPath =
DatasetUtil
.GetUciAdultDataset();
72
var columnInference = context.Auto().InferColumns(dataPath,
DatasetUtil
.UciAdultLabel);
87
.Execute(trainData, new ColumnInformation() { LabelColumnName =
DatasetUtil
.UciAdultLabel });
98
var dataPath =
DatasetUtil
.GetUciAdultDataset();
99
var columnInference = context.Auto().InferColumns(dataPath,
DatasetUtil
.UciAdultLabel);
114
.Execute(dataTrainTest.TrainSet, dataTrainTest.TestSet,
DatasetUtil
.UciAdultLabel);
125
var dataPath =
DatasetUtil
.GetUciAdultDataset();
126
var columnInference = context.Auto().InferColumns(dataPath,
DatasetUtil
.UciAdultLabel);
139
.Execute(trainData, 10,
DatasetUtil
.UciAdultLabel);
160
var dataset =
DatasetUtil
.GetTaxiFareTrainDataView();
191
var dataset =
DatasetUtil
.GetTaxiFareTrainDataView();
221
var dataset =
DatasetUtil
.GetTaxiFareTrainDataView();
260
var columnInference = context.Auto().InferColumns(
DatasetUtil
.TrivialMulticlassDatasetPath,
DatasetUtil
.TrivialMulticlassDatasetLabel);
262
var trainData = textLoader.Load(
DatasetUtil
.TrivialMulticlassDatasetPath);
286
.Execute(trainData, numberOfCVFolds,
DatasetUtil
.TrivialMulticlassDatasetLabel);
318
.Execute(trainData,
DatasetUtil
.TrivialMulticlassDatasetLabel);
333
var datasetPath =
DatasetUtil
.GetFlowersDataset();
360
var datasetPath =
DatasetUtil
.GetFlowersDataset();
390
var datasetPath =
DatasetUtil
.GetFlowersDataset();
419
var trainDataView = reader.Load(new MultiFileSource(
DatasetUtil
.GetMLSRDataset()));
481
var trainDataView = reader.Load(
DatasetUtil
.GetMLSRDataset());
585
var dataPath =
DatasetUtil
.GetUciAdultDataset();
586
var columnInference = context.Auto().InferColumns(dataPath,
DatasetUtil
.UciAdultLabel);
603
new ColumnInformation() { LabelColumnName =
DatasetUtil
.UciAdultLabel })
610
new ColumnInformation() { LabelColumnName =
DatasetUtil
.UciAdultLabel })
617
new ColumnInformation() { LabelColumnName =
DatasetUtil
.UciAdultLabel })
649
var dataPath =
DatasetUtil
.GetUciAdultDataset();
650
var columnInference = context.Auto().InferColumns(dataPath,
DatasetUtil
.UciAdultLabel);
655
.Execute(trainData, new ColumnInformation() { LabelColumnName =
DatasetUtil
.UciAdultLabel });
AutoMLExperimentTests.cs (25)
103
var data =
DatasetUtil
.GetUciAdultDataView();
105
var pipeline = context.Auto().Featurizer(data, "_Features_", excludeColumns: new[] {
DatasetUtil
.UciAdultLabel })
106
.Append(context.BinaryClassification.Trainers.LightGbm(
DatasetUtil
.UciAdultLabel, "_Features_", numberOfIterations: 10000));
109
.SetBinaryClassificationMetric(BinaryClassificationMetric.AreaUnderRocCurve,
DatasetUtil
.UciAdultLabel)
220
var data =
DatasetUtil
.GetUciAdultDataView();
222
var pipeline = context.Auto().Featurizer(data, "_Features_", excludeColumns: new[] {
DatasetUtil
.UciAdultLabel })
223
.Append(context.Auto().BinaryClassification(
DatasetUtil
.UciAdultLabel, "_Features_", useLgbm: false, useSdcaLogisticRegression: false, useLbfgsLogisticRegression: false));
226
.SetBinaryClassificationMetric(BinaryClassificationMetric.AreaUnderRocCurve,
DatasetUtil
.UciAdultLabel)
245
var data =
DatasetUtil
.GetUciAdultDataView();
247
var pipeline = context.Auto().Featurizer(data, "_Features_", excludeColumns: new[] {
DatasetUtil
.UciAdultLabel })
248
.Append(context.Auto().BinaryClassification(
DatasetUtil
.UciAdultLabel, "_Features_", exampleWeightColumnName: "signedWeight", useLgbm: false, useSdcaLogisticRegression: false, useLbfgsLogisticRegression: false));
252
.SetBinaryClassificationMetricWithFairLearn(
DatasetUtil
.UciAdultLabel, "PredictedLabel", "Workclass", "signedWeight")
270
var data =
DatasetUtil
.GetUciAdultDataView();
272
var pipeline = context.Auto().Featurizer(data, "_Features_", excludeColumns: new[] {
DatasetUtil
.UciAdultLabel })
273
.Append(context.Auto().BinaryClassification(
DatasetUtil
.UciAdultLabel, "_Features_", useLgbm: false, useSdcaLogisticRegression: false, useLbfgsLogisticRegression: false));
276
.SetBinaryClassificationMetric(BinaryClassificationMetric.AreaUnderRocCurve,
DatasetUtil
.UciAdultLabel)
295
var data =
DatasetUtil
.GetIrisDataView();
322
var data =
DatasetUtil
.GetIrisDataView();
349
var train =
DatasetUtil
.GetTaxiFareTrainDataView();
350
var test =
DatasetUtil
.GetTaxiFareTestDataView();
352
var label =
DatasetUtil
.TaxiFareLabel;
380
var train =
DatasetUtil
.GetTaxiFareTrainDataView();
382
var label =
DatasetUtil
.TaxiFareLabel;
399
var train =
DatasetUtil
.GetTaxiFareTrainDataView();
401
var label =
DatasetUtil
.TaxiFareLabel;
ColumnInferenceTests.cs (14)
31
var dataPath =
DatasetUtil
.GetUciAdultDataset();
33
var columnInferenceWithoutGrouping = context.Auto().InferColumns(dataPath,
DatasetUtil
.UciAdultLabel, groupColumns: false);
39
var columnInferenceWithGrouping = context.Auto().InferColumns(dataPath,
DatasetUtil
.UciAdultLabel, groupColumns: true);
46
var dataPath =
DatasetUtil
.GetUciAdultDataset();
54
Assert.Throws<ArgumentOutOfRangeException>(() => new MLContext(1).Auto().InferColumns(
DatasetUtil
.GetUciAdultDataset(), 100));
60
var result = new MLContext(1).Auto().InferColumns(
DatasetUtil
.GetUciAdultDataset(), 14, hasHeader: true);
70
var result = new MLContext(1).Auto().InferColumns(
DatasetUtil
.GetIrisDataset(),
DatasetUtil
.IrisDatasetLabelColIndex);
72
var labelCol = result.TextLoaderOptions.Columns.First(c => c.Source[0].Min ==
DatasetUtil
.IrisDatasetLabelColIndex &&
73
c.Source[0].Max ==
DatasetUtil
.IrisDatasetLabelColIndex);
189
var columnInfo = new ColumnInformation() { LabelColumnName =
DatasetUtil
.MlNetGeneratedRegressionLabel };
190
var result = new MLContext(1).Auto().InferColumns(
DatasetUtil
.GetMlNetGeneratedRegressionDataset(),
192
var labelCol = result.TextLoaderOptions.Columns.First(c => c.Name ==
DatasetUtil
.MlNetGeneratedRegressionLabel);
194
Assert.Equal(
DatasetUtil
.MlNetGeneratedRegressionLabel, result.ColumnInformation.LabelColumnName);
DatasetUtil.cs (1)
237
DatasetUtil
).Assembly.Location).Directory.FullName, relativePath);
GetNextPipelineTests.cs (4)
27
var uciAdult =
DatasetUtil
.GetUciAdultDataView();
28
var columns = DatasetColumnInfoUtil.GetDatasetColumnInfo(context, uciAdult, new ColumnInformation() { LabelColumnName =
DatasetUtil
.UciAdultLabel });
52
var uciAdult =
DatasetUtil
.GetUciAdultDataView();
53
var columns = DatasetColumnInfoUtil.GetDatasetColumnInfo(context, uciAdult, new ColumnInformation() { LabelColumnName =
DatasetUtil
.UciAdultLabel });
TrainValidaionDatasetManagerTest.cs (2)
29
var dataPath =
DatasetUtil
.GetUciAdultDataset();
30
var columnInference = context.Auto().InferColumns(dataPath,
DatasetUtil
.UciAdultLabel);
UserInputValidationTests.cs (2)
20
private static readonly IDataView _data =
DatasetUtil
.GetUciAdultDataView();
196
UserInputValidationUtil.ValidateInferColumnsArgs(
DatasetUtil
.GetUciAdultDataset());