pub struct MixtureLinkSpec {
pub components: Vec<LinkComponent>,
pub initial_rho: Array1<f64>,
}Expand description
User-facing configuration for a blended inverse link.
Fields§
§components: Vec<LinkComponent>§initial_rho: Array1<f64>Free logits for components [0..K-2]. The final component logit is fixed at 0.
Trait Implementations§
Source§impl Clone for MixtureLinkSpec
impl Clone for MixtureLinkSpec
Source§fn clone(&self) -> MixtureLinkSpec
fn clone(&self) -> MixtureLinkSpec
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 MixtureLinkSpec
impl Debug for MixtureLinkSpec
Source§impl<'de> Deserialize<'de> for MixtureLinkSpec
impl<'de> Deserialize<'de> for MixtureLinkSpec
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
Source§impl PartialEq for MixtureLinkSpec
impl PartialEq for MixtureLinkSpec
Source§fn eq(&self, other: &MixtureLinkSpec) -> bool
fn eq(&self, other: &MixtureLinkSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MixtureLinkSpec
impl Serialize for MixtureLinkSpec
impl StructuralPartialEq for MixtureLinkSpec
Auto Trait Implementations§
impl Freeze for MixtureLinkSpec
impl RefUnwindSafe for MixtureLinkSpec
impl Send for MixtureLinkSpec
impl Sync for MixtureLinkSpec
impl Unpin for MixtureLinkSpec
impl UnsafeUnpin for MixtureLinkSpec
impl UnwindSafe for MixtureLinkSpec
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