Enum lace::StateTransition
source · pub enum StateTransition {
ColumnAssignment(ColAssignAlg),
RowAssignment(RowAssignAlg),
StateAlpha,
ViewAlphas,
FeaturePriors,
ComponentParams,
}
Expand description
MCMC transitions in the State
Variants§
ColumnAssignment(ColAssignAlg)
Reassign columns to views
RowAssignment(RowAssignAlg)
Reassign rows in views to categories
StateAlpha
Update the alpha (discount) parameter on the column-to-views CRP
ViewAlphas
Update the alpha (discount) parameters on the row-to-categories CRP
FeaturePriors
Update the feature (column) prior parameters
ComponentParams
Update the parameters in the feature components. This is usually done automatically during the row assignment, but if the row assignment is not done (e.g. in the case of Geweke testing), then you can turn it on with this transition Note: this is not a default state transition.
Trait Implementations§
source§impl Clone for StateTransition
impl Clone for StateTransition
source§fn clone(&self) -> StateTransition
fn clone(&self) -> StateTransition
Returns a copy of the value. Read more
1.0.0 · 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 StateTransition
impl Debug for StateTransition
source§impl<'de> Deserialize<'de> for StateTransition
impl<'de> Deserialize<'de> for StateTransition
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<StateTransition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<StateTransition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for StateTransition
impl PartialEq for StateTransition
source§fn eq(&self, other: &StateTransition) -> bool
fn eq(&self, other: &StateTransition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StateTransition
impl Serialize for StateTransition
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<StateTransition> for ViewTransition
impl TryFrom<StateTransition> for ViewTransition
§type Error = ParseError<StateTransition>
type Error = ParseError<StateTransition>
The type returned in the event of a conversion error.
source§fn try_from(
st: StateTransition
) -> Result<ViewTransition, <ViewTransition as TryFrom<StateTransition>>::Error>
fn try_from( st: StateTransition ) -> Result<ViewTransition, <ViewTransition as TryFrom<StateTransition>>::Error>
Performs the conversion.
impl Copy for StateTransition
impl Eq for StateTransition
impl StructuralPartialEq for StateTransition
Auto Trait Implementations§
impl RefUnwindSafe for StateTransition
impl Send for StateTransition
impl Sync for StateTransition
impl Unpin for StateTransition
impl UnwindSafe for StateTransition
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.