Model validations 

Now that you have built and trained regression models for this chapter's foreign exchange rate forecast project, let's start looking into how our models performed. In this section, we are going to discuss two commonly used basic metrics, RMSE, and R2, and a diagnostic plot, actual or observed values versus predicted values. Before we delve into those metrics and a diagnostic plot, let's first briefly discuss how to extract coefficient and intercept values from the linear regression model.

The following code snippet shows you how to extract coefficients and the intercept from the MultipleLinearRegression object:

Console.WriteLine("\n* Linear Regression Coefficients:");for (int i = 0; i < features.Length; i++){ Console.WriteLine("\t{0}: ...

Get C# Machine Learning Projects now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.