assert_almost_equal(Y_proba.sum(axis=1), 1.0)
// predict assigns a label if the probability that the// sample has the label is greater than 0.5.
pred = np.array([l.argmax() for l in Y_proba])assertnot(pred - Y_pred).any()
def test_ovr_multilabel_decision_function():
After Change
assert_almost_equal(Y_proba.sum(axis=1), 1.0)
// predict assigns a label if the probability that the// sample has the label with the greatest predictive probability.pred = Y_proba.argmax(axis=1)assertnot(pred - Y_pred).any()
def test_ovr_multilabel_decision_function():