pub struct Precision<T> { /* private fields */ }
Expand description
Precision metric.
Trait Implementations§
source§impl<T: RealNumber> Metrics<T> for Precision<T>
impl<T: RealNumber> Metrics<T> for Precision<T>
source§fn get_score(
&self,
y_true: &dyn ArrayView1<T>,
y_pred: &dyn ArrayView1<T>
) -> f64
fn get_score( &self, y_true: &dyn ArrayView1<T>, y_pred: &dyn ArrayView1<T> ) -> f64
Calculated precision score
y_true
- ground truth (correct) labels.y_pred
- predicted labels, as returned by a classifier.
Auto Trait Implementations§
impl<T> RefUnwindSafe for Precision<T>where T: RefUnwindSafe,
impl<T> Send for Precision<T>where T: Send,
impl<T> Sync for Precision<T>where T: Sync,
impl<T> Unpin for Precision<T>where T: Unpin,
impl<T> UnwindSafe for Precision<T>where T: UnwindSafe,
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