pub enum Leaf<'a> {
ClassCounts(&'a [usize]),
Indices(&'a [usize]),
}Expand description
A leaf, as a custom loss sees it.
Variants§
ClassCounts(&'a [usize])
The number of instances of each class.
Indices(&'a [usize])
The ids of the instances.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Leaf<'a>
impl<'a> RefUnwindSafe for Leaf<'a>
impl<'a> Send for Leaf<'a>
impl<'a> Sync for Leaf<'a>
impl<'a> Unpin for Leaf<'a>
impl<'a> UnsafeUnpin for Leaf<'a>
impl<'a> UnwindSafe for Leaf<'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