pub struct SyntheticRecord {
pub id: String,
pub group: String,
pub selected: bool,
pub features: BTreeMap<String, f64>,
}Expand description
One deterministic synthetic record used for counterfactual search.
Fields§
§id: StringUnique record identifier.
group: StringGroup label the record belongs to.
selected: boolWhether the record was selected (the positive outcome).
features: BTreeMap<String, f64>Finite feature values keyed by feature name.
Implementations§
Trait Implementations§
Source§impl Clone for SyntheticRecord
impl Clone for SyntheticRecord
Source§fn clone(&self) -> SyntheticRecord
fn clone(&self) -> SyntheticRecord
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 SyntheticRecord
impl Debug for SyntheticRecord
Source§impl PartialEq for SyntheticRecord
impl PartialEq for SyntheticRecord
Source§fn eq(&self, other: &SyntheticRecord) -> bool
fn eq(&self, other: &SyntheticRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SyntheticRecord
Auto Trait Implementations§
impl Freeze for SyntheticRecord
impl RefUnwindSafe for SyntheticRecord
impl Send for SyntheticRecord
impl Sync for SyntheticRecord
impl Unpin for SyntheticRecord
impl UnsafeUnpin for SyntheticRecord
impl UnwindSafe for SyntheticRecord
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