pub struct HardNegativeMiner { /* private fields */ }Expand description
Hard negative miner that selects closest negatives
Implementations§
Source§impl HardNegativeMiner
impl HardNegativeMiner
pub fn new(strategy: MiningStrategy) -> Self
pub fn with_margin(self, margin: f32) -> Self
pub fn with_temperature(self, temp: f32) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HardNegativeMiner
impl RefUnwindSafe for HardNegativeMiner
impl Send for HardNegativeMiner
impl Sync for HardNegativeMiner
impl Unpin for HardNegativeMiner
impl UnwindSafe for HardNegativeMiner
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