def test_multioutput_regression():
"""Test whether multi-output regression works as expected."""
X, y = make_regression(n_samples=200, n_targets=5,
random_state=random_state)
for activation in ACTIVATION_TYPES:
elm = ELMRegressor(n_hidden=300, activation=activation,
random_state=random_state)
elm.fit(X, y)
assert_greater(elm.score(X, y), 0.95)
test_elm.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录