pub struct DiscreteFullConformalSet {
pub members: Vec<f64>,
pub candidates: Vec<DiscreteCandidate>,
pub alpha: f64,
pub n_augmented: usize,
pub lower_tail_unresolved: Option<f64>,
pub upper_tail_unresolved: Option<f64>,
}Expand description
Exact full-conformal prediction set for a DISCRETE response family, computed by enumeration of candidate responses with one symmetric refit per candidate (#942 Layer 2, discrete arm).
There is no homotopy and no approximation anywhere in this object: for
each candidate z the fitting map is run to its optimum, the n+1 scores
are ranked, and the candidate is kept iff its conformal p-value exceeds
α. Validity is the standard full-conformal argument — exchangeability of
the n+1 rows plus symmetry of the map — and EXACTNESS is by construction
(the support is finite or explicitly windowed; every retained candidate
was actually refit).
Fields§
§members: Vec<f64>Retained candidates, ascending.
candidates: Vec<DiscreteCandidate>Every enumerated candidate with its p-value (diagnostics; the
boundary-adjacent p-values are the discrete analogue of Layer 1’s
boundary_margin).
alpha: f64§n_augmented: usizen + 1.
lower_tail_unresolved: Option<f64>Some(z_first) when the SMALLEST enumerated candidate was a member
of a WINDOWED enumeration — the retained set may continue
contiguously below the window. Always None for exhaustive supports
(the Bernoulli arm). For a windowed support, None only says the
retained set does not continue through the enumerated edge; absent a
monotone-tail theorem for the fitting map, it says nothing about
non-contiguous retained candidates farther outside the window.
upper_tail_unresolved: Option<f64>Mirror of lower_tail_unresolved for the largest candidate.
Trait Implementations§
Source§impl Clone for DiscreteFullConformalSet
impl Clone for DiscreteFullConformalSet
Source§fn clone(&self) -> DiscreteFullConformalSet
fn clone(&self) -> DiscreteFullConformalSet
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for DiscreteFullConformalSet
impl RefUnwindSafe for DiscreteFullConformalSet
impl Send for DiscreteFullConformalSet
impl Sync for DiscreteFullConformalSet
impl Unpin for DiscreteFullConformalSet
impl UnsafeUnpin for DiscreteFullConformalSet
impl UnwindSafe for DiscreteFullConformalSet
Blanket Implementations§
impl<T> Allocation 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,
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.