我在这做错了什么?方程和数据非常简单。
看看行:
yhat = c/1+tf.math.exp(-x*p)
这相当于y = c + e ^( - x * p),它不是一个sigmoid,它是一个指数加常数。
你可能想要:
yhat = c/(1+tf.math.exp(-x*p))