pub enum ModelError {
InvalidState { /* private fields */ },
SerializationError { /* private fields */ },
PredictionError { /* private fields */ },
IllegalArgument { /* private fields */ },
UnknownError { /* private fields */ },
}
Expand description
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.
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.
PredictionError
The model couldn’t be applied to the test/prediction data.
IllegalArgument
One or more of the arguments passed to the API call are invalid.
UnknownError
The model encountered an unexpected internal error.
Trait Implementations§
Source§impl Debug for ModelError
impl Debug for ModelError
Source§impl Display for ModelError
impl Display for ModelError
Source§impl Fail for ModelError
impl Fail for ModelError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreAuto Trait Implementations§
impl Freeze for ModelError
impl RefUnwindSafe for ModelError
impl Send for ModelError
impl Sync for ModelError
impl Unpin for ModelError
impl UnwindSafe for ModelError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more