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
sourceimpl<F: Float, O> Platt<F, O>
impl<F: Float, O> Platt<F, O>
sourcepub fn params() -> PlattParams<F, O>
pub fn params() -> PlattParams<F, O>
Create default parameter set for the Platt scaling algorithm
The default values are:
maxiter
: 100,minstep
: 1e-10,sigma
: 1e-12
Trait Implementations
Auto Trait Implementations
impl<F, O> RefUnwindSafe for Platt<F, O> where
F: RefUnwindSafe,
O: RefUnwindSafe,
impl<F, O> Send for Platt<F, O> where
F: Send,
O: Send,
impl<F, O> Sync for Platt<F, O> where
F: Sync,
O: Sync,
impl<F, O> Unpin for Platt<F, O> where
F: Unpin,
O: Unpin,
impl<F, O> UnwindSafe for Platt<F, O> where
F: UnwindSafe,
O: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more