pub struct ComplexityPredictor {
pub threshold: usize,
}Expand description
Complexity-based predictor (higher complexity = higher bug probability)
Fields§
§threshold: usizeComplexity threshold for high bug probability
Trait Implementations§
Source§impl BugPredictor for ComplexityPredictor
impl BugPredictor for ComplexityPredictor
Source§fn predict_bug_probability(&self, features: &CodeFeatures) -> f64
fn predict_bug_probability(&self, features: &CodeFeatures) -> f64
Predict probability that a test case will expose a bug
Source§fn predict_batch(&self, features: &[CodeFeatures]) -> Vec<f64>
fn predict_batch(&self, features: &[CodeFeatures]) -> Vec<f64>
Batch prediction for efficiency
Source§impl Clone for ComplexityPredictor
impl Clone for ComplexityPredictor
Source§fn clone(&self) -> ComplexityPredictor
fn clone(&self) -> ComplexityPredictor
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 ComplexityPredictor
impl Debug for ComplexityPredictor
Auto Trait Implementations§
impl Freeze for ComplexityPredictor
impl RefUnwindSafe for ComplexityPredictor
impl Send for ComplexityPredictor
impl Sync for ComplexityPredictor
impl Unpin for ComplexityPredictor
impl UnsafeUnpin for ComplexityPredictor
impl UnwindSafe for ComplexityPredictor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more