pub enum ClassifierOutput {
Decision(Classification),
Position {
value: f64,
confidence: f64,
ambiguous: bool,
},
}Expand description
Optional scalar output for classifiers that use a configured target pool.
Variants§
Decision(Classification)
An existing target-based verdict, passed through unchanged.
Position
A position on the configured score line.
Implementations§
Auto Trait Implementations§
impl Freeze for ClassifierOutput
impl RefUnwindSafe for ClassifierOutput
impl Send for ClassifierOutput
impl Sync for ClassifierOutput
impl Unpin for ClassifierOutput
impl UnsafeUnpin for ClassifierOutput
impl UnwindSafe for ClassifierOutput
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