pub struct SoftLabelsBuilder { /* private fields */ }Expand description
Builder for soft labels
Implementations§
Source§impl SoftLabelsBuilder
impl SoftLabelsBuilder
Sourcepub fn output_similarity(self, value: f32) -> Self
pub fn output_similarity(self, value: f32) -> Self
Set output similarity
Sourcepub fn runtime_ratio(self, value: f32) -> Self
pub fn runtime_ratio(self, value: f32) -> Self
Set runtime ratio
Sourcepub fn structural_similarity(self, value: f32) -> Self
pub fn structural_similarity(self, value: f32) -> Self
Set structural similarity
Sourcepub fn semantic_confidence(self, value: f32) -> Self
pub fn semantic_confidence(self, value: f32) -> Self
Set semantic confidence
Sourcepub fn type_safety(self, value: f32) -> Self
pub fn type_safety(self, value: f32) -> Self
Set type safety
Sourcepub fn build(self) -> SoftLabels
pub fn build(self) -> SoftLabels
Build soft labels
Trait Implementations§
Source§impl Debug for SoftLabelsBuilder
impl Debug for SoftLabelsBuilder
Source§impl Default for SoftLabelsBuilder
impl Default for SoftLabelsBuilder
Source§fn default() -> SoftLabelsBuilder
fn default() -> SoftLabelsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SoftLabelsBuilder
impl RefUnwindSafe for SoftLabelsBuilder
impl Send for SoftLabelsBuilder
impl Sync for SoftLabelsBuilder
impl Unpin for SoftLabelsBuilder
impl UnsafeUnpin for SoftLabelsBuilder
impl UnwindSafe for SoftLabelsBuilder
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> 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