Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __CROSSVALIDATIONPRINTOUTPUT_H_
00013 #define __CROSSVALIDATIONPRINTOUTPUT_H_
00014
00015 #include <shogun/evaluation/CrossValidationOutput.h>
00016
00017 namespace shogun
00018 {
00019
00020 class CMachine;
00021 class CLabels;
00022 class CEvaluation;
00023
00026 class CCrossValidationPrintOutput: public CCrossValidationOutput
00027 {
00028 public:
00029
00031 CCrossValidationPrintOutput() {};
00032
00034 virtual ~CCrossValidationPrintOutput() {};
00035
00037 virtual const char* get_name() const { return "CrossValidationPrintOutput"; }
00038
00044 virtual void init_num_runs(index_t num_runs, const char* prefix="");
00045
00050 virtual void init_num_folds(index_t num_folds, const char* prefix="");
00051
00057 virtual void update_run_index(index_t run_index,
00058 const char* prefix="");
00059
00065 virtual void update_fold_index(index_t fold_index,
00066 const char* prefix="");
00067
00073 virtual void update_train_indices(SGVector<index_t> indices,
00074 const char* prefix="");
00075
00081 virtual void update_test_indices(SGVector<index_t> indices,
00082 const char* prefix="");
00083
00089 virtual void update_trained_machine(CMachine* machine,
00090 const char* prefix="");
00091
00097 virtual void update_test_result(CLabels* results,
00098 const char* prefix="");
00099
00105 virtual void update_test_true_result(CLabels* results,
00106 const char* prefix="");
00107
00113 virtual void update_evaluation_result(float64_t result,
00114 const char* prefix="");
00115
00116 protected:
00122 char* append_tab_to_string(const char* string);
00123 };
00124
00125 }
00126
00127 #endif