【发布时间】:2019-11-09 01:15:19
【问题描述】:
我正在使用 Keras 库解决我的神经网络错误。在使用 Dropout 时,我收到了以下 3 个警告
WARNING:tensorflow: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version. Instructions for updating: Colocations handled automatically by placer.
WARNING:tensorflow: 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`.
WARNING:tensorflow: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Use tf.cast instead.
这是我如何在模型中使用 dropout
model.add(Dropout(rate=0.2))
虽然这是一个警告,但我很担心。以前,当我使用 dropout 时,我收到了另一个警告,如下所示
model.add(Dropout(0.2))
我应该怎么做才能消除这些警告?谁能帮帮我
【问题讨论】:
标签: python-3.x keras neural-network deep-learning tf.keras