pub struct PassPredictor { /* private fields */ }Expand description
An online logistic-regression predictor of gate-pass probability.
Cheap to update (one SGD step per observed attempt) and cheap to query (one dot product).
Wrap in Arc<Mutex<_>> for the proxy, like the bandit — per-process, in-memory; the
durable state is the receipts it warm-starts from.
Implementations§
Trait Implementations§
Source§impl Clone for PassPredictor
impl Clone for PassPredictor
Source§fn clone(&self) -> PassPredictor
fn clone(&self) -> PassPredictor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PassPredictor
impl RefUnwindSafe for PassPredictor
impl Send for PassPredictor
impl Sync for PassPredictor
impl Unpin for PassPredictor
impl UnsafeUnpin for PassPredictor
impl UnwindSafe for PassPredictor
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