Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/Jack-Lee-Hiter/AlgorithmsByPython
/ selectJrand
Function
selectJrand
SVM/SVM.py:13–17 ·
view source on GitHub ↗
(i, m)
Source
from the content-addressed store, hash-verified
11
12
# SMO算法随机选择两个alpha的下标
13
def
selectJrand(i, m):
14
j=i
15
while
(j==i):
16
j = int(random.uniform(0, m))
17
return
j
18
19
def
clipAlpha(aj, H, L):
20
if
aj > H:
Callers
1
smoSimple
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected