SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CrossValidationPrintOutput.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2012 Sergey Lisitsyn
8  * Written (W) 2012 Heiko Strathmann
9  *
10  */
11 
12 #ifndef __CROSSVALIDATIONPRINTOUTPUT_H_
13 #define __CROSSVALIDATIONPRINTOUTPUT_H_
14 
16 
17 namespace shogun
18 {
19 
20 class CMachine;
21 class CLabels;
22 class CEvaluation;
23 
27 {
28 public:
29 
32 
35 
37  virtual const char* get_name() const { return "CrossValidationPrintOutput"; }
38 
44  virtual void init_num_runs(index_t num_runs, const char* prefix="");
45 
50  virtual void init_num_folds(index_t num_folds, const char* prefix="");
51 
57  virtual void update_run_index(index_t run_index,
58  const char* prefix="");
59 
65  virtual void update_fold_index(index_t fold_index,
66  const char* prefix="");
67 
73  virtual void update_train_indices(SGVector<index_t> indices,
74  const char* prefix="");
75 
81  virtual void update_test_indices(SGVector<index_t> indices,
82  const char* prefix="");
83 
89  virtual void update_trained_machine(CMachine* machine,
90  const char* prefix="");
91 
97  virtual void update_test_result(CLabels* results,
98  const char* prefix="");
99 
105  virtual void update_test_true_result(CLabels* results,
106  const char* prefix="");
107 
113  virtual void update_evaluation_result(float64_t result,
114  const char* prefix="");
115 
116 protected:
122  char* append_tab_to_string(const char* string);
123 };
124 
125 }
126 
127 #endif /* __CROSSVALIDATIONPRINTOUTPUT_H_ */

SHOGUN Machine Learning Toolbox - Documentation