我正在尝试添加一个 dropout 层,我收到了这个警告
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:3445: calling dropout (from tensorflow.python.ops.nn_ops) with keep_prob is deprecated and will be removed in a future version.
Instructions for updating:
Please use `rate` instead of `keep_prob`. Rate should be set to `rate = 1 - keep_prob`.
我不明白我使用的是 rate 还是 keep_prob。我在dropout层的实现如下:
x = Dropout(rate=0.20)(x)
我使用 tensorflow 后端导入 keras。版本是:
Keras 2.2.4
张量流 1.13.1
如何检查 0.20 是否用作 rate 或 keep_prob?
提前致谢