Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
private static void VisualizeTenPredictionsForTheModel(
PredictionModel<BikeSharingDemandSample, BikeSharingDemandPrediction> model,
string testDataLocation)
{
var testData = new BikeSharingDemandsCsvReader().GetDataFromCsv(testDataLocation).ToList();
for (int i = 0; i < 10; i++)
{
var prediction = model.Predict(testData[i]);
Console.WriteLine($"-------------------------------------------------");
Console.WriteLine($"Predicted : {prediction.PredictedCount}");
Console.WriteLine($"Actual: {testData[i].Count}");
Console.WriteLine($"-------------------------------------------------");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment