1 instantiation of TypeTestData
Microsoft.ML.IntegrationTests (1)
Datasets\TypeTestData.cs (1)
128return 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"/>. 23var 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> 75var enumerable1 = mlContext.Data.CreateEnumerable<TypeTestData>(data1, true); 76var 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> 125public 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> 142public static void AssertEqual(TypeTestData testType1, TypeTestData testType2)
DataIO.cs (8)
36var data = mlContext.Data.LoadFromEnumerable(TypeTestData.GenerateDataset()); 50var enumerableBefore = TypeTestData.GenerateDataset(); 54var enumerableAfter = mlContext.Data.CreateEnumerable<TypeTestData>(data, true); 70var dataBefore = mlContext.Data.LoadFromEnumerable(TypeTestData.GenerateDataset()); 76var dataAfter = TypeTestData.GetTextLoader(mlContext, separator).Load(filePath); 92var dataBefore = mlContext.Data.LoadFromEnumerable(TypeTestData.GenerateDataset()); 98var dataAfter = mlContext.Data.LoadFromTextFile<TypeTestData>(filePath, separatorChar: separator, hasHeader: true, allowQuoting: true); 111var 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> 109public static IEnumerable<TypeTestData> GenerateDataset(int numExamples = 5, int seed = 1) 119/// Get a random instance of <see cref="TypeTestData"/>. 123public static TypeTestData GetRandomInstance(Random rng)
Prediction.cs (8)
82var data = mlContext.Data.LoadFromEnumerable(TypeTestData.GenerateDataset()); 88var randomDataPoint = TypeTestData.GetRandomInstance(rnd); 89var engine = mlContext.Model.CreatePredictionEngine<TypeTestData, Prediction>(model); 94var newEngine = mlContext.Model.CreatePredictionEngine<TypeTestData, Prediction>(newModel); 105var data = mlContext.Data.LoadFromEnumerable(TypeTestData.GenerateDataset()); 110var engine = mlContext.Model.CreatePredictionEngine<TypeTestData, Prediction>(model, new PredictionEngineOptions()); 130engine = mlContext.Model.CreatePredictionEngine<TypeTestData, Prediction>(model, options);