sách gpt4 ai đã đi

Đại tràng sigma cứng được định nghĩa như thế nào?

In lại 作者:行者123 更新时间:2023-12-02 00:38:27 33 4
mua khóa gpt4 Nike

我正在使用 keras 开发深度网络。有一个激活“硬 sigmoid”。它的数学定义是什么?

我知道什么是 Sigmoid。有人在Quora上问了类似的问题:https://www.quora.com/What-is-hard-sigmoid-in-artificial-neural-networks-Why-is-it-faster-than-standard-sigmoid-Are-there-any-disadvantages-over-the-standard-sigmoid

但是我在任何地方都找不到精确的数学定义?

1 Câu trả lời

由于 Keras 同时支持 Tensorflow 和 Theano,因此每个后端的确切实现可能有所不同 - 我将仅介绍 Theano。对于 Theano 后端 Keras 使用 T.nnet.hard_sigmoid ,依次为 linearly approximated standard sigmoid :

slope = tensor.constant(0.2, dtype=out_dtype)
shift = tensor.constant(0.5, dtype=out_dtype)
x = (x * slope) + shift
x = tensor.clip(x, 0, 1)

即它是:max(0, min(1, x*0.2 + 0.5))

关于math - 硬 Sigmoid 是如何定义的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35411194/

33 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com