-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevaluator.h
More file actions
31 lines (27 loc) · 844 Bytes
/
evaluator.h
File metadata and controls
31 lines (27 loc) · 844 Bytes
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
#ifndef CLASSIFY_H
#define CLASSIFY_H
#include "image_reader.h"
#include "data_retriever.h"
#include "classifier.h"
#include "data_retriever.h"
#include "image_reader.h"
#include <istream>
#include <ostream>
#include <iostream>
#include <string>
#include <vector>
#include <map>
using namespace std;
class Evaluator {
public:
double confusion_matrix[10][10];
double percentage_of_correctly_predicted_classes;
static const int kImageLength = 28;
static const int kNumberOfClasses = 10;
Evaluator();
Evaluator(Classifier probability_model);
void CheckCorrectnessOfModel(Classifier probability_model);
void CalculateTotalNumberOfImagesPerClass(double matrix[10][10], int row);
friend ostream &operator<<(ostream &output_stream, const Evaluator &evaluator);
};
#endif