MCPcopy Create free account
hub / github.com/datastream/libsvm / get_C

Method get_C

svm.go:322–330  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

320}
321
322func (this *Solver) get_C(i int) float64 {
323 var rst float64
324 if this.y[i] > 0 {
325 rst = this.Cp
326 } else {
327 rst = this.Cn
328 }
329 return rst
330}
331
332func (this *Solver) update_alpha_status(i int) {
333 if this.alpha[i] >= this.get_C(i) {

Callers 2

update_alpha_statusMethod · 0.95
SolveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected