pub struct LabGuard { /* private fields */ }Implementations§
Source§impl LabGuard
impl LabGuard
pub fn new() -> Self
pub fn with_loss_threshold(self, threshold: f32) -> Self
pub fn submit(&mut self, hypothesis: Hypothesis) -> GateResult
pub fn evaluate(&mut self, result: &ExperimentResult) -> Option<Verdict>
pub fn hypothesis(&self, id: &str) -> Option<&Hypothesis>
pub fn result(&self, id: &str) -> Option<&ExperimentResult>
pub fn verdict(&self, id: &str) -> Option<&Verdict>
pub fn confirmed_count(&self) -> usize
pub fn falsified_count(&self) -> usize
pub fn total_evaluated(&self) -> usize
pub fn average_loss(&self) -> f32
Sourcepub fn by_status(&self, status: HypothesisStatus) -> Vec<&Hypothesis>
pub fn by_status(&self, status: HypothesisStatus) -> Vec<&Hypothesis>
Get hypotheses by status
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LabGuard
impl RefUnwindSafe for LabGuard
impl Send for LabGuard
impl Sync for LabGuard
impl Unpin for LabGuard
impl UnsafeUnpin for LabGuard
impl UnwindSafe for LabGuard
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