

def _check_equality_regressor(statistic, y_learn, y_pred_learn, y_test, y_pred_test):
    assert_array_equal(np.tile(statistic, (y_learn.shape[0], 1)), y_pred_learn)
    assert_array_equal(np.tile(statistic, (y_test.shape[0], 1)), y_pred_test)

dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/tests/test_dummy.py _check_equality_regressor/original