【发布时间】:2016-05-16 21:06:16
【问题描述】:
我试过了
Module module1
<System.Runtime.CompilerServices.Extension()> _
Public Function sigmoid(ByRef x As Integer, ByVal y As Integer) As Integer
y = 1 / (1 + Math.Exp(-x))
Return y
Return Nothing
End Function
End Module
当我想调用它时,我会使用
y3 = (x1 * w13 + x2 * w23 - seta3).sigmoid
我只想将 x 设为 (x1 * w13 + x2 * w23 - seta3) 并得到它的y值 它与神经网络有关 但我总是出错..怎么了??
【问题讨论】: