pub struct ObjectivePolicy {
pub kind: ObjectiveKind,
pub correctness_weight: f64,
pub novelty_weight: f64,
pub stability_weight: f64,
pub allow_scalarization: bool,
pub min_trials_for_stability: u32,
}Expand description
Policy for how scores are combined for a given objective.
Fields§
§kind: ObjectiveKind§correctness_weight: f64Weight for correctness in the objective.
novelty_weight: f64Weight for novelty (auxiliary, explainable).
stability_weight: f64Weight for stability (may be absent if trials insufficient).
allow_scalarization: boolWhether scalarization into weighted_total is allowed.
min_trials_for_stability: u32Minimum trial count for stability to be included.
Implementations§
Source§impl ObjectivePolicy
impl ObjectivePolicy
Sourcepub fn performance() -> Self
pub fn performance() -> Self
Create a policy for a performance objective.
Sourcepub fn exploration() -> Self
pub fn exploration() -> Self
Create a policy for exploratory work.
Trait Implementations§
Source§impl Clone for ObjectivePolicy
impl Clone for ObjectivePolicy
Source§fn clone(&self) -> ObjectivePolicy
fn clone(&self) -> ObjectivePolicy
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 ObjectivePolicy
impl Debug for ObjectivePolicy
Source§impl Default for ObjectivePolicy
impl Default for ObjectivePolicy
Source§impl<'de> Deserialize<'de> for ObjectivePolicy
impl<'de> Deserialize<'de> for ObjectivePolicy
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
Auto Trait Implementations§
impl Freeze for ObjectivePolicy
impl RefUnwindSafe for ObjectivePolicy
impl Send for ObjectivePolicy
impl Sync for ObjectivePolicy
impl Unpin for ObjectivePolicy
impl UnsafeUnpin for ObjectivePolicy
impl UnwindSafe for ObjectivePolicy
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