MCPcopy Index your code
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / clipAlpha

Function clipAlpha

SVM/SVM.py:19–24  ·  view source on GitHub ↗
(aj, H, L)

Source from the content-addressed store, hash-verified

17 return j
18
19def clipAlpha(aj, H, L):
20 if aj > H:
21 aj = H
22 if L > aj:
23 aj = L
24 return aj
25
26def smoSimple(dataMatIn, classLabels, C, toler, maxIter):
27 dataMatrix = mat(dataMatIn); labelMat = mat(classLabels).transpose()

Callers 1

smoSimpleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected