pub enum ErrorKind {
    InvalidParameters,
    InvalidData,
    InvalidState,
    UntrainedModel,
    LinearAlgebra,
}
Expand description

Types of errors produced in the learning module.

List intended to grow and so you should be wary of matching against explicitly.

Variants

InvalidParameters

The parameters used to define the model are not valid.

InvalidData

The input data to the model is not valid.

InvalidState

The action could not be carried out as the model was in an invalid state.

UntrainedModel

The model has not been trained

LinearAlgebra

Linear algebra related error

Trait Implementations

Formats the value using the given formatter. 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.