ML.NET (Microsoft.ML) - 03: Create a C# Project Setup and Prepare Data with Classes
Saturday, June 6, 2026 |
5 views
Create New Console Project using C#.NET 10
Add Nuget Packages Microsoft.ML
(https://www.nuget.org/packages/Microsoft.ML/6.0.0-preview.26160.2)
Create New Model PizzInfo
class PizzInfo
{
public float OvenTemperature { get; set; }
public float CookingTime { get; set; }
}
Create New Model PredictedCooking
class PredictedCooking {
public float Score { get; set; }
}
Create DataView
var data = new[]
{
new PizzInfo(){OvenTemperature=180,CookingTime=15},
new PizzInfo(){OvenTemperature=200,CookingTime=12},
new PizzInfo(){OvenTemperature=220,CookingTime=18},
new PizzInfo(){OvenTemperature=250,CookingTime=8}
};
For More Details : Youtube Video Link :
https://youtube.com/live/HXEhEb56kMs
Post Comments
Related Post
ML.NET (Microsoft.ML) - 05: How to Make a Prediction with the Prediction Engine
ML.NET (Microsoft.ML) - 01: Introduction to ML.NET in C#
ML.NET (Microsoft.ML) - 07: Real-World Revenue Prediction with ML.NET
ML.NET (Microsoft.ML) - 04: Train a Linear Regression Model in C#
ML.NET (Microsoft.ML) - 06: How Fast is Training? Measure Model Training Time with Stopwatch
