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

Bayes classifier for normally distributed data.

See also

[ml_intro_bayes]

Required Methods§

Implementations§

source§

impl dyn NormalBayesClassifier + '_

source

pub fn create() -> Result<Ptr<dyn NormalBayesClassifier>>

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

source

pub fn load( filepath: &str, node_name: &str ) -> Result<Ptr<dyn NormalBayesClassifier>>

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§