pub struct SampleRelationSet {
pub records: Vec<SampleRelation>,
}Fields§
§records: Vec<SampleRelation>Implementations§
Source§impl SampleRelationSet
impl SampleRelationSet
pub fn validate(&self) -> Result<(), DagMlError>
pub fn fingerprint(&self) -> Result<String, DagMlError>
pub fn validate_against_fold_set( &self, fold_set: &FoldSet, policy: &LeakageUnitPolicy, ) -> Result<(), DagMlError>
pub fn sample_for_observation( &self, observation_id: &ObservationId, ) -> Option<&SampleId>
pub fn target_for_sample(&self, sample_id: &SampleId) -> Option<&TargetId>
pub fn group_for_sample(&self, sample_id: &SampleId) -> Option<&GroupId>
pub fn observation_count_for_sample(&self, sample_id: &SampleId) -> usize
pub fn sample_targets(&self) -> BTreeMap<SampleId, TargetId>
pub fn sample_groups(&self) -> BTreeMap<SampleId, GroupId>
Trait Implementations§
Source§impl Clone for SampleRelationSet
impl Clone for SampleRelationSet
Source§fn clone(&self) -> SampleRelationSet
fn clone(&self) -> SampleRelationSet
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 SampleRelationSet
impl Debug for SampleRelationSet
Source§impl Default for SampleRelationSet
impl Default for SampleRelationSet
Source§fn default() -> SampleRelationSet
fn default() -> SampleRelationSet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SampleRelationSet
impl<'de> Deserialize<'de> for SampleRelationSet
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SampleRelationSet, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SampleRelationSet, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SampleRelationSet
impl PartialEq for SampleRelationSet
Source§fn eq(&self, other: &SampleRelationSet) -> bool
fn eq(&self, other: &SampleRelationSet) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SampleRelationSet
impl Serialize for SampleRelationSet
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SampleRelationSet
Auto Trait Implementations§
impl Freeze for SampleRelationSet
impl RefUnwindSafe for SampleRelationSet
impl Send for SampleRelationSet
impl Sync for SampleRelationSet
impl Unpin for SampleRelationSet
impl UnsafeUnpin for SampleRelationSet
impl UnwindSafe for SampleRelationSet
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