KerasRegressor 弃用警告

问题描述 投票:0回答:0

我在 google colab 中创建 KerasRegressor 对象后收到此警告。

<ipython-input-216-4b2bcf00bc05>:2: DeprecationWarning: KerasRegressor is deprecated, use Sci-Keras (https://github.com/adriangb/scikeras) instead. See https://www.adriangb.com/scikeras/stable/migration.html for help migrating.
model = KerasRegressor(build_fn=create_cnn_model, verbose=0)

我已经安装了 scikeras 并导入了 KerasRegressor (

from scikeras.wrappers import KerasRegressor
),但都是徒劳的。那么,如何解决这个问题?

machine-learning keras deep-learning
© www.soinside.com 2019 - 2024. All rights reserved.