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

Load a model from a file.

Load a model from a buffer.

Calculate raw model predictions on float features and string categorical feature values

Get expected float feature count for model

Get expected categorical feature count for model

Get number of trees in model

Get number of dimensions in model

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.