

def test_classification_sample_weight():
    X = [[0], [0], [1]]
    y = [0, 1, 0]
    sample_weight = [0.1, 1.0, 0.1]
    clf = DummyClassifier().fit(X, y, sample_weight)
    assert_array_almost_equal(y.class_prior_, [(0.2 / 1.2), (1.0 / 1.2)])

dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/tests/test_dummy.py test_classification_sample_weight/VarMisuse@62/74 `clf`->`y`