Struct linfa_logistic::FittedLogisticRegression
source · pub struct FittedLogisticRegression<F: Float, C: PartialOrd + Clone> { /* private fields */ }
Expand description
A fitted logistic regression which can make predictions
Implementations§
source§impl<F: Float, C: PartialOrd + Clone> FittedLogisticRegression<F, C>
impl<F: Float, C: PartialOrd + Clone> FittedLogisticRegression<F, C>
sourcepub fn set_threshold(self, threshold: F) -> FittedLogisticRegression<F, C>
pub fn set_threshold(self, threshold: F) -> FittedLogisticRegression<F, C>
Set the probability threshold for which the ‘positive’ class will be predicted. Defaults to 0.5.
pub fn intercept(&self) -> F
pub fn params(&self) -> &Array1<F>
Trait Implementations§
source§impl<F: Clone + Float, C: Clone + PartialOrd + Clone> Clone for FittedLogisticRegression<F, C>
impl<F: Clone + Float, C: Clone + PartialOrd + Clone> Clone for FittedLogisticRegression<F, C>
source§fn clone(&self) -> FittedLogisticRegression<F, C>
fn clone(&self) -> FittedLogisticRegression<F, C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<F: Debug + Float, C: Debug + PartialOrd + Clone> Debug for FittedLogisticRegression<F, C>
impl<F: Debug + Float, C: Debug + PartialOrd + Clone> Debug for FittedLogisticRegression<F, C>
source§impl<F: PartialEq + Float, C: PartialEq + PartialOrd + Clone> PartialEq for FittedLogisticRegression<F, C>
impl<F: PartialEq + Float, C: PartialEq + PartialOrd + Clone> PartialEq for FittedLogisticRegression<F, C>
source§fn eq(&self, other: &FittedLogisticRegression<F, C>) -> bool
fn eq(&self, other: &FittedLogisticRegression<F, C>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<C: PartialOrd + Clone + Default, F: Float, D: Data<Elem = F>> PredictInplace<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<C>, Dim<[usize; 1]>>> for FittedLogisticRegression<F, C>
impl<C: PartialOrd + Clone + Default, F: Float, D: Data<Elem = F>> PredictInplace<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<C>, Dim<[usize; 1]>>> for FittedLogisticRegression<F, C>
impl<F: Float, C: PartialOrd + Clone> StructuralPartialEq for FittedLogisticRegression<F, C>
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,
impl<F, C> UnwindSafe for FittedLogisticRegression<F, C>where C: UnwindSafe, F: UnwindSafe + RefUnwindSafe,
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