pub struct Subset<'ds> { /* private fields */ }Expand description
Zero-copy indexed view returned by Dataset::subset.
Used for train/val/test splits, subsampling, and index filtering.
get_item(i) forwards to parent.get_item(indices[i]) without copying data.
Corresponds to oa::DsSubset.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'ds> !RefUnwindSafe for Subset<'ds>
impl<'ds> !Send for Subset<'ds>
impl<'ds> !Sync for Subset<'ds>
impl<'ds> !UnwindSafe for Subset<'ds>
impl<'ds> Forget for Subset<'ds>
impl<'ds> Freeze for Subset<'ds>
impl<'ds> Move for Subset<'ds>
impl<'ds> Unpin for Subset<'ds>
impl<'ds> UnsafeUnpin for Subset<'ds>
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
Mutably borrows from an owned value. Read more