pub struct CoresetCertificate {
pub eps_spectral: f64,
pub eps_likelihood: f64,
pub dim_effective: usize,
pub n_selected: usize,
}Expand description
Certified coreset error budget carried to race consumers.
Fields§
§eps_spectral: f64Spectral approximation radius for the log-determinant term:
(1 - eps_spectral)H <= H_C <= (1 + eps_spectral)H on the effective
eigenspace.
eps_likelihood: f64Additive likelihood error radius supplied by the sensitivity coreset on its documented chart ball.
dim_effective: usizeRank of the factored border plus active-coordinate subspace actually certified. Null directions of the summed row sketch are excluded.
n_selected: usizeNumber of distinct rows retained by the coreset.
Implementations§
Source§impl CoresetCertificate
impl CoresetCertificate
pub fn new( eps_spectral: f64, eps_likelihood: f64, dim_effective: usize, n_selected: usize, ) -> Result<Self, String>
Sourcepub fn logdet_error_bound(&self) -> f64
pub fn logdet_error_bound(&self) -> f64
Worst-case log-determinant transfer error implied by the spectral certificate.
Sourcepub fn race_transfer_margin(&self) -> f64
pub fn race_transfer_margin(&self) -> f64
Race-transfer margin: consumers must require a coreset decision margin strictly above this value before inheriting the full-corpus verdict.
Sourcepub fn certify_margin(&self, decision_margin: f64) -> CoresetMarginVerdict
pub fn certify_margin(&self, decision_margin: f64) -> CoresetMarginVerdict
Explicit verdict for a proposed coreset race margin. Consumers should
propagate CoresetMarginVerdict::InsufficientMargin instead of making
a silent decision below the certificate margin.
Trait Implementations§
Source§impl Certificate for CoresetCertificate
impl Certificate for CoresetCertificate
Source§fn verdict(&self) -> Verdict
fn verdict(&self) -> Verdict
Verdict::Unavailable /
Verdict::Insufficient rather than a silent pass when the evidence is
missing or below margin.Source§fn ledger_entry(&self) -> LedgerEntry
fn ledger_entry(&self) -> LedgerEntry
Source§impl Clone for CoresetCertificate
impl Clone for CoresetCertificate
Source§fn clone(&self) -> CoresetCertificate
fn clone(&self) -> CoresetCertificate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CoresetCertificate
Source§impl Debug for CoresetCertificate
impl Debug for CoresetCertificate
Source§impl PartialEq for CoresetCertificate
impl PartialEq for CoresetCertificate
Source§fn eq(&self, other: &CoresetCertificate) -> bool
fn eq(&self, other: &CoresetCertificate) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CoresetCertificate
Auto Trait Implementations§
impl Freeze for CoresetCertificate
impl RefUnwindSafe for CoresetCertificate
impl Send for CoresetCertificate
impl Sync for CoresetCertificate
impl Unpin for CoresetCertificate
impl UnsafeUnpin for CoresetCertificate
impl UnwindSafe for CoresetCertificate
Blanket Implementations§
impl<T> Allocation for T
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.