rmse in scikit learn code example
Example 1: calculate root mean square error python
def rmse(predictions, targets):
return np.sqrt(((predictions - targets) ** 2).mean())
Example 2: sklearn rmse
from sklearn.metrics import mean_squared_error
rms = mean_squared_error(y_actual, y_predicted, squared=False)