pub enum GuideError {
UnsupportedDiscreteLatent {
addr: Address,
value_type: &'static str,
},
}Expand description
Error returned when a guide cannot be constructed for a model latent.
The mean-field guide families implemented here (VariationalParam) are all
continuous. A discrete latent (Bool / U64 / Usize / I64) has no continuous
variational factor, so guide construction returns this typed error instead of
silently emitting an f64 factor (which would later panic when scored against the
discrete model site) — see finding FG-17.
Variants§
UnsupportedDiscreteLatent
A discrete latent was encountered where only continuous latents are supported.
Trait Implementations§
Source§impl Clone for GuideError
impl Clone for GuideError
Source§fn clone(&self) -> GuideError
fn clone(&self) -> GuideError
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 GuideError
impl Debug for GuideError
Source§impl Display for GuideError
impl Display for GuideError
impl Eq for GuideError
Source§impl Error for GuideError
impl Error for GuideError
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 GuideError
impl PartialEq for GuideError
impl StructuralPartialEq for GuideError
Auto Trait Implementations§
impl Freeze for GuideError
impl RefUnwindSafe for GuideError
impl Send for GuideError
impl Sync for GuideError
impl Unpin for GuideError
impl UnsafeUnpin for GuideError
impl UnwindSafe for GuideError
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