SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Evaluation.h
Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Written (W) 2011 Sergey Lisitsyn
00008  * Copyright (C) 2011 Berlin Institute of Technology and Max-Planck-Society
00009  */
00010 
00011 #ifndef EVALUATION_H_
00012 #define EVALUATION_H_
00013 
00014 #include <shogun/labels/Labels.h>
00015 #include <shogun/base/SGObject.h>
00016 
00017 namespace shogun
00018 {
00019 class CLabels;
00020 
00024 enum EEvaluationDirection
00025 {
00026     ED_MINIMIZE=0,
00027     ED_MAXIMIZE=1
00028 };
00029 
00035 class CEvaluation : public CSGObject
00036 {
00037 public:
00039     CEvaluation() : CSGObject() { };
00040 
00042     virtual ~CEvaluation() { };
00043 
00051     virtual float64_t evaluate(CLabels* predicted, CLabels* ground_truth)=0;
00052 
00058     virtual void set_indices(SGVector<index_t> indices) { }
00059 
00061     virtual EEvaluationDirection get_evaluation_direction() const=0;
00062 };
00063 }
00064 #endif /* EVALUATION_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation