Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lawlite19/MachineLearning_Python
/ sigmoidGradient
Function
sigmoidGradient
NeuralNetwok/NeuralNetwork.py:186–188 ·
view source on GitHub ↗
(z)
Source
from the content-addressed store, hash-verified
184
185
# S型函数导数
186
def
sigmoidGradient(z):
187
g = sigmoid(z)*(1-sigmoid(z))
188
return
g
189
190
# 随机初始化权重theta
191
def
randInitializeWeights(L_in,L_out):
Callers
1
nnGradient
Function · 0.85
Calls
1
sigmoid
Function · 0.70
Tested by
no test coverage detected