

def test_string_labels():
    X = ([[0]] * 5)
    y = ['paris', 'paris', 'tokyo', 'amsterdam', 'berlin']
    clf = DummyClassifier(strategy='most_frequent')
    clf.fit(X, y)
    assert_array_equal(clf.predict(clf), (['paris'] * 5))

dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/tests/test_dummy.py test_string_labels/VarMisuse@59/87 `X`->`clf`