MCPcopy Create free account
hub / github.com/Raibows/MLinRust / new

Method new

src/model/svm.rs:34–38  ·  view source on GitHub ↗

Support Vector Machine for binary classification only supports linear kernel, using SGD to optimize hinge loss update = lambda * (regularization(w) or marginal width or so called structure loss) + 1/batch * Hinge Loss bsz: default will be len(dataset)

(class_num: usize, feature_num: usize, lr: f32,  bsz: Option<usize>, lambda: f32)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected