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]
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
Auto Trait Implementations
impl<F, O> RefUnwindSafe for Platt<F, O> where
F: RefUnwindSafe,
O: RefUnwindSafe,
impl<F, O> RefUnwindSafe for Platt<F, O> where
F: RefUnwindSafe,
O: RefUnwindSafe,
impl<F, O> UnwindSafe for Platt<F, O> where
F: UnwindSafe,
O: UnwindSafe,
impl<F, O> UnwindSafe for Platt<F, O> where
F: UnwindSafe,
O: UnwindSafe,
Blanket Implementations
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, 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<'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]pub fn predict(&Self, &'a DatasetBase<R, T>) -> 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, 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<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]pub fn predict(&Self, DatasetBase<R, T>) -> DatasetBase<R, S>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,