pub struct TrainingSupport {
pub axis_min: Array1<f64>,
pub axis_max: Array1<f64>,
}Expand description
Per-axis training support range used by boundary and OOD corrections. For each predictor axis we record the empirical [min, max] from training. Boundary correction inflates variance for x_i within a small fraction of the range from either edge; OOD inflation inflates variance for x_i outside [min, max] proportional to (excess / range).
Fields§
§axis_min: Array1<f64>Axis-wise minimum across the training rows; length = number of input
columns the design treats as continuous predictors. The order must
match predictor_x rows passed in PredictUncertaintyOptions:: predictor_x_for_corrections (see helper below); a length of zero
disables both boundary and OOD corrections.
axis_max: Array1<f64>Axis-wise maximum, paired with axis_min.
Implementations§
Source§impl TrainingSupport
impl TrainingSupport
Sourcepub fn from_training_rows(rows: ArrayView2<'_, f64>) -> Self
pub fn from_training_rows(rows: ArrayView2<'_, f64>) -> Self
Convenience constructor from raw training rows. Computes per-axis min/max in a single pass.
Trait Implementations§
Source§impl Clone for TrainingSupport
impl Clone for TrainingSupport
Source§fn clone(&self) -> TrainingSupport
fn clone(&self) -> TrainingSupport
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 TrainingSupport
impl RefUnwindSafe for TrainingSupport
impl Send for TrainingSupport
impl Sync for TrainingSupport
impl Unpin for TrainingSupport
impl UnsafeUnpin for TrainingSupport
impl UnwindSafe for TrainingSupport
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
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,
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
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.