pub struct GradientDescentIterationMetrics { /* private fields */ }Expand description
Truncation statistics emitted by one gradient-descent iteration.
The retained fraction is frame-weighted and includes only unmasked pixels from positive-weight frames. It is absent when Poisson truncation is disabled or when an iteration has no eligible pixels.
Implementations§
Source§impl GradientDescentIterationMetrics
impl GradientDescentIterationMetrics
Sourcepub fn retained_pixel_fraction(&self) -> Option<f64>
pub fn retained_pixel_fraction(&self) -> Option<f64>
Returns the frame-weighted fraction of eligible pixels retained by truncation.
Trait Implementations§
Source§impl AlgorithmIterationMetrics for GradientDescentIterationMetrics
impl AlgorithmIterationMetrics for GradientDescentIterationMetrics
Source§fn merge(&mut self, other: Self)
fn merge(&mut self, other: Self)
Deterministically accumulates metrics from another batch in schedule order.
Source§fn append_records(
&self,
iteration: usize,
output: &mut Vec<AlgorithmMetricRecord>,
)
fn append_records( &self, iteration: usize, output: &mut Vec<AlgorithmMetricRecord>, )
Appends stable scalar records for a one-based completed
iteration.Source§impl Clone for GradientDescentIterationMetrics
impl Clone for GradientDescentIterationMetrics
Source§fn clone(&self) -> GradientDescentIterationMetrics
fn clone(&self) -> GradientDescentIterationMetrics
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 Default for GradientDescentIterationMetrics
impl Default for GradientDescentIterationMetrics
Source§fn default() -> GradientDescentIterationMetrics
fn default() -> GradientDescentIterationMetrics
Returns the “default value” for a type. Read more
impl Copy for GradientDescentIterationMetrics
Auto Trait Implementations§
impl Freeze for GradientDescentIterationMetrics
impl RefUnwindSafe for GradientDescentIterationMetrics
impl Send for GradientDescentIterationMetrics
impl Sync for GradientDescentIterationMetrics
impl Unpin for GradientDescentIterationMetrics
impl UnsafeUnpin for GradientDescentIterationMetrics
impl UnwindSafe for GradientDescentIterationMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more