pub struct RTrees { /* private fields */ }
Expand description
Implementations§
source§impl RTrees
impl RTrees
sourcepub fn create() -> Result<Ptr<RTrees>>
pub fn create() -> Result<Ptr<RTrees>>
Creates the empty model. Use StatModel::train to train the model, StatModel::train to create and train the model, Algorithm::load to load the pre-trained model.
sourcepub fn load(filepath: &str, node_name: &str) -> Result<Ptr<RTrees>>
pub fn load(filepath: &str, node_name: &str) -> Result<Ptr<RTrees>>
Loads and creates a serialized RTree from a file
Use RTree::save to serialize and store an RTree to disk. Load the RTree 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 RTree
- nodeName: name of node containing the classifier
C++ default parameters
- node_name: String()
sourcepub fn load_def(filepath: &str) -> Result<Ptr<RTrees>>
pub fn load_def(filepath: &str) -> Result<Ptr<RTrees>>
Loads and creates a serialized RTree from a file
Use RTree::save to serialize and store an RTree to disk. Load the RTree 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 RTree
- nodeName: name of node containing the classifier
Note
This alternative version of RTrees::load function uses the following default values for its arguments:
- node_name: String()