Created
June 23, 2018 13:08
-
-
Save NMZivkovic/70f6f938b35923fcd223c1ee1724d95e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void PrintMetrics(string name, RegressionMetrics metrics) | |
{ | |
Console.WriteLine($"*************************************************"); | |
Console.WriteLine($"* Metrics for {name} "); | |
Console.WriteLine($"*------------------------------------------------"); | |
Console.WriteLine($"* R2 Score: {metrics.RSquared:0.##}"); | |
Console.WriteLine($"* Absolute loss: {metrics.L1:#.##}"); | |
Console.WriteLine($"* Squared loss: {metrics.L2:#.##}"); | |
Console.WriteLine($"* RMS loss: {metrics.Rms:#.##}"); | |
Console.WriteLine($"*************************************************"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment