pub trait NormalBayesClassifier: NormalBayesClassifierConst + StatModel {
    fn as_raw_mut_NormalBayesClassifier(&mut self) -> *mut c_void;
}

Required Methods

Implementations

Creates empty model Use StatModel::train to train the model after creation.

Loads and creates a serialized NormalBayesClassifier from a file

Use NormalBayesClassifier::save to serialize and store an NormalBayesClassifier to disk. Load the NormalBayesClassifier from this file again, by calling this function with the path to the file. Optionally specify the node for the file containing the classifier

Parameters
  • filepath: path to serialized NormalBayesClassifier
  • nodeName: name of node containing the classifier
C++ default parameters
  • node_name: String()

Implementors