

def check_regressor_attributes(name):
    r = FOREST_REGRESSORS[name](random_state=0)
    assert_false(hasattr(r, 'classes_'))
    assert_false(hasattr(r, 'n_classes_'))
    r.fit([[1, 2, 3], [4, 5, 6]], [1, 2])
    assert_false(hasattr(r, 'classes_'))
    assert_false(hasattr(r, 'n_classes_'))

dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/ensemble/tests/test_forest.py check_regressor_attributes/original