pub enum FormulaError {
Show 13 variants
UnknownColumn(String),
ColumnLength {
name: String,
expected: usize,
actual: usize,
},
UnsupportedColumnType {
name: String,
requested: &'static str,
},
NonFiniteValue {
name: String,
row: usize,
},
InvalidWeight {
name: String,
row: usize,
},
InvalidResponseDomain {
name: String,
family: &'static str,
row: usize,
},
UnknownCategoryLevel {
name: String,
level: String,
row: usize,
},
MissingResponse,
EmptyData,
DuplicateParameter(&'static str),
Spline(SplineError),
Fourier(FourierError),
Model(ModelError),
}Expand description
Errors returned by the typed formula/builder layer.
Variants§
UnknownColumn(String)
Requested column is not available in the data view.
ColumnLength
A column returned by crate::DataView has a length different from
crate::DataView::nrows.
Fields
UnsupportedColumnType
Requested column type is not supported by this data view.
NonFiniteValue
Numeric input contains a non-finite value.
InvalidWeight
Observation weight is not finite or is negative.
InvalidResponseDomain
Response value is outside the family domain.
UnknownCategoryLevel
Prediction data contains a categorical level not seen during training.
MissingResponse
The model spec did not include a response column.
EmptyData
The data view has no rows.
DuplicateParameter(&'static str)
A model parameter was configured more than once.
Spline(SplineError)
Spline term construction failed.
Fourier(FourierError)
Fourier term construction failed.
Model(ModelError)
Compiled core model validation failed.
Trait Implementations§
Source§impl Clone for FormulaError
impl Clone for FormulaError
Source§fn clone(&self) -> FormulaError
fn clone(&self) -> FormulaError
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 FormulaError
impl Debug for FormulaError
Source§impl Display for FormulaError
impl Display for FormulaError
Source§impl Error for FormulaError
impl Error for FormulaError
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<FourierError> for FormulaError
impl From<FourierError> for FormulaError
Source§fn from(source: FourierError) -> Self
fn from(source: FourierError) -> Self
Converts to this type from the input type.
Source§impl From<ModelError> for FormulaError
impl From<ModelError> for FormulaError
Source§fn from(source: ModelError) -> Self
fn from(source: ModelError) -> Self
Converts to this type from the input type.
Source§impl From<SplineError> for FormulaError
impl From<SplineError> for FormulaError
Source§fn from(source: SplineError) -> Self
fn from(source: SplineError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FormulaError
impl PartialEq for FormulaError
Source§fn eq(&self, other: &FormulaError) -> bool
fn eq(&self, other: &FormulaError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FormulaError
Auto Trait Implementations§
impl Freeze for FormulaError
impl RefUnwindSafe for FormulaError
impl Send for FormulaError
impl Sync for FormulaError
impl Unpin for FormulaError
impl UnsafeUnpin for FormulaError
impl UnwindSafe for FormulaError
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