pub enum ModelError {
EmptyResponse,
InvalidParameter {
parameter: &'static str,
expected: &'static str,
},
DesignSize {
expected_values: usize,
actual_values: usize,
},
DesignRowMismatch {
parameter: &'static str,
expected_rows: usize,
actual_rows: usize,
},
ResponseLength {
expected: usize,
actual: usize,
},
BetaLength {
expected: usize,
actual: usize,
},
GradientLength {
expected: usize,
actual: usize,
},
BlockOverlap {
first: &'static str,
second: &'static str,
},
}Expand description
Ошибки построения и проверки GAMLSS-моделей.
Variants§
EmptyResponse
Response vector пуст.
InvalidParameter
Скалярный параметр модели имеет недопустимое значение.
DesignSize
Dense matrix получила неверное число row-major значений.
Число переданных значений actual_values не совпадает с nrows * ncols.
Fields
DesignRowMismatch
Число строк design matrix не совпадает с длиной response.
Fields
ResponseLength
Длина response не совпадает с ожидаемой.
BetaLength
Длина beta-вектора не совпадает с числом коэффициентов модели.
GradientLength
Длина gradient-вектора не совпадает с числом коэффициентов модели.
BlockOverlap
Два parameter block используют пересекающиеся диапазоны beta.
Trait Implementations§
Source§impl Clone for ModelError
impl Clone for ModelError
Source§fn clone(&self) -> ModelError
fn clone(&self) -> ModelError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelError
impl Debug for ModelError
Source§impl Display for ModelError
impl Display for ModelError
impl Eq for ModelError
Source§impl Error for ModelError
impl Error for ModelError
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 PartialEq for ModelError
impl PartialEq for ModelError
Source§fn eq(&self, other: &ModelError) -> bool
fn eq(&self, other: &ModelError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModelError
Auto Trait Implementations§
impl Freeze for ModelError
impl RefUnwindSafe for ModelError
impl Send for ModelError
impl Sync for ModelError
impl Unpin for ModelError
impl UnsafeUnpin 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