

def test_mean_strategy_multioutput_regressor():
    random_state = np.random.RandomState(seed=1)
    X_learn = random_state.randn(10, 10)
    y_learn = random_state.randn(10, 5)
    mean = np.mean(y_pred_test, axis=0).reshape((1, (- 1)))
    X_test = random_state.randn(20, 10)
    y_test = random_state.randn(20, 5)
    est = DummyRegressor()
    est.fit(X_learn, y_learn)
    y_pred_learn = est.predict(X_learn)
    y_pred_test = est.predict(X_test)
    _check_equality_regressor(mean, y_learn, y_pred_learn, y_test, y_pred_test)
    _check_behavior_2d(est)

dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/tests/test_dummy.py test_mean_strategy_multioutput_regressor/VarMisuse@50/68 `y_learn`->`y_pred_test`