[][src]Enum liblinear::ModelError

pub enum ModelError {
    InvalidState { /* fields omitted */ },
    SerializationError { /* fields omitted */ },
    PredictionError { /* fields omitted */ },
    IllegalArgument { /* fields omitted */ },
    UnknownError { /* fields omitted */ },
}

Errors raised by a model's API call.

Variants

InvalidState

The model's internal state is invalid.

This can occur if the model's parameters or input data were not initialized correctly.

Fields of InvalidState

SerializationError

The model cannot be saved to/loaded from disk.

This can occur if the serialized data was not found, or if the model is in an indeterminate state after deserialization.

Fields of SerializationError

PredictionError

The model couldn't be applied to the test/prediction data.

Fields of PredictionError

IllegalArgument

One or more of the arguments passed to the API call are invalid.

Fields of IllegalArgument

UnknownError

The model encountered an unexpected internal error.

Fields of UnknownError

Trait Implementations

impl Display for ModelError[src]

impl Debug for ModelError[src]

impl Fail for ModelError[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]