#[non_exhaustive]pub enum CriticField {
Objective,
Volatility,
Surprise,
Stress,
TdError,
EmaReward,
}Expand description
A validated field or computed intermediate in a critic assessment.
Input channels (Objective, Volatility, Surprise, Stress) are
read from Environment. Intermediates (TdError,
EmaReward) are computed by TDCritic and checked
before state is committed.
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.
Objective
Volatility
Surprise
Validated by SimpleCritic::try_assess
only. TDCritic ignores this channel.
Stress
TdError
objective − prev_objective inside TDCritic.
EmaReward
The EMA of TD errors inside TDCritic.
Trait Implementations§
Source§impl Clone for CriticField
impl Clone for CriticField
Source§fn clone(&self) -> CriticField
fn clone(&self) -> CriticField
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 moreimpl Copy for CriticField
Source§impl Debug for CriticField
impl Debug for CriticField
Source§impl Display for CriticField
impl Display for CriticField
impl Eq for CriticField
Source§impl PartialEq for CriticField
impl PartialEq for CriticField
impl StructuralPartialEq for CriticField
Auto Trait Implementations§
impl Freeze for CriticField
impl RefUnwindSafe for CriticField
impl Send for CriticField
impl Sync for CriticField
impl Unpin for CriticField
impl UnsafeUnpin for CriticField
impl UnwindSafe for CriticField
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