pub struct LabelBinarizer {
pub classes: Vec<i64>,
pub is_binary: bool,
}Expand description
LabelBinarizer.
Fields§
§classes: Vec<i64>Sorted unique labels seen at fit.
is_binary: boolWhether the fit saw exactly 2 classes → returns a column vector.
Implementations§
Trait Implementations§
Source§impl Clone for LabelBinarizer
impl Clone for LabelBinarizer
Source§fn clone(&self) -> LabelBinarizer
fn clone(&self) -> LabelBinarizer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LabelBinarizer
impl Debug for LabelBinarizer
Source§impl<'de> Deserialize<'de> for LabelBinarizer
impl<'de> Deserialize<'de> for LabelBinarizer
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
Source§impl PartialEq for LabelBinarizer
impl PartialEq for LabelBinarizer
Source§impl Serialize for LabelBinarizer
impl Serialize for LabelBinarizer
impl StructuralPartialEq for LabelBinarizer
Auto Trait Implementations§
impl Freeze for LabelBinarizer
impl RefUnwindSafe for LabelBinarizer
impl Send for LabelBinarizer
impl Sync for LabelBinarizer
impl Unpin for LabelBinarizer
impl UnsafeUnpin for LabelBinarizer
impl UnwindSafe for LabelBinarizer
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