def get_RMSE(results, true_params):
 diff = (results.params.reshape(true_params.shape) - true_params)
 raw_RMSE = sp.sqrt((diff ** 2).sum())
 param_norm = sp.sqrt((true_params ** 2).sum())
 return (raw_RMSE / param_norm)

def get_RMSE ( results , true_params ) : diff = ( results . params . reshape ( true_params . shape ) - true_params ) raw_RMSE = sp . sqrt ( ( diff ** 2 ) . sum ( ) ) param_norm = sp . sqrt ( ( true_params ** 2 ) . sum ( ) ) return ( raw_RMSE / param_norm )
gets the root mean square error .