Skip to main content

load_model

Function load_model 

Source
pub fn load_model(json: &str) -> Result<DynSGBT>
Expand description

Load an SGBT model from a JSON string.

Returns a DynSGBT (SGBT<Box<dyn Loss>>) because the concrete loss type is determined at runtime from the serialized tag.

ยงErrors

Returns IrithyllError::Serialization if deserialization fails.