Struct linfa::composing::platt_scaling::PlattValidParams [−][src]
pub struct PlattValidParams<F, O> { /* fields omitted */ }
Expand description
Parameters for Platt’s Newton method
Trait Implementations
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.