pub struct LogisticRegression { /* private fields */ }Expand description
Online logistic regression model.
Predicts P(y=1 | x) = sigmoid(w·x + b). Learning uses the gradient of
the binary log loss w.r.t. the logit, which simplifies to p - y.
Implementations§
Trait Implementations§
Source§impl Clone for LogisticRegression
impl Clone for LogisticRegression
Source§fn clone(&self) -> LogisticRegression
fn clone(&self) -> LogisticRegression
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 moreSource§impl Debug for LogisticRegression
impl Debug for LogisticRegression
Source§impl OnlineBinaryClassifier for LogisticRegression
impl OnlineBinaryClassifier for LogisticRegression
Source§fn feature_count(&self) -> usize
fn feature_count(&self) -> usize
The number of features the model expects.
Source§fn samples_seen(&self) -> u64
fn samples_seen(&self) -> u64
How many training samples the model has seen so far.
Source§fn predict_proba(&self, features: &[f64]) -> Result<f64, RillError>
fn predict_proba(&self, features: &[f64]) -> Result<f64, RillError>
Predict the probability of the positive class.
Auto Trait Implementations§
impl Freeze for LogisticRegression
impl RefUnwindSafe for LogisticRegression
impl Send for LogisticRegression
impl Sync for LogisticRegression
impl Unpin for LogisticRegression
impl UnsafeUnpin for LogisticRegression
impl UnwindSafe for LogisticRegression
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