pub struct Score {
pub confidence: f64,
pub target: ModelId,
pub category: Option<Category>,
}Expand description
One classifier’s recommendation of a routing target, with a [0.0, 1.0] confidence.
Fields§
§confidence: f64[0.0, 1.0] confidence in target.
target: ModelIdThe target (model / tier) being recommended.
category: Option<Category>The category target was drawn from, when the classifier picked one. The rest of
that category is what the turn falls through on failure, so a decision made without
a category — an affinity replay, say — leaves this None.
Trait Implementations§
impl StructuralPartialEq for Score
Auto Trait Implementations§
impl Freeze for Score
impl RefUnwindSafe for Score
impl Send for Score
impl Sync for Score
impl Unpin for Score
impl UnsafeUnpin for Score
impl UnwindSafe for Score
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