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.
Trait Implementations§
Source§impl Certificate for CoresetCertificate
impl Certificate for CoresetCertificate
Source§fn verdict(&self) -> Verdict
fn verdict(&self) -> Verdict
The conservative verdict. MUST be derived from the certificate’s own
(unchanged) decision rule, and MUST return
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
Fold claim + evidence + verdict into one ledger record.
Source§impl Clone for CoresetCertificate
impl Clone for CoresetCertificate
Source§fn clone(&self) -> CoresetCertificate
fn clone(&self) -> CoresetCertificate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CoresetCertificate
Source§impl Debug for CoresetCertificate
impl Debug for CoresetCertificate
Source§impl PartialEq for CoresetCertificate
impl PartialEq for CoresetCertificate
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
Mutably borrows from an owned value. Read more
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> ⓘ
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 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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.