pub enum ObjectiveScale {
Sum,
Mean,
}Expand description
Scaling convention for the likelihood part of a compiled objective.
Local and global penalties are not scaled. This keeps penalty weights on a stable scale when switching between summed and mean likelihood objectives.
Variants§
Sum
Use the weighted likelihood sum.
Mean
Use the weighted likelihood mean.
For weighted observations the denominator is the sum of observation weights. If all weights are zero, the likelihood contribution is left unscaled at zero.
Trait Implementations§
Source§impl Clone for ObjectiveScale
impl Clone for ObjectiveScale
Source§fn clone(&self) -> ObjectiveScale
fn clone(&self) -> ObjectiveScale
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 ObjectiveScale
Source§impl Debug for ObjectiveScale
impl Debug for ObjectiveScale
Source§impl Default for ObjectiveScale
impl Default for ObjectiveScale
Source§fn default() -> ObjectiveScale
fn default() -> ObjectiveScale
Returns the “default value” for a type. Read more
impl Eq for ObjectiveScale
Source§impl PartialEq for ObjectiveScale
impl PartialEq for ObjectiveScale
Source§fn eq(&self, other: &ObjectiveScale) -> bool
fn eq(&self, other: &ObjectiveScale) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ObjectiveScale
Auto Trait Implementations§
impl Freeze for ObjectiveScale
impl RefUnwindSafe for ObjectiveScale
impl Send for ObjectiveScale
impl Sync for ObjectiveScale
impl Unpin for ObjectiveScale
impl UnsafeUnpin for ObjectiveScale
impl UnwindSafe for ObjectiveScale
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