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 / OaDataFrame | Series / DataFrame |
trade OaDataOhlcv | OhlcvView |
oa::Dataset | Dataset |
oa::Dataset::Sample | Sample |
oa::DataLoader | DataLoader |
oa::DataLoaderConfig | DataLoaderConfig |
oa::DataLoader::Batch | Batch |
oa::DsSubset | Dataset::subset → Subset |
oa::FnDataset::SplitResult | SplitResult |
oa::FnDataset::shuffle | shuffle |
oa::FnDataset::randomSplit | random_split |
oa::FnDataset::collate | collate |
Structs§
- Batch
- Batched output:
x[B, …] and optionaly[B, …]. Corresponds tooa::DataLoader::Batch. - Data
Frame - Ordered named host columns with one checked row count.
- Data
Frame View - Borrowed row interval over a frame. Columns retain their original buffers.
- Data
Loader - Stateful batch iterator over a borrowed
Dataset. - Data
Loader Config - Configuration for
DataLoader. - Host
Batch - Collated host batch:
[B, ...]tensors stacked along a new leading axis. - Host
Sample - Host-side sample: input
xand optional labely, as produced byHostDataset::get_host_sample. - Host
Tensor - A dense tensor living in host memory.
- Host
Tensor Dataset - Dense labeled feature/label pair implementing
HostDataset. - Matrix
Dataset - Dense labeled feature/label pair implementing
Dataset. - Ohlcv
Dataset - Runtime-borrowing adapter for the existing Dataset/DataLoader contract.
- Ohlcv
View - Validated borrowed candles. Prices and volume accept F32 or F64 columns; timestamps are I64. Source columns remain immutable while this view exists.
- Ohlcv
Window Config - Window shape; targets are the immediately following future close prices.
- Ohlcv
Windows - Host-only borrowed sliding windows. Construct separately within each split.
- Prefetch
Data Loader - Asynchronous batch iterator over a shared
HostDataset. - Sample
- Multi-tensor sample: input
xand optional labely. - Split
Result - Result of a train / validation / test split.
- Subset
- Zero-copy indexed view returned by
Dataset::subset.
Enums§
- Host
Values - 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.
- Series
View - Borrowed contiguous column; independent of an Runtime.
- Series
View Mut - Exclusively borrowed column storage for in-place edits without resizing.
- Unix
Time Unit - Unit of exact signed Unix timestamps; negative values precede the epoch.
Traits§
- Dataset
- Object-safe dataset contract: indexed access and a total count.
- Host
Dataset - 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.