Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jack-Cherish/Machine-Learning
/ classifyVector
Function
classifyVector
Logistic/colicLogRegres.py:147–150 ·
view source on GitHub ↗
(inX, weights)
Source
from the content-addressed store, hash-verified
145
2017-09-05
146
""
"
147
def
classifyVector(inX, weights):
148
prob = sigmoid(sum(inX*weights))
149
if
prob > 0.5:
return
1.0
150
else
:
return
0.0
151
152
""
"
153
函数说明:使用Sklearn构建Logistic回归分类器
Callers
1
colicTest
Function · 0.85
Calls
1
sigmoid
Function · 0.70
Tested by
no test coverage detected