pub struct PerCurrentAppMajorityBackend { /* private fields */ }Expand description
Predict the most frequent next app conditioned on the current app.
Trait Implementations§
Source§impl Default for PerCurrentAppMajorityBackend
impl Default for PerCurrentAppMajorityBackend
Source§fn default() -> PerCurrentAppMajorityBackend
fn default() -> PerCurrentAppMajorityBackend
Returns the “default value” for a type. Read more
Source§impl NextAppPredictor for PerCurrentAppMajorityBackend
impl NextAppPredictor for PerCurrentAppMajorityBackend
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 PerCurrentAppMajorityBackend
impl RefUnwindSafe for PerCurrentAppMajorityBackend
impl Send for PerCurrentAppMajorityBackend
impl Sync for PerCurrentAppMajorityBackend
impl Unpin for PerCurrentAppMajorityBackend
impl UnsafeUnpin for PerCurrentAppMajorityBackend
impl UnwindSafe for PerCurrentAppMajorityBackend
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