pub struct ConformalPredictor { /* private fields */ }Expand description
Conformal predictor with bucketed calibration.
Implementations§
Source§impl ConformalPredictor
impl ConformalPredictor
Sourcepub fn new(config: ConformalConfig) -> Self
pub fn new(config: ConformalConfig) -> Self
Create a new predictor with the given config.
Sourcepub fn config(&self) -> &ConformalConfig
pub fn config(&self) -> &ConformalConfig
Access the configuration.
Sourcepub fn bucket_samples(&self, key: BucketKey) -> usize
pub fn bucket_samples(&self, key: BucketKey) -> usize
Number of samples currently stored for a bucket.
Sourcepub fn reset_bucket(&mut self, key: BucketKey)
pub fn reset_bucket(&mut self, key: BucketKey)
Clear calibration for a single bucket.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConformalPredictor
impl RefUnwindSafe for ConformalPredictor
impl Send for ConformalPredictor
impl Sync for ConformalPredictor
impl Unpin for ConformalPredictor
impl UnwindSafe for ConformalPredictor
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