pub struct CodebookStats {
pub mse: f32,
pub iterations: usize,
pub usage_distribution: (f32, f32, f32),
pub samples_seen: usize,
}Expand description
Statistics from codebook training
Fields§
§mse: f32Mean squared error after training
iterations: usizeNumber of training iterations
usage_distribution: (f32, f32, f32)Centroid usage distribution (min, max, mean)
samples_seen: usizeTraining samples seen
Trait Implementations§
Source§impl Clone for CodebookStats
impl Clone for CodebookStats
Source§fn clone(&self) -> CodebookStats
fn clone(&self) -> CodebookStats
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 CodebookStats
impl Debug for CodebookStats
Source§impl Default for CodebookStats
impl Default for CodebookStats
Source§fn default() -> CodebookStats
fn default() -> CodebookStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodebookStats
impl<'de> Deserialize<'de> for CodebookStats
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 CodebookStats
impl RefUnwindSafe for CodebookStats
impl Send for CodebookStats
impl Sync for CodebookStats
impl Unpin for CodebookStats
impl UnsafeUnpin for CodebookStats
impl UnwindSafe for CodebookStats
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