Realm

oa::data::DsOhlcv

Engine-borrowing adapter for the existing Dataset/DataLoader contract. Host windows borrow columns. get_sample packs row-major FP32 [lookback, 5] input and horizon future-close labels and uploads each once. Timestamps remain metadata, never float features. No normalization or readback occurs. Host windowing is zero-copy; packing and device upload are explicit copies.

StRust public API

Declaration

pub struct DsOhlcv<'a> { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn windows(&self) -> &OhlcvWindows<'a>
fn len(&self) -> i64
fn get_item(&self, index: i64) -> Result<Matrix>
fn get_sample(&self, index: i64) -> Result<Sample>
fn is_empty(&self) -> bool
fn subset(&self, indices: Vec<i64>) -> Result<Subset<'_>>where Self: Sized,
fn shuffled_subset(&self, seed: u64) -> Result<Subset<'_>>where Self: Sized,

Associated Functions

pub fn new(engine: &'a Engine, windows: OhlcvWindows<'a>) -> Self

Public Method Documentation

pub fn windows( &self ) -> &OhlcvWindows<'a>
No public source comment is attached to this declaration.
fn len( &self ) -> i64
No public source comment is attached to this declaration.
fn get_item( &self, index: i64 ) -> Result<Matrix>
No public source comment is attached to this declaration.
fn get_sample( &self, index: i64 ) -> Result<Sample>
No public source comment is attached to this declaration.
fn is_empty( &self ) -> bool
No public source comment is attached to this declaration.
fn subset( &self, indices: Vec<i64> ) -> Result<Subset<'_>>where Self: Sized,
No public source comment is attached to this declaration.
fn shuffled_subset( &self, seed: u64 ) -> Result<Subset<'_>>where Self: Sized,
No public source comment is attached to this declaration.
pub fn new( engine: &'a Engine, windows: OhlcvWindows<'a> ) -> Self
No public source comment is attached to this declaration.