Struct linfa::composing::platt_scaling::PlattValidParams
source · [−]pub struct PlattValidParams<F, O> { /* private fields */ }
Expand description
Parameters for Platt’s Newton method
Trait Implementations
sourceimpl<'a, F: Float, O: 'a> FitWith<'a, ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<bool>, Dim<[usize; 1]>>, PlattError> for PlattValidParams<F, O> where
O: PredictInplace<Array2<F>, Array1<F>>,
impl<'a, F: Float, O: 'a> FitWith<'a, ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<bool>, Dim<[usize; 1]>>, PlattError> for PlattValidParams<F, O> where
O: PredictInplace<Array2<F>, Array1<F>>,
sourcefn fit_with(
&self,
obj: O,
ds: &DatasetBase<Array2<F>, Array1<bool>>
) -> Result<Self::ObjectOut, PlattError>
fn fit_with(
&self,
obj: O,
ds: &DatasetBase<Array2<F>, Array1<bool>>
) -> Result<Self::ObjectOut, PlattError>
Calibrate another model with Platt scaling
This function takes another model and binary decision dataset and calibrates it to produce probability values. The returned model therefore implements the prediction trait for probability targets.
type ObjectIn = O
type ObjectOut = Platt<F, O>
Auto Trait Implementations
impl<F, O> RefUnwindSafe for PlattValidParams<F, O> where
F: RefUnwindSafe,
O: RefUnwindSafe,
impl<F, O> Send for PlattValidParams<F, O> where
F: Send,
O: Send,
impl<F, O> Sync for PlattValidParams<F, O> where
F: Sync,
O: Sync,
impl<F, O> Unpin for PlattValidParams<F, O> where
F: Unpin,
O: Unpin,
impl<F, O> UnwindSafe for PlattValidParams<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