pub struct EM { /* private fields */ }
Expand description
Implementations§
source§impl EM
impl EM
sourcepub fn create() -> Result<Ptr<EM>>
pub fn create() -> Result<Ptr<EM>>
Creates empty %EM model. The model should be trained then using StatModel::train(traindata, flags) method. Alternatively, you can use one of the EM::train* methods or load it from file using Algorithm::load<EM>(filename).
sourcepub fn load(filepath: &str, node_name: &str) -> Result<Ptr<EM>>
pub fn load(filepath: &str, node_name: &str) -> Result<Ptr<EM>>
Loads and creates a serialized EM from a file
Use EM::save to serialize and store an EM to disk. Load the EM 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 EM
- nodeName: name of node containing the classifier
C++ default parameters
- node_name: String()
sourcepub fn load_def(filepath: &str) -> Result<Ptr<EM>>
pub fn load_def(filepath: &str) -> Result<Ptr<EM>>
Loads and creates a serialized EM from a file
Use EM::save to serialize and store an EM to disk. Load the EM 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 EM
- nodeName: name of node containing the classifier
Note
This alternative version of EM::load function uses the following default values for its arguments:
- node_name: String()