pub struct SurrogateFitness {
pub posterior: Arc<TastePosterior>,
pub standardizer: Arc<Standardizer>,
pub phrase: PhraseSpec,
pub memo: RenderMemo,
}Expand description
Expected posterior utility as a scalar fitness over patch terms.
Fields§
§posterior: Arc<TastePosterior>The fitted taste posterior.
standardizer: Arc<Standardizer>The standardizer the posterior’s observations were made under.
phrase: PhraseSpecThe audition stimulus (must match the one used for observations).
memo: RenderMemoThe engine’s featurization memo.
Not an optimization detail — it is what makes the MH walk affordable.
adaptive_single_site_mh executes the model twice per step: once
to re-score the current trace, which is bit-identically the tree the
previous step accepted and therefore already featurized, and once for
the proposal. Without a memo, one render in two is a recomputation of a
number the walk already has.
Trait Implementations§
Source§impl Clone for SurrogateFitness
impl Clone for SurrogateFitness
Source§fn clone(&self) -> SurrogateFitness
fn clone(&self) -> SurrogateFitness
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 SurrogateFitness
impl Debug for SurrogateFitness
Auto Trait Implementations§
impl Freeze for SurrogateFitness
impl RefUnwindSafe for SurrogateFitness
impl Send for SurrogateFitness
impl Sync for SurrogateFitness
impl Unpin for SurrogateFitness
impl UnsafeUnpin for SurrogateFitness
impl UnwindSafe for SurrogateFitness
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