OpenANN
1.1.0
An open source library for artificial neural networks.
Main Page
Classes
Files
List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
OpenANN
Evaluator.h
Go to the documentation of this file.
1
#ifndef OPENANN_EVALUATOR_H_
2
#define OPENANN_EVALUATOR_H_
3
4
#include <
OpenANN/io/Logger.h
>
5
6
class
Stopwatch
;
7
8
namespace
OpenANN
9
{
10
11
class
Learner;
12
class
DataSet;
13
21
class
Evaluator
22
{
23
public
:
24
virtual
~Evaluator
() {}
30
virtual
void
evaluate
(
Learner
& learner,
DataSet
& dataSet) = 0;
31
};
32
48
class
MulticlassEvaluator
:
public
Evaluator
49
{
50
int
interval;
51
Logger
* logger;
52
Stopwatch
* stopwatch;
53
int
iteration;
54
public
:
61
MulticlassEvaluator
(
int
interval = 1,
62
Logger::Target
target =
Logger::CONSOLE
);
63
virtual
~MulticlassEvaluator
();
64
virtual
void
evaluate
(
Learner
& learner,
DataSet
& dataSet);
65
};
66
67
}
// namespace OpenANN
68
69
#endif // OPENANN_EVALUATOR_H_
Generated on Wed Jul 9 2014 08:57:52 for OpenANN by
1.8.4