pub enum DecisionAnswer {
Choice {
choice: String,
confidence: f32,
probabilities: BTreeMap<String, f32>,
},
Score {
score: f32,
max: Option<f32>,
label: Option<String>,
confidence: f32,
},
Noul {
probability: f32,
},
}Expand description
One answer from a System 1 forward pass.
Variants§
Trait Implementations§
Source§impl Clone for DecisionAnswer
impl Clone for DecisionAnswer
Source§fn clone(&self) -> DecisionAnswer
fn clone(&self) -> DecisionAnswer
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 DecisionAnswer
impl Debug for DecisionAnswer
Source§impl PartialEq for DecisionAnswer
impl PartialEq for DecisionAnswer
impl StructuralPartialEq for DecisionAnswer
Auto Trait Implementations§
impl Freeze for DecisionAnswer
impl RefUnwindSafe for DecisionAnswer
impl Send for DecisionAnswer
impl Sync for DecisionAnswer
impl Unpin for DecisionAnswer
impl UnsafeUnpin for DecisionAnswer
impl UnwindSafe for DecisionAnswer
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