pub struct BinaryRelevanceTrained {
pub binary_classifiers: HashMap<usize, (Array1<f64>, f64)>,
pub classes_per_label: Vec<Vec<i32>>,
pub n_labels: usize,
pub n_features: usize,
}Expand description
Trained state for BinaryRelevance
Fields§
§binary_classifiers: HashMap<usize, (Array1<f64>, f64)>Binary classifiers for each label (weights, bias)
classes_per_label: Vec<Vec<i32>>Classes for each label
n_labels: usizeNumber of labels
n_features: usizeNumber of features
Trait Implementations§
Source§impl Clone for BinaryRelevanceTrained
impl Clone for BinaryRelevanceTrained
Source§fn clone(&self) -> BinaryRelevanceTrained
fn clone(&self) -> BinaryRelevanceTrained
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BinaryRelevanceTrained
impl RefUnwindSafe for BinaryRelevanceTrained
impl Send for BinaryRelevanceTrained
impl Sync for BinaryRelevanceTrained
impl Unpin for BinaryRelevanceTrained
impl UnwindSafe for BinaryRelevanceTrained
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more