(n_groups: usize, test_groups: usize)
| 176 | } |
| 177 | |
| 178 | pub fn cpcv_path_count(n_groups: usize, test_groups: usize) -> Result<usize, String> { |
| 179 | validate_cpcv_params(n_groups, test_groups)?; |
| 180 | let total = n_choose_k(n_groups, test_groups)?; |
| 181 | Ok((total * test_groups) / n_groups) |
| 182 | } |
| 183 | |
| 184 | pub fn run_walk_forward<E>( |
| 185 | data: &BacktestData, |
no test coverage detected