To calculate the RMSE, you need to follow these steps:
Here is an example:
>>> import numpy as np>>> tru = np.asarray([1,2,3,4,5])>>> preds = np.asarray([11,12,13,14,15])>>> rmse = np.sqrt(np.sum(np.square(tru - preds))/np.size(tru))>>> rmse10.0