pub struct OracleReport {
pub sampled: usize,
pub on_skipped: usize,
pub considered: usize,
pub disagreements: Vec<SemanticDisagreement>,
pub disagreement_rate: f64,
}Expand description
Outcome of boolean_semantic_disagreement.
Fields§
§sampled: usizeTotal points drawn.
on_skipped: usizePoints skipped as On/near a boundary of A, B or R (ambiguous), or because a classifier could not decide them.
considered: usizeDecidable points actually compared (sampled - on_skipped).
disagreements: Vec<SemanticDisagreement>Every decidable point whose result membership contradicts CSG.
disagreement_rate: f64disagreements.len() / considered (0 when nothing was decidable).
Implementations§
Source§impl OracleReport
impl OracleReport
Sourcepub fn is_flagged(&self) -> bool
pub fn is_flagged(&self) -> bool
Whether the disagreement rate crosses DISAGREEMENT_THRESHOLD.
Sourcepub fn sample_disagreement(&self) -> Option<SemanticDisagreement>
pub fn sample_disagreement(&self) -> Option<SemanticDisagreement>
A representative disagreeing point, if any.
Trait Implementations§
Source§impl Clone for OracleReport
impl Clone for OracleReport
Source§impl Debug for OracleReport
impl Debug for OracleReport
Auto Trait Implementations§
impl Forget for OracleReport
impl Freeze for OracleReport
impl RefUnwindSafe for OracleReport
impl Send for OracleReport
impl Sync for OracleReport
impl Unpin for OracleReport
impl UnsafeUnpin for OracleReport
impl UnwindSafe for OracleReport
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