Loading...
Searching...
No Matches
cross_validation.h
Go to the documentation of this file.
1// SPDX-License-Identifier: AGPL-3.0-only
2// Copyright (C) 2026 Artificial Intelligence Techniques, S.L. and Roberto López González
3
4#pragma once
5
7
8namespace opennn
9{
10
11class Training;
12
14{
15 float validation_error = 0.0f;
16 float training_error = 0.0f;
17 Index epochs = 0;
18};
19
20vector<vector<Index>> build_fold_partition(Training* training,
21 Index folds_number,
22 Index folds_seed = 0);
23
25 const vector<vector<Index>>& fold_partition);
26
28 Index folds_number,
29 Index folds_seed = 0);
30
31}
Definition training.h:13
Definition configuration.h:10
FoldEvaluation evaluate_folds(Training *training, const vector< vector< Index > > &fold_partition)
vector< vector< Index > > build_fold_partition(Training *training, Index folds_number, Index folds_seed=0)
void refit_final_model_on_development(Training *training, Index folds_number, Index folds_seed=0)
Definition cross_validation.h:14
float training_error
Definition cross_validation.h:16
float validation_error
Definition cross_validation.h:15
Index epochs
Definition cross_validation.h:17