MCPcopy Create free account
hub / github.com/Jack-Cherish/Machine-Learning / clipAlpha

Function clipAlpha

SVM/svmMLiA.py:146–160  ·  view source on GitHub ↗

修剪alpha_j Parameters: aj - alpha_j的值 H - alpha上限 L - alpha下限 Returns: aj - 修剪后的alpah_j的值

(aj,H,L)

Source from the content-addressed store, hash-verified

144
145
146def clipAlpha(aj,H,L):
147 """
148 修剪alpha_j
149 Parameters:
150 aj - alpha_j的值
151 H - alpha上限
152 L - alpha下限
153 Returns:
154 aj - 修剪后的alpah_j的值
155 """
156 if aj > H:
157 aj = H
158 if L > aj:
159 aj = L
160 return aj
161
162def innerL(i, oS):
163 """

Callers 1

innerLFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected