scores = check_array(scores)
if estimator_weight is not None:
estimator_weight = column_or_1d(estimator_weight).reshape(1, -1)
assert_equal(scores.shape[1], estimator_weight.shape[1])
// (d1*w1 + d2*w2 + ...+ dn*wn)/(w1+w2+...+wn)
// generated weighted scores
After Change
scores = check_array(scores)
if estimator_weights is not None:
if estimator_weights.shape != (1, scores.shape[1]):
raise ValueError(
"Bad input shape of estimator_weight: (1, {score_shape}),"
"and {estimator_weights} received".format(