Sigmoid tensorflow计算图

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

我在这做错了什么?方程和数据非常简单。

python tensorflow neural-network sigmoid
1个回答
0
投票

看看行:

 yhat = c/1+tf.math.exp(-x*p)

这相当于y = c + e ^( - x * p),它不是一个sigmoid,它是一个指数加常数。

你可能想要:

yhat = c/(1+tf.math.exp(-x*p))
© www.soinside.com 2019 - 2024. All rights reserved.