MCPcopy
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
13def sigmoid(inX):
14 return 1/(1+exp(-inX))
15
16def gradAscent(dataMatIn, classLabels):
17 dataMatrix = mat(dataMatIn)

Callers 4

gradAscentFunction · 0.85
stocGradAscent0Function · 0.85
stocGradAscent1Function · 0.85
classifyVectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected