pub struct TokenEntropy {
pub class_id: String,
pub entropy: Option<f64>,
pub distinct: usize,
pub total: usize,
}Expand description
Per-class entropy readout.
Fields§
§class_id: String§entropy: Option<f64>None when methodTokens is absent or unparseable.
distinct: usizeNumber of distinct tokens that fed into the histogram (vocabulary size).
total: usizeTotal token occurrences across all methods.
Trait Implementations§
Source§impl Clone for TokenEntropy
impl Clone for TokenEntropy
Source§fn clone(&self) -> TokenEntropy
fn clone(&self) -> TokenEntropy
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 TokenEntropy
impl Debug for TokenEntropy
Source§impl<'de> Deserialize<'de> for TokenEntropy
impl<'de> Deserialize<'de> for TokenEntropy
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 TokenEntropy
impl RefUnwindSafe for TokenEntropy
impl Send for TokenEntropy
impl Sync for TokenEntropy
impl Unpin for TokenEntropy
impl UnsafeUnpin for TokenEntropy
impl UnwindSafe for TokenEntropy
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