Skip to content

ml_SVMSGD_MarginType

mlclassOpenCV 5.0.0
import { ml_SVMSGD_MarginType } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSml_SVMSGD_MarginType
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

ml_SVMSGD_MarginType: Margin type.

Constructors and members

static SOFT_MARGIN

General case, suits to the case of non-linearly separable sets, allows outliers.

SOFT_MARGIN: ml_SVMSGD_MarginTypeValue<0>,

static HARD_MARGIN

More accurate for the case of linearly separable sets.

HARD_MARGIN: ml_SVMSGD_MarginTypeValue<1>

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.