| 167 | |
| 168 | #[derive(Debug, Clone, PartialEq)] |
| 169 | pub struct CpcvResult { |
| 170 | pub folds: Vec<FoldPerformance>, |
| 171 | pub splits: Vec<SplitDefinition>, |
| 172 | pub path_count: usize, |
| 173 | pub path_assignments: Vec<CpcvPathAssignment>, |
| 174 | pub path_distribution: Vec<CpcvPathPerformance>, |
| 175 | pub diagnostics: BacktestDiagnostics, |
| 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)?; |
nothing calls this directly
no outgoing calls
no test coverage detected