pub struct ToxicityAnalyzer { /* private fields */ }Expand description
Deterministic toxicity/adverse-selection analyzer.
Implementations§
Source§impl ToxicityAnalyzer
impl ToxicityAnalyzer
Sourcepub const fn new(config: ToxicityConfig) -> Self
pub const fn new(config: ToxicityConfig) -> Self
Creates a toxicity analyzer.
Sourcepub const fn config(&self) -> ToxicityConfig
pub const fn config(&self) -> ToxicityConfig
Returns analyzer configuration.
Sourcepub fn evaluate(&self, input: ToxicityInput) -> ToxicitySnapshot
pub fn evaluate(&self, input: ToxicityInput) -> ToxicitySnapshot
Evaluates one toxicity/adverse-selection observation.
Trait Implementations§
Source§impl Clone for ToxicityAnalyzer
impl Clone for ToxicityAnalyzer
impl Copy for ToxicityAnalyzer
Source§impl Debug for ToxicityAnalyzer
impl Debug for ToxicityAnalyzer
Source§impl Default for ToxicityAnalyzer
impl Default for ToxicityAnalyzer
impl Eq for ToxicityAnalyzer
Source§impl PartialEq for ToxicityAnalyzer
impl PartialEq for ToxicityAnalyzer
impl StructuralPartialEq for ToxicityAnalyzer
Auto Trait Implementations§
impl Freeze for ToxicityAnalyzer
impl RefUnwindSafe for ToxicityAnalyzer
impl Send for ToxicityAnalyzer
impl Sync for ToxicityAnalyzer
impl Unpin for ToxicityAnalyzer
impl UnsafeUnpin for ToxicityAnalyzer
impl UnwindSafe for ToxicityAnalyzer
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