use crate::Matrix;
#[derive(Clone, Copy, Debug)]
pub struct DataLoaderConfig {
pub batch_size: i32,
pub shuffle: bool,
pub seed: u64,
pub drop_last: bool,
}
impl Default for DataLoaderConfig {
fn default() -> Self {
Self {
batch_size: 32,
shuffle: true,
seed: 0,
drop_last: false,
}
}
}
pub struct SplitResult {
pub train: Vec<i64>,
pub val: Vec<i64>,
pub test: Vec<i64>,
}
#[derive(Clone, Copy, Debug)]
pub struct OhlcvWindowConfig {
pub lookback: usize,
pub horizon: usize,
pub stride: usize,
}
pub struct Batch {
pub x: Matrix,
pub y: Option<Matrix>,
}