Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Jack-Lee-Hiter/AlgorithmsByPython
/ sigmoid
Function
sigmoid
Logistic regression/Logistic.py:13–14 ·
view source on GitHub ↗
(inX)
Source
from the content-addressed store, hash-verified
11
return
dataMat, labelMat
12
13
def
sigmoid(inX):
14
return
1/(1+exp(-inX))
15
16
def
gradAscent(dataMatIn, classLabels):
17
dataMatrix = mat(dataMatIn)
Callers
4
gradAscent
Function · 0.85
stocGradAscent0
Function · 0.85
stocGradAscent1
Function · 0.85
classifyVector
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected