pub struct ImportanceStats {
pub mean: f32,
pub std_dev: f32,
pub min: f32,
pub max: f32,
pub median: f32,
pub percentiles: [f32; 4],
}Expand description
Statistics about head importance distribution
Fields§
§mean: f32Mean importance
std_dev: f32Standard deviation
min: f32Minimum importance
max: f32Maximum importance
median: f32Median importance
percentiles: [f32; 4]Percentiles (25th, 50th, 75th, 90th)
Implementations§
Source§impl ImportanceStats
impl ImportanceStats
Sourcepub fn from_importances(importances: &[f32]) -> Self
pub fn from_importances(importances: &[f32]) -> Self
Compute stats from importance values
Trait Implementations§
Source§impl Clone for ImportanceStats
impl Clone for ImportanceStats
Source§fn clone(&self) -> ImportanceStats
fn clone(&self) -> ImportanceStats
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 ImportanceStats
impl Debug for ImportanceStats
Source§impl<'de> Deserialize<'de> for ImportanceStats
impl<'de> Deserialize<'de> for ImportanceStats
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 ImportanceStats
impl RefUnwindSafe for ImportanceStats
impl Send for ImportanceStats
impl Sync for ImportanceStats
impl Unpin for ImportanceStats
impl UnsafeUnpin for ImportanceStats
impl UnwindSafe for ImportanceStats
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