pub enum PredictorError {
InvalidConfig(String),
DimensionMismatch {
expected: usize,
actual: usize,
},
NotCalibrated,
InvalidRank(usize),
CalibrationFailed(String),
}Expand description
Errors related to predictor operations.
Variants§
InvalidConfig(String)
Invalid predictor configuration.
DimensionMismatch
Dimension mismatch between input and predictor.
NotCalibrated
Predictor not calibrated.
InvalidRank(usize)
Invalid rank for low-rank approximation.
CalibrationFailed(String)
Calibration failed.
Trait Implementations§
Source§impl Debug for PredictorError
impl Debug for PredictorError
Source§impl Display for PredictorError
impl Display for PredictorError
Source§impl Error for PredictorError
impl Error for PredictorError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<PredictorError> for SparseInferenceError
impl From<PredictorError> for SparseInferenceError
Source§fn from(source: PredictorError) -> Self
fn from(source: PredictorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PredictorError
impl RefUnwindSafe for PredictorError
impl Send for PredictorError
impl Sync for PredictorError
impl Unpin for PredictorError
impl UnwindSafe for PredictorError
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