SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MachineEvaluation.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  * Copyright (C) 2012 Jacob Walker
8  *
9  * Some code adapted from CrossValidation class by
10  * Heiko Strathmann
11  */
12 
13 #ifndef CMACHINEEVALUATION_H_
14 #define CMACHINEEVALUATION_H_
15 
16 #include <shogun/lib/config.h>
17 
18 #include <shogun/base/SGObject.h>
22 
23 namespace shogun
24 {
25 
26 class CMachine;
27 class CFeatures;
28 class CLabels;
29 class CSplittingStrategy;
30 class CEvaluation;
31 
37 {
38 
39 public:
40 
42 
51  CMachineEvaluation(CMachine* machine, CFeatures* features, CLabels* labels,
52  CSplittingStrategy* splitting_strategy,
53  CEvaluation* evaluation_criterion, bool autolock = true);
54 
62  CMachineEvaluation(CMachine* machine, CLabels* labels,
63  CSplittingStrategy* splitting_strategy,
64  CEvaluation* evaluation_criterion, bool autolock = true);
65 
66 
67  virtual ~CMachineEvaluation();
68 
71 
79  virtual CEvaluationResult* evaluate() = 0;
80 
82  CMachine* get_machine() const;
83 
86  void set_autolock(bool autolock) { m_autolock = autolock; }
87 
88 protected:
89 
91  virtual void init();
92 
93 protected:
94 
97 
100 
103 
106 
109 
112 
115 
116 };
117 
118 } /* namespace shogun */
119 
120 #endif /* CMACHINEEVALUATION_H_ */

SHOGUN Machine Learning Toolbox - Documentation