pub struct GlobalMajorityBackend { /* private fields */ }Expand description
Always predict the globally most frequent next app seen in training.
Trait Implementations§
Source§impl Default for GlobalMajorityBackend
impl Default for GlobalMajorityBackend
Source§fn default() -> GlobalMajorityBackend
fn default() -> GlobalMajorityBackend
Returns the “default value” for a type. Read more
Source§impl NextAppPredictor for GlobalMajorityBackend
impl NextAppPredictor for GlobalMajorityBackend
fn name(&self) -> &'static str
fn train(&mut self, train: &[NextAppLabel])
fn predict( &self, _ctx: &StructuredContext, _current_app: &str, candidates: &[String], ) -> PredictionResult
Auto Trait Implementations§
impl Freeze for GlobalMajorityBackend
impl RefUnwindSafe for GlobalMajorityBackend
impl Send for GlobalMajorityBackend
impl Sync for GlobalMajorityBackend
impl Unpin for GlobalMajorityBackend
impl UnsafeUnpin for GlobalMajorityBackend
impl UnwindSafe for GlobalMajorityBackend
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