/usr/include/shogun/evaluation/DirectorContingencyTableEvaluation.h is in libshogun-dev 3.2.0-7.3build4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Copyright (W) 2012 Sergey Lisitsyn
*/
#ifndef DIRECTORCONTINGENCYTABLEEVALUATION_H_
#define DIRECTORCONTINGENCYTABLEEVALUATION_H_
#include <shogun/evaluation/ContingencyTableEvaluation.h>
#include <shogun/lib/config.h>
#ifdef USE_SWIG_DIRECTORS
namespace shogun
{
#define IGNORE_IN_CLASSLIST
/** @brief The class DirectorContingencyTableEvaluation
* a base class used to evaluate 2-class classification
* using SWIG directors.
*/
IGNORE_IN_CLASSLIST class CDirectorContingencyTableEvaluation: public CContingencyTableEvaluation
{
public:
/** constructor */
CDirectorContingencyTableEvaluation() :
CContingencyTableEvaluation(CUSTOM)
{
}
/** destructor */
virtual ~CDirectorContingencyTableEvaluation()
{
}
/** Evaluate */
virtual float64_t evaluate(CLabels* predicted, CLabels* ground_truth)
{
CContingencyTableEvaluation::evaluate(predicted, ground_truth);
}
/** Computes custom score, not implemented
* @return custom score value
*/
virtual float64_t get_custom_score()
{
SG_NOTIMPLEMENTED
return 0.0;
}
/** Returns custom direction, not implemented
* @return direction of custom score
*/
virtual EEvaluationDirection get_custom_direction()
{
SG_NOTIMPLEMENTED
return ED_MAXIMIZE;
}
/** get name */
virtual const char* get_name() const
{
return "DirectorContingencyTableEvaluation";
}
};
}
#endif /* USE_SWIG_DIRECTORS */
#endif /* DIRECTORCONTINGENCYTABLEEVALUATION_H_ */
|