pub struct Contribution {
pub name: String,
pub share: f64,
pub drop: f64,
}Expand description
What one input turned out to be worth.
Fields§
§name: StringWhat it is called — the key of the input, or the node that reads it.
How much worse the score gets without it, as a share of the total drop
across every input. Between 0.0 and 1.0 when the drops are positive;
a negative one is real and means the model does better without that
input, which is worth seeing rather than clamping away.
drop: f64And the raw difference, in whatever the score was measured in.
Trait Implementations§
Source§impl Clone for Contribution
impl Clone for Contribution
Source§fn clone(&self) -> Contribution
fn clone(&self) -> Contribution
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 moreSource§impl Debug for Contribution
impl Debug for Contribution
Source§impl PartialEq for Contribution
impl PartialEq for Contribution
impl StructuralPartialEq for Contribution
Auto Trait Implementations§
impl Freeze for Contribution
impl RefUnwindSafe for Contribution
impl Send for Contribution
impl Sync for Contribution
impl Unpin for Contribution
impl UnsafeUnpin for Contribution
impl UnwindSafe for Contribution
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