pub struct BetaPrior {
pub alpha: f32,
pub beta: f32,
}Expand description
Per-class Beta-distribution prior.
Fields§
§alpha: f32Alpha parameter (pseudo-success count).
beta: f32Beta parameter (pseudo-failure count).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BetaPrior
impl<'de> Deserialize<'de> for BetaPrior
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BetaPrior
impl RefUnwindSafe for BetaPrior
impl Send for BetaPrior
impl Sync for BetaPrior
impl Unpin for BetaPrior
impl UnsafeUnpin for BetaPrior
impl UnwindSafe for BetaPrior
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