def _root_mean_square_error ( y , y_pred , w ) : return np . sqrt ( np . average ( ( ( y_pred - y ) ** 2 ) , weights = w ) )
how to take the squareroot without squareroot function in python
Calculate the root mean square error .
def _root_mean_square_error(y, y_pred, w):
    """Calculate the root mean square error."""
    return np.sqrt(np.average(((y_pred - y) ** 2), weights=w))