1 instantiation of TypeTestData
Microsoft.ML.IntegrationTests (1)
Datasets\TypeTestData.cs (1)
128
return new
TypeTestData
39 references to TypeTestData
Microsoft.ML.IntegrationTests (39)
Common.cs (16)
18
/// Assert that an <see cref="IDataView"/> rows are of <see cref="
TypeTestData
"/>.
23
var toyClassProperties = typeof(
TypeTestData
).GetProperties();
60
/// Assert than two <see cref="
TypeTestData
"/> datasets are equal.
63
/// <param name="data1">A <see cref="IDataView"/> of <see cref="
TypeTestData
"/></param>
64
/// <param name="data2">A <see cref="IDataView"/> of <see cref="
TypeTestData
"/></param>
75
var enumerable1 = mlContext.Data.CreateEnumerable<
TypeTestData
>(data1, true);
76
var enumerable2 = mlContext.Data.CreateEnumerable<
TypeTestData
>(data2, true);
121
/// Assert than two <see cref="
TypeTestData
"/> enumerables are equal.
123
/// <param name="data1">An enumerable of <see cref="
TypeTestData
"/></param>
124
/// <param name="data2">An enumerable of <see cref="
TypeTestData
"/></param>
125
public static void AssertEqual(IEnumerable<
TypeTestData
> data1, IEnumerable<
TypeTestData
> data2)
140
/// <param name="testType1">An <see cref="
TypeTestData
"/>.</param>
141
/// <param name="testType2">An <see cref="
TypeTestData
"/>.</param>
142
public static void AssertEqual(
TypeTestData
testType1,
TypeTestData
testType2)
DataIO.cs (8)
36
var data = mlContext.Data.LoadFromEnumerable(
TypeTestData
.GenerateDataset());
50
var enumerableBefore =
TypeTestData
.GenerateDataset();
54
var enumerableAfter = mlContext.Data.CreateEnumerable<
TypeTestData
>(data, true);
70
var dataBefore = mlContext.Data.LoadFromEnumerable(
TypeTestData
.GenerateDataset());
76
var dataAfter =
TypeTestData
.GetTextLoader(mlContext, separator).Load(filePath);
92
var dataBefore = mlContext.Data.LoadFromEnumerable(
TypeTestData
.GenerateDataset());
98
var dataAfter = mlContext.Data.LoadFromTextFile<
TypeTestData
>(filePath, separatorChar: separator, hasHeader: true, allowQuoting: true);
111
var dataBefore = mlContext.Data.LoadFromEnumerable(
TypeTestData
.GenerateDataset());
Datasets\TypeTestData.cs (7)
72
/// Get the text loader for the <see cref="
TypeTestData
"/> dataset.
104
/// Generate an IEnumerable of <see cref="
TypeTestData
"/>.
106
/// <param name="numExamples">The number of <see cref="
TypeTestData
"/> objects to make.</param>
108
/// <returns>An IEnumerable of <see cref="
TypeTestData
"/>.</returns>
109
public static IEnumerable<
TypeTestData
> GenerateDataset(int numExamples = 5, int seed = 1)
119
/// Get a random instance of <see cref="
TypeTestData
"/>.
123
public static
TypeTestData
GetRandomInstance(Random rng)
Prediction.cs (8)
82
var data = mlContext.Data.LoadFromEnumerable(
TypeTestData
.GenerateDataset());
88
var
randomDataPoint =
TypeTestData
.GetRandomInstance(rnd);
89
var engine = mlContext.Model.CreatePredictionEngine<
TypeTestData
, Prediction>(model);
94
var newEngine = mlContext.Model.CreatePredictionEngine<
TypeTestData
, Prediction>(newModel);
105
var data = mlContext.Data.LoadFromEnumerable(
TypeTestData
.GenerateDataset());
110
var engine = mlContext.Model.CreatePredictionEngine<
TypeTestData
, Prediction>(model, new PredictionEngineOptions());
130
engine = mlContext.Model.CreatePredictionEngine<
TypeTestData
, Prediction>(model, options);