pub struct TabularSample {
pub numeric: Tensor,
pub categorical: Tensor,
}Expand description
One model-ready row, with separate floating-point and categorical inputs.
Fields§
§numeric: TensorFloat standardized features, shape [numeric_columns].
categorical: TensorInt64 category IDs, shape [categorical_columns].
Trait Implementations§
Source§impl Debug for TabularSample
impl Debug for TabularSample
Source§impl DefaultCollate for TabularSample
impl DefaultCollate for TabularSample
Source§type Batch = TabularBatch
type Batch = TabularBatch
Batch produced from a vector of this sample type.
Source§fn default_collate(samples: Vec<Self>) -> Result<TabularBatch, CollateError>
fn default_collate(samples: Vec<Self>) -> Result<TabularBatch, CollateError>
Applies built-in typed collation.
Source§impl DefaultConvert for TabularSample
impl DefaultConvert for TabularSample
Source§type Output = TabularSample
type Output = TabularSample
Output produced from this sample type.
Source§fn default_convert(self) -> Result<Self, CollateError>
fn default_convert(self) -> Result<Self, CollateError>
Applies built-in conversion without automatic batching.
Source§impl MemoryFootprint for TabularSample
impl MemoryFootprint for TabularSample
Source§fn resident_bytes(&self) -> usize
fn resident_bytes(&self) -> usize
Returns the conservative logical payload size in bytes.
Source§impl PinMemory for TabularSample
impl PinMemory for TabularSample
Source§fn pin_memory(self, d: Device) -> Result<Self>
fn pin_memory(self, d: Device) -> Result<Self>
Pins this value for the requested accelerator.
Auto Trait Implementations§
impl !Sync for TabularSample
impl Forget for TabularSample
impl Freeze for TabularSample
impl RefUnwindSafe for TabularSample
impl Send for TabularSample
impl Unpin for TabularSample
impl UnsafeUnpin for TabularSample
impl UnwindSafe for TabularSample
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