【问题标题】:Sigmoid tensorflow computational graphSigmoid 张量流计算图
【发布时间】:2019-07-13 07:12:30
【问题描述】:

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

【问题讨论】:

    标签: python tensorflow neural-network sigmoid


    【解决方案1】:

    看线:

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

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

    你可能想要:

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

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-01-19
    • 1970-01-01
    • 1970-01-01
    • 2023-01-11
    • 2016-12-05
    • 2018-03-21
    • 1970-01-01
    相关资源
    最近更新 更多