If you want to get the root mean squared error using sklearn, pass squared=False to sklearn’s mean_squared_error method.
squared=False
mean_squared_error
The code above shows an example of this method.
Link to the source code.