Struct linfa::composing::platt_scaling::Platt
source · pub struct Platt<F, O> { /* private fields */ }
Expand description
Fitted Platt model
This model contains a sigmoid scaling parameters and a second univariate, uncalibrated model. The output of the uncalibrated model is scaled with the following function:
g(x) = 1 / (1 + exp(A * f(x) + B)
The scaling factors A
and B
are estimated with the Newton’s method, presented in the
following paper: https://www.csie.ntu.edu.tw/~cjlin/papers/plattprob.pdf
Implementations§
Trait Implementations§
source§impl<F: PartialEq, O: PartialEq> PartialEq for Platt<F, O>
impl<F: PartialEq, O: PartialEq> PartialEq for Platt<F, O>
source§impl<F: Float, D, O> PredictInplace<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<Pr>, Dim<[usize; 1]>>> for Platt<F, O>
impl<F: Float, D, O> PredictInplace<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<Pr>, Dim<[usize; 1]>>> for Platt<F, O>
impl<F: Eq, O: Eq> Eq for Platt<F, O>
impl<F, O> StructuralEq for Platt<F, O>
impl<F, O> StructuralPartialEq for Platt<F, O>
Auto Trait Implementations§
impl<F, O> RefUnwindSafe for Platt<F, O>where
F: RefUnwindSafe,
O: RefUnwindSafe,
impl<F, O> Send for Platt<F, O>
impl<F, O> Sync for Platt<F, O>
impl<F, O> Unpin for Platt<F, O>
impl<F, O> UnwindSafe for Platt<F, O>where
F: UnwindSafe,
O: UnwindSafe,
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