Struct linfa::composing::platt_scaling::Platt[][src]

pub struct Platt<F, O> { /* fields omitted */ }

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

impl<F: Float, O> Platt<F, O>[src]

pub fn params() -> PlattParams<F, O>[src]

Create default parameter set for the Platt scaling algorithm

The default values are:

  • maxiter: 100,
  • minstep: 1e-10,
  • sigma: 1e-12

Trait Implementations

impl<F: Float, D, O> PredictRef<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<Pr>, Dim<[usize; 1]>>> for Platt<F, O> where
    D: Data<Elem = F>,
    O: PredictRef<ArrayBase<D, Ix2>, ArrayBase<D, Ix1>>, 
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, F, D, T, O> Predict<&'a ArrayBase<D, Dim<[usize; 2]>>, T> for O where
    F: Float,
    D: Data<Elem = F>,
    O: PredictRef<ArrayBase<D, Dim<[usize; 2]>>, T>, 
[src]

impl<'a, F, R, T, S, O> Predict<&'a DatasetBase<R, T>, S> for O where
    R: Records<Elem = F>,
    F: Float,
    O: PredictRef<R, S>, 
[src]

impl<F, D, T, O> Predict<ArrayBase<D, Dim<[usize; 2]>>, DatasetBase<ArrayBase<D, Dim<[usize; 2]>>, T>> for O where
    F: Float,
    D: Data<Elem = F>,
    O: PredictRef<ArrayBase<D, Dim<[usize; 2]>>, T>, 
[src]

impl<F, R, T, S, O> Predict<DatasetBase<R, T>, DatasetBase<R, S>> for O where
    R: Records<Elem = F>,
    F: Float,
    O: PredictRef<R, S>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,