pub struct Binarizer {
pub threshold: f64,
pub n_features_in: usize,
}Expand description
Fitted Binarizer.
Fields§
§threshold: f64Threshold value.
n_features_in: usizeColumn count seen at fit.
Implementations§
Source§impl Binarizer
impl Binarizer
Sourcepub fn fit(x: ArrayView2<'_, f64>, threshold: f64) -> Result<Self>
pub fn fit(x: ArrayView2<'_, f64>, threshold: f64) -> Result<Self>
Fit with the given threshold.
Sourcepub fn fit_default(x: ArrayView2<'_, f64>) -> Result<Self>
pub fn fit_default(x: ArrayView2<'_, f64>) -> Result<Self>
Fit with the reference default threshold = 0.0.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Binarizer
impl<'de> Deserialize<'de> for Binarizer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Binarizer
Auto Trait Implementations§
impl Freeze for Binarizer
impl RefUnwindSafe for Binarizer
impl Send for Binarizer
impl Sync for Binarizer
impl Unpin for Binarizer
impl UnsafeUnpin for Binarizer
impl UnwindSafe for Binarizer
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