pub enum FitError {
Grid,
WrongSplit {
case: String,
},
UnknownCase {
case: String,
},
Empty,
NonFinite {
case: String,
},
Inconsistent {
case: String,
},
ZeroSupport {
case: String,
},
NoFiniteLoss,
Label {
case: String,
},
Dataset(DatasetError),
DuplicateSample {
case: String,
},
Loss,
}Expand description
Why nothing was fitted.
Variants§
Grid
No grid, or one the configuration refuses.
WrongSplit
A sample from a split other than calibration.
UnknownCase
Empty
No labeled sample to fit.
NonFinite
Inconsistent
The raw output does not answer exactly the target’s options.
ZeroSupport
A distribution with no mass on the true label: no temperature helps.
NoFiniteLoss
Every temperature gave an infinite loss.
Label
A label that is not an option.
Dataset(DatasetError)
The manifest itself is refused (leakage, duplicates, provenance).
DuplicateSample
A case sampled twice would weigh twice.
Loss
The chosen loss has no Decimal form.
Trait Implementations§
impl Eq for FitError
Source§impl Error for FitError
impl Error for FitError
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()
impl StructuralPartialEq for FitError
Auto Trait Implementations§
impl Freeze for FitError
impl RefUnwindSafe for FitError
impl Send for FitError
impl Sync for FitError
impl Unpin for FitError
impl UnsafeUnpin for FitError
impl UnwindSafe for FitError
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