#[non_exhaustive]pub enum MixedCPD {
Categorical(CatCPD),
Gaussian(GaussCPD),
}Expand description
The parameters of a mixed CPD.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl AbsDiffEq for MixedCPD
impl AbsDiffEq for MixedCPD
Source§fn default_epsilon() -> Self::Epsilon
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
Source§fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
A test for equality that uses the absolute difference to compute the approximate
equality of two numbers.
Source§fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of
AbsDiffEq::abs_diff_eq.Source§impl CPD for MixedCPD
impl CPD for MixedCPD
Source§type Sample = MixedSample
type Sample = MixedSample
The type of the samples.
Source§type Support = MixedSupport
type Support = MixedSupport
The type of the support metadata (variable ranges / state sets).
Source§type Parameters = MixedCPD
type Parameters = MixedCPD
The type of the parameters.
Source§type Statistics = MixedCPDS
type Statistics = MixedCPDS
The type of the sufficient statistics.
Source§fn conditioning_labels(&self) -> &Labels
fn conditioning_labels(&self) -> &Labels
Returns the labels of the conditioned variables. Read more
Source§fn support(&self) -> Cow<'_, Self::Support>
fn support(&self) -> Cow<'_, Self::Support>
Returns the support metadata of the CPD. Read more
Source§fn conditioning_support(&self) -> Cow<'_, Self::Support>
fn conditioning_support(&self) -> Cow<'_, Self::Support>
Returns the conditioning support metadata of the CPD. Read more
Source§fn parameters(&self) -> &Self::Parameters
fn parameters(&self) -> &Self::Parameters
Returns the parameters. Read more
Source§fn parameters_size(&self) -> usize
fn parameters_size(&self) -> usize
Returns the parameters size. Read more
Source§fn fitted_statistics(&self) -> Option<Cow<'_, Self::Statistics>>
fn fitted_statistics(&self) -> Option<Cow<'_, Self::Statistics>>
Returns the sufficient statistics, if any. Read more
Source§fn fitted_log_likelihood(&self) -> Option<f64>
fn fitted_log_likelihood(&self) -> Option<f64>
Returns the log-likelihood of the fitted dataset, if any. Read more
Source§impl CPDEstimator<MixedCPD> for BE<'_, MixedTable, ()>
impl CPDEstimator<MixedCPD> for BE<'_, MixedTable, ()>
Source§impl CPDEstimator<MixedCPD> for BE<'_, MixedIncTable, ()>
impl CPDEstimator<MixedCPD> for BE<'_, MixedIncTable, ()>
Source§impl CPDEstimator<MixedCPD> for BE<'_, MixedWtdTable, ()>
impl CPDEstimator<MixedCPD> for BE<'_, MixedWtdTable, ()>
Source§impl CPDEstimator<MixedCPD> for MLE<'_, MixedTable>
impl CPDEstimator<MixedCPD> for MLE<'_, MixedTable>
Source§impl CPDEstimator<MixedCPD> for MLE<'_, MixedIncTable>
impl CPDEstimator<MixedCPD> for MLE<'_, MixedIncTable>
Source§impl CPDEstimator<MixedCPD> for MLE<'_, MixedWtdTable>
impl CPDEstimator<MixedCPD> for MLE<'_, MixedWtdTable>
Source§impl<'de> Deserialize<'de> for MixedCPD
impl<'de> Deserialize<'de> for MixedCPD
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 HasLabels for MixedCPD
impl HasLabels for MixedCPD
Source§fn label_to_index(&self, x: &str) -> Result<usize>
fn label_to_index(&self, x: &str) -> Result<usize>
Return the variable index for a given label. Read more
Source§fn index_to_label(&self, x: usize) -> Result<&str>
fn index_to_label(&self, x: usize) -> Result<&str>
Return the label for a given variable index. Read more
Source§fn index_to(&self, x: usize, other: &Labels) -> Result<usize>
fn index_to(&self, x: usize, other: &Labels) -> Result<usize>
Maps an index from this model to another model with the same label. Read more
Source§fn indices_to(&self, x: &Set<usize>, other: &Labels) -> Result<Set<usize>>
fn indices_to(&self, x: &Set<usize>, other: &Labels) -> Result<Set<usize>>
Maps a set of indices from this model to another model with the same labels. Read more
Source§impl ParCPDEstimator<MixedCPD> for BE<'_, MixedTable, ()>
impl ParCPDEstimator<MixedCPD> for BE<'_, MixedTable, ()>
Source§impl ParCPDEstimator<MixedCPD> for BE<'_, MixedIncTable, ()>
impl ParCPDEstimator<MixedCPD> for BE<'_, MixedIncTable, ()>
Source§impl ParCPDEstimator<MixedCPD> for BE<'_, MixedWtdTable, ()>
impl ParCPDEstimator<MixedCPD> for BE<'_, MixedWtdTable, ()>
Source§impl ParCPDEstimator<MixedCPD> for MLE<'_, MixedTable>
impl ParCPDEstimator<MixedCPD> for MLE<'_, MixedTable>
Source§impl ParCPDEstimator<MixedCPD> for MLE<'_, MixedIncTable>
impl ParCPDEstimator<MixedCPD> for MLE<'_, MixedIncTable>
Source§impl ParCPDEstimator<MixedCPD> for MLE<'_, MixedWtdTable>
impl ParCPDEstimator<MixedCPD> for MLE<'_, MixedWtdTable>
Source§impl RelativeEq for MixedCPD
impl RelativeEq for MixedCPD
Source§fn default_max_relative() -> Self::Epsilon
fn default_max_relative() -> Self::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
Source§fn relative_eq(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon,
) -> bool
fn relative_eq( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool
A test for equality that uses a relative comparison if the values are far apart.
Source§fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon,
) -> bool
fn relative_ne( &self, other: &Rhs, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool
The inverse of
RelativeEq::relative_eq.Auto Trait Implementations§
impl Freeze for MixedCPD
impl RefUnwindSafe for MixedCPD
impl Send for MixedCPD
impl Sync for MixedCPD
impl Unpin for MixedCPD
impl UnsafeUnpin for MixedCPD
impl UnwindSafe for MixedCPD
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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