NormalBayesClassifier.loadFromString constructor
Loads a model from the content of a file saved with save (e.g. a Flutter asset).
objname is the name of the model node, the first top-level node when empty.
Implementation
factory NormalBayesClassifier.loadFromString(String strModel, {String objname = ''}) => using(
(arena) => NormalBayesClassifier._make(
(p) => cml.cv_ml_NormalBayesClassifier_loadFromString(
strModel.toNativeUtf8(allocator: arena).cast(),
objname.toNativeUtf8(allocator: arena).cast(),
p,
),
),
);