pub struct LayerAnalysisStats<F: Float + Debug> {
pub mean_activation: F,
pub std_activation: F,
pub max_activation: F,
pub min_activation: F,
pub dead_neuron_percentage: f64,
pub sparsity: f64,
pub histogram: Vec<u32>,
pub bin_edges: Vec<F>,
}
Expand description
Statistical analysis of layer activations
Fields§
§mean_activation: F
Mean activation value
std_activation: F
Standard deviation of activations
max_activation: F
Maximum activation value
min_activation: F
Minimum activation value
dead_neuron_percentage: f64
Percentage of dead neurons (always zero)
sparsity: f64
Sparsity (percentage of near-zero activations)
histogram: Vec<u32>
Activation distribution histogram
bin_edges: Vec<F>
Histogram bin edges
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for LayerAnalysisStats<F>where
F: Freeze,
impl<F> RefUnwindSafe for LayerAnalysisStats<F>where
F: RefUnwindSafe,
impl<F> Send for LayerAnalysisStats<F>where
F: Send,
impl<F> Sync for LayerAnalysisStats<F>where
F: Sync,
impl<F> Unpin for LayerAnalysisStats<F>where
F: Unpin,
impl<F> UnwindSafe for LayerAnalysisStats<F>where
F: UnwindSafe,
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