Struct linfa_logistic::FittedLogisticRegression [−][src]
pub struct FittedLogisticRegression<F: Float, C: PartialOrd + Clone> { /* fields omitted */ }
Expand description
A fitted logistic regression which can make predictions
Implementations
Set the probability threshold for which the ‘positive’ class will be predicted. Defaults to 0.5.
Trait Implementations
impl<F: PartialEq + Float, C: PartialEq + PartialOrd + Clone> PartialEq<FittedLogisticRegression<F, C>> for FittedLogisticRegression<F, C>
impl<F: PartialEq + Float, C: PartialEq + PartialOrd + Clone> PartialEq<FittedLogisticRegression<F, C>> for FittedLogisticRegression<F, C>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Given a feature matrix, predict the classes learned when the model was fitted.
Create targets that predict_inplace
works with.
Auto Trait Implementations
impl<F, C> RefUnwindSafe for FittedLogisticRegression<F, C> where
C: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, C> Send for FittedLogisticRegression<F, C> where
C: Send,
impl<F, C> Sync for FittedLogisticRegression<F, C> where
C: Sync,
impl<F, C> Unpin for FittedLogisticRegression<F, C> where
C: Unpin,
F: Unpin,
impl<F, C> UnwindSafe for FittedLogisticRegression<F, C> where
C: UnwindSafe,
F: UnwindSafe + RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more