Skip to content

Instantly share code, notes, and snippets.

@Belgian-Coder
Created Jan 12, 2019
Embed
What would you like to do?
Ordina-ML.Net_Recommender_System
// 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}");
Console.ReadLine();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment