pub struct ChainEffectMetric {
pub key: String,
pub label: String,
pub lower_is_better: bool,
}Expand description
The metric the scores are expressed in, plus its optimization direction.
Fields§
§key: String§label: String§lower_is_better: booltrue for error metrics (nRMSE, RMSE); false for R²/accuracy.
Implementations§
Source§impl ChainEffectMetric
impl ChainEffectMetric
Sourcepub fn objective(&self) -> MetricObjective
pub fn objective(&self) -> MetricObjective
The equivalent MetricObjective for the metric direction.
Trait Implementations§
Source§impl Clone for ChainEffectMetric
impl Clone for ChainEffectMetric
Source§fn clone(&self) -> ChainEffectMetric
fn clone(&self) -> ChainEffectMetric
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 ChainEffectMetric
impl Debug for ChainEffectMetric
Source§impl<'de> Deserialize<'de> for ChainEffectMetric
impl<'de> Deserialize<'de> for ChainEffectMetric
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 PartialEq for ChainEffectMetric
impl PartialEq for ChainEffectMetric
Source§impl Serialize for ChainEffectMetric
impl Serialize for ChainEffectMetric
impl StructuralPartialEq for ChainEffectMetric
Auto Trait Implementations§
impl Freeze for ChainEffectMetric
impl RefUnwindSafe for ChainEffectMetric
impl Send for ChainEffectMetric
impl Sync for ChainEffectMetric
impl Unpin for ChainEffectMetric
impl UnsafeUnpin for ChainEffectMetric
impl UnwindSafe for ChainEffectMetric
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