pub struct BaselinePredictor;Expand description
Simple baseline predictor (always returns 0.5)
Trait Implementations§
Source§impl BugPredictor for BaselinePredictor
impl BugPredictor for BaselinePredictor
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 BaselinePredictor
impl Clone for BaselinePredictor
Source§fn clone(&self) -> BaselinePredictor
fn clone(&self) -> BaselinePredictor
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 BaselinePredictor
impl Debug for BaselinePredictor
Source§impl Default for BaselinePredictor
impl Default for BaselinePredictor
Source§fn default() -> BaselinePredictor
fn default() -> BaselinePredictor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BaselinePredictor
impl RefUnwindSafe for BaselinePredictor
impl Send for BaselinePredictor
impl Sync for BaselinePredictor
impl Unpin for BaselinePredictor
impl UnsafeUnpin for BaselinePredictor
impl UnwindSafe for BaselinePredictor
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