pub struct MultiAnswer<'a> {
pub selected: &'a [String],
pub threshold: Option<f64>,
pub objective: MultiObjective,
pub expected_score: Option<f64>,
pub constraints_applied: Option<&'a Value>,
pub set_confidence: f64,
pub probabilities: &'a IndexMap<String, f64>,
pub raw: &'a Answer,
}Expand description
Checked multi answer.
Fields§
§selected: &'a [String]Selected labels, possibly empty.
threshold: Option<f64>Applied threshold; absent for exact, IoU and F1 objectives.
objective: MultiObjectiveSelection objective.
expected_score: Option<f64>Expected objective score, if reported.
constraints_applied: Option<&'a Value>Constraint diagnostics.
set_confidence: f64Confidence of exactly the selected set.
probabilities: &'a IndexMap<String, f64>Independent P(yes) values.
raw: &'a AnswerOriginal answer.
Trait Implementations§
Source§impl<'a> Clone for MultiAnswer<'a>
impl<'a> Clone for MultiAnswer<'a>
impl<'a> Copy for MultiAnswer<'a>
Auto Trait Implementations§
impl<'a> Freeze for MultiAnswer<'a>
impl<'a> RefUnwindSafe for MultiAnswer<'a>
impl<'a> Send for MultiAnswer<'a>
impl<'a> Sync for MultiAnswer<'a>
impl<'a> Unpin for MultiAnswer<'a>
impl<'a> UnsafeUnpin for MultiAnswer<'a>
impl<'a> UnwindSafe for MultiAnswer<'a>
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