Struct ConfusionStatsInput
pub struct ConfusionStatsInput<B>where
B: Backend,{
pub predictions: Tensor<B, 2>,
pub targets: Tensor<B, 2, Bool>,
}
Expand description
Input for [ConfusionStats]
Fields§
§predictions: Tensor<B, 2>
Sample x Class Non thresholded normalized predictions.
targets: Tensor<B, 2, Bool>
Sample x Class one-hot encoded target.
Implementations§
§impl<B> ConfusionStatsInput<B>where
B: Backend,
impl<B> ConfusionStatsInput<B>where
B: Backend,
pub fn new(
predictions: Tensor<B, 2>,
targets: Tensor<B, 2, Bool>,
) -> ConfusionStatsInput<B>
pub fn new( predictions: Tensor<B, 2>, targets: Tensor<B, 2, Bool>, ) -> ConfusionStatsInput<B>
Constructs a new ConfusionStatsInput
.
Trait Implementations§
§impl<B> Adaptor<ConfusionStatsInput<B>> for ClassificationOutput<B>where
B: Backend,
impl<B> Adaptor<ConfusionStatsInput<B>> for ClassificationOutput<B>where
B: Backend,
§fn adapt(&self) -> ConfusionStatsInput<B>
fn adapt(&self) -> ConfusionStatsInput<B>
Adapt the type to be passed to a metric.
§impl<B> Adaptor<ConfusionStatsInput<B>> for MultiLabelClassificationOutput<B>where
B: Backend,
impl<B> Adaptor<ConfusionStatsInput<B>> for MultiLabelClassificationOutput<B>where
B: Backend,
§fn adapt(&self) -> ConfusionStatsInput<B>
fn adapt(&self) -> ConfusionStatsInput<B>
Adapt the type to be passed to a metric.
§impl<B> Clone for ConfusionStatsInput<B>
impl<B> Clone for ConfusionStatsInput<B>
§fn clone(&self) -> ConfusionStatsInput<B>
fn clone(&self) -> ConfusionStatsInput<B>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<B> Debug for ConfusionStatsInput<B>
impl<B> Debug for ConfusionStatsInput<B>
Auto Trait Implementations§
impl<B> Freeze for ConfusionStatsInput<B>where
<B as Backend>::BoolTensorPrimitive: Freeze,
<B as Backend>::FloatTensorPrimitive: Freeze,
<B as Backend>::QuantizedTensorPrimitive: Freeze,
impl<B> RefUnwindSafe for ConfusionStatsInput<B>where
<B as Backend>::BoolTensorPrimitive: RefUnwindSafe,
<B as Backend>::FloatTensorPrimitive: RefUnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<B> Send for ConfusionStatsInput<B>
impl<B> Sync for ConfusionStatsInput<B>
impl<B> Unpin for ConfusionStatsInput<B>where
<B as Backend>::BoolTensorPrimitive: Unpin,
<B as Backend>::FloatTensorPrimitive: Unpin,
<B as Backend>::QuantizedTensorPrimitive: Unpin,
impl<B> UnwindSafe for ConfusionStatsInput<B>where
<B as Backend>::BoolTensorPrimitive: UnwindSafe,
<B as Backend>::FloatTensorPrimitive: UnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more