def r2_score(pred, true, sample_weight=None, multioutput='uniform_average'):
 return R2_score(sample_weight=sample_weight, multioutput=multioutput)(pred, true)

def r2_score ( pred , true , sample_weight = None , multioutput = 'uniform_average' ) : return R2_score ( sample_weight = sample_weight , multioutput = multioutput ) ( pred , true )
computes r^2 regression score function .