pub struct Model { /* private fields */ }
Expand description
Safe wrapper around a raw catboost model.
This is the central type of this library and is the entry point for any use of this library.
Implementations
sourceimpl Model
impl Model
sourcepub fn calc_model_prediction(
&self,
float_features: Vec<Vec<f32>>,
cat_features: Vec<Vec<String>>
) -> Result<Vec<f64>>
pub fn calc_model_prediction(
&self,
float_features: Vec<Vec<f32>>,
cat_features: Vec<Vec<String>>
) -> Result<Vec<f64>>
Calculate raw model predictions on float features and string categorical feature values
sourcepub fn get_float_features_count(&self) -> u64
pub fn get_float_features_count(&self) -> u64
Get expected float feature count for model
sourcepub fn get_cat_features_count(&self) -> u64
pub fn get_cat_features_count(&self) -> u64
Get expected categorical feature count for model
sourcepub fn get_tree_count(&self) -> u64
pub fn get_tree_count(&self) -> u64
Get number of trees in model
sourcepub fn get_dimensions_count(&self) -> u64
pub fn get_dimensions_count(&self) -> u64
Get number of dimensions in model
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Model
impl !Send for Model
impl !Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more