SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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_ */
void set_autolock(bool autolock)
The class Labels models labels, i.e. class assignments of objects.
Definition: Labels.h:43
Abstract base class for all splitting types. Takes a CLabels instance and generates a desired number ...
A generic learning machine interface.
Definition: Machine.h:143
virtual CEvaluationResult * evaluate()=0
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:112
CMachine * get_machine() const
EEvaluationDirection
Definition: Evaluation.h:29
Abstract class that contains the result generated by the MachineEvaluation class. ...
Machine Evaluation is an abstract class that evaluates a machine according to some criterion...
EEvaluationDirection get_evaluation_direction()
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
The class Features is the base class of all feature objects.
Definition: Features.h:68
Class Evaluation, a base class for other classes used to evaluate labels, e.g. accuracy of classifica...
Definition: Evaluation.h:40
CSplittingStrategy * m_splitting_strategy

SHOGUN Machine Learning Toolbox - Documentation