Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jack-Cherish/Machine-Learning
/ selectJrand
Function
selectJrand
SVM/svm-simple.py:50–54 ·
view source on GitHub ↗
(i, m)
Source
from the content-addressed store, hash-verified
48
2017-09-21
49
""
"
50
def
selectJrand(i, m):
51
j = i
#选择一个不等于i的j
52
while
(j == i):
53
j = int(random.uniform(0, m))
54
return
j
55
56
""
"
57
函数说明:修剪alpha
Callers
1
smoSimple
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected