pub struct RandomCandidateBackend { /* private fields */ }Expand description
Randomly shuffle the observable candidates with a fixed seed.
Implementations§
Trait Implementations§
Source§impl NextAppPredictor for RandomCandidateBackend
impl NextAppPredictor for RandomCandidateBackend
fn name(&self) -> &'static str
fn predict( &self, _ctx: &StructuredContext, _current_app: &str, candidates: &[String], ) -> PredictionResult
fn train(&mut self, _train: &[NextAppLabel])
Auto Trait Implementations§
impl !Freeze for RandomCandidateBackend
impl !RefUnwindSafe for RandomCandidateBackend
impl Send for RandomCandidateBackend
impl !Sync for RandomCandidateBackend
impl Unpin for RandomCandidateBackend
impl UnsafeUnpin for RandomCandidateBackend
impl UnwindSafe for RandomCandidateBackend
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