Function load_model
Source pub fn load_model(path: impl AsRef<Path>) -> Result<Model>
Expand description
Load a model from a file
§Arguments
The format is automatically detected from the file extension.
§Example
use entrenar::io::load_model;
let model = load_model("model.json").expect("failed to load model");
println!("Loaded model: {}", model.metadata.name);