Skip to content

ml_DTrees_create

mlfunctionOpenCV 5.0.0
import { ml_DTrees_create } from '@banou/opencv-wasm'

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

ARGUMENTSSee signature below
FUNCTIONml_DTrees_create
RETURN TYPEml_DTrees | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Creates the empty model

The static method creates empty decision tree with the specified parameters. It should be then
trained using train method (see StatModel::train). Alternatively, you can load the model from
file using Algorithm::load\<DTrees\>(filename).
ml_DTrees_create(): ml_DTrees | null;
Returns

The ml_DTrees | null result.

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.