pub struct RowBlockShard {
pub target: Arc<Array2<f64>>,
pub rows: Vec<usize>,
}Expand description
A held-out row-block shard for the universal-inference estimation/evaluation split the gates run over: a contiguous block of row indices into the FULL target the triggers were not tuned on.
The split is realized through the term’s per-row reconstruction weights
(SaeManifoldTerm::set_row_loss_weights): a candidate is refit with the
currently-held-out shards’ rows at weight 0 (no fitting pressure) and the
estimation rows at weight 1, then EVALUATED on the held-out rows. The
predictable-plugin e-process streams the shards: shard k is evaluated under
a candidate that has not yet seen its rows, then folded into the estimation
set (un-masked) for shard k+1 — exactly the contract
run_atom_birth_gate
guarantees the call order of.
Fields§
§target: Arc<Array2<f64>>The full target, shared across shards ((N, p)).
rows: Vec<usize>Row indices into the full target that this shard holds out for evaluation.
Trait Implementations§
Source§impl Clone for RowBlockShard
impl Clone for RowBlockShard
Source§fn clone(&self) -> RowBlockShard
fn clone(&self) -> RowBlockShard
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 RowBlockShard
impl RefUnwindSafe for RowBlockShard
impl Send for RowBlockShard
impl Sync for RowBlockShard
impl Unpin for RowBlockShard
impl UnsafeUnpin for RowBlockShard
impl UnwindSafe for RowBlockShard
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.