Struct linfa::composing::platt_scaling::PlattValidParams
source · pub struct PlattValidParams<F, O> { /* private fields */ }
Expand description
Parameters for Platt’s Newton method
Trait Implementations§
source§impl<F: Clone, O: Clone> Clone for PlattValidParams<F, O>
impl<F: Clone, O: Clone> Clone for PlattValidParams<F, O>
source§fn clone(&self) -> PlattValidParams<F, O>
fn clone(&self) -> PlattValidParams<F, O>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, F: Float, O> FitWith<'a, ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<bool>, Dim<[usize; 1]>>, PlattError> for PlattValidParams<F, O>
impl<'a, F: Float, O> FitWith<'a, ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<bool>, Dim<[usize; 1]>>, PlattError> for PlattValidParams<F, O>
source§fn 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>
source§impl<F: PartialEq, O: PartialEq> PartialEq for PlattValidParams<F, O>
impl<F: PartialEq, O: PartialEq> PartialEq for PlattValidParams<F, O>
source§fn eq(&self, other: &PlattValidParams<F, O>) -> bool
fn eq(&self, other: &PlattValidParams<F, O>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<F: Eq, O: Eq> Eq for PlattValidParams<F, O>
impl<F, O> StructuralPartialEq for PlattValidParams<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>
impl<F, O> Sync for PlattValidParams<F, O>
impl<F, O> Unpin for PlattValidParams<F, O>
impl<F, O> UnwindSafe for PlattValidParams<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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.