ml_DTrees_create
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
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.