Skip to main content

Module data

Module data 

Source
Expand description

Checked host columns, OHLCV windows, datasets and device batch collation.

Donor: oa/data/dataset.h, oa/data/dsSubset.h, oa/data/fnDataset.h

C++Rust
trade OaSeries / OaDataFrameSeries / DataFrame
trade OaDataOhlcvOhlcvView
oa::DatasetDataset
oa::Dataset::SampleSample
oa::DataLoaderDataLoader
oa::DataLoaderConfigDataLoaderConfig
oa::DataLoader::BatchBatch
oa::DsSubsetDataset::subset → Subset
oa::FnDataset::SplitResultSplitResult
oa::FnDataset::shuffleshuffle
oa::FnDataset::randomSplitrandom_split
oa::FnDataset::collatecollate

Structs§

Batch
Batched output: x [B, …] and optional y [B, …]. Corresponds to oa::DataLoader::Batch.
DataFrame
Ordered named host columns with one checked row count.
DataFrameView
Borrowed row interval over a frame. Columns retain their original buffers.
DataLoader
Stateful batch iterator over a borrowed Dataset.
DataLoaderConfig
Configuration for DataLoader.
HostBatch
Collated host batch: [B, ...] tensors stacked along a new leading axis.
HostSample
Host-side sample: input x and optional label y, as produced by HostDataset::get_host_sample.
HostTensor
A dense tensor living in host memory.
HostTensorDataset
Dense labeled feature/label pair implementing HostDataset.
MatrixDataset
Dense labeled feature/label pair implementing Dataset.
OhlcvDataset
Runtime-borrowing adapter for the existing Dataset/DataLoader contract.
OhlcvView
Validated borrowed candles. Prices and volume accept F32 or F64 columns; timestamps are I64. Source columns remain immutable while this view exists.
OhlcvWindowConfig
Window shape; targets are the immediately following future close prices.
OhlcvWindows
Host-only borrowed sliding windows. Construct separately within each split.
PrefetchDataLoader
Asynchronous batch iterator over a shared HostDataset.
Sample
Multi-tensor sample: input x and optional label y.
SplitResult
Result of a train / validation / test split.
Subset
Zero-copy indexed view returned by Dataset::subset.

Enums§

HostValues
Typed host values carried by worker-produced samples and batches.
Series
Contiguous typed host column. Moving it into a frame does not copy its data.
SeriesView
Borrowed contiguous column; independent of an Runtime.
SeriesViewMut
Exclusively borrowed column storage for in-place edits without resizing.
UnixTimeUnit
Unit of exact signed Unix timestamps; negative values precede the epoch.

Traits§

Dataset
Object-safe dataset contract: indexed access and a total count.
HostDataset
Thread-shareable host dataset contract for PrefetchDataLoader.

Functions§

collate
Stack samples into a leading batch dimension using device-side concatenation.
collate_host
Collate host samples into one [B, ...] batch.
random_split
Randomly split indices into train, validation, and test subsets.
shuffle
Fisher-Yates shuffle using the donor’s PCG32 stream and unbiased rejection.