October 2018
Intermediate to advanced
172 pages
4h 6m
English
The root mean squared error is given by the following formula:

The preceding formula is very similar to that of the mean squared error, except for the fact that we take the square root of the MSE formula.
In order to compute the RMSE in scikit-learn, we use the following code:
import numpy as npnp.sqrt(metrics.mean_squared_error(target, predictions))
In the preceding code, we use the mean_squared_error() function with the true/real output and the predictions, and then we take the square root of this answer by using the np.sqrt() function from the numpy package.
Compared to the MAE and the MSE, the RMSE is the best ...
Read now
Unlock full access