#[non_exhaustive]pub enum FactoryError {
InvalidConfig(ConfigError),
IncompatibleArm {
reason: String,
},
}Expand description
Error returned by crate::automl::ModelFactory::create.
The AutoML bandit may sample hyperparameter combinations that are
structurally invalid (e.g. n_heads > d_model, non-divisible group sizes,
or out-of-range floats that slip past the config-space bounds). Rather than
panicking, factories return this error and the racing layer logs a warning
and skips the offending arm.
The enum is #[non_exhaustive] so that future variants (e.g. a
ResourceLimit variant once budget accounting lands) do not become
breaking changes for external users implementing the trait.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidConfig(ConfigError)
A config builder’s validation step failed.
This is the most common case: a sampled float or integer was in the
ConfigSpace bounds but violates a model-level constraint (e.g.
forgetting_factor must be strictly < 1.0, n_steps must be > 0).
IncompatibleArm
Two or more sampled parameters are jointly invalid.
Used when the conflict cannot be expressed as a single-field
ConfigError — for example, n_heads > d_model (neither field is
individually out of range, but their combination is illegal).
Trait Implementations§
Source§impl Debug for FactoryError
impl Debug for FactoryError
Source§impl Display for FactoryError
impl Display for FactoryError
Source§impl Error for FactoryError
impl Error for FactoryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ConfigError> for FactoryError
impl From<ConfigError> for FactoryError
Source§fn from(e: ConfigError) -> Self
fn from(e: ConfigError) -> Self
Source§impl From<IrithyllError> for FactoryError
impl From<IrithyllError> for FactoryError
Source§fn from(e: IrithyllError) -> Self
fn from(e: IrithyllError) -> Self
Auto Trait Implementations§
impl Freeze for FactoryError
impl RefUnwindSafe for FactoryError
impl Send for FactoryError
impl Sync for FactoryError
impl Unpin for FactoryError
impl UnsafeUnpin for FactoryError
impl UnwindSafe for FactoryError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more