Skip to content

Instantly share code, notes, and snippets.

Created Jan 12, 2019
What would you like to do?
// Use the test data to evaluate the difference between the real value and the prediction
var prediction = model.Transform(testData);
var metrics = mlContext.Regression.Evaluate(prediction);
Console.WriteLine("Model Metrics:");
Console.WriteLine($"RMS: {metrics.Rms}");
Console.WriteLine($"R^2: {metrics.RSquared}");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment