pub struct WalkForwardConfig {
pub train_window: usize,
pub test_window: usize,
pub step: usize,
pub param_space: Vec<ParamRange>,
}Expand description
Configuration for a walk-forward optimization run.
Fields§
§train_window: usizeNumber of bars in each training (in-sample) window.
test_window: usizeNumber of bars in each test (out-of-sample) window.
step: usizeNumber of bars to advance the window on each step.
Typically set to test_window for non-overlapping OOS periods.
param_space: Vec<ParamRange>Parameter space to search over. Each element defines one axis.
Implementations§
Trait Implementations§
Source§impl Clone for WalkForwardConfig
impl Clone for WalkForwardConfig
Source§impl Debug for WalkForwardConfig
impl Debug for WalkForwardConfig
Source§impl<'de> Deserialize<'de> for WalkForwardConfig
impl<'de> Deserialize<'de> for WalkForwardConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WalkForwardConfig
impl RefUnwindSafe for WalkForwardConfig
impl Send for WalkForwardConfig
impl Sync for WalkForwardConfig
impl Unpin for WalkForwardConfig
impl UnsafeUnpin for WalkForwardConfig
impl UnwindSafe for WalkForwardConfig
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