-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClassification.hpp
More file actions
41 lines (30 loc) · 816 Bytes
/
Copy pathClassification.hpp
File metadata and controls
41 lines (30 loc) · 816 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
32
33
34
35
36
37
38
39
40
41
#ifndef Classification_hpp
#define Classification_hpp
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <iomanip>
#include <cmath>
#include <algorithm>
#include <list>
#include <map>
#include "Table.hpp"
using namespace std;
class Classification{
int accuracy;vector<vector<double>> data;
protected:
public:
Classification(){};
bool is_K_larger_Learning_Data(int k);
void checkMatches_R_C();
bool Is_Lerngdata_Cols_Match_Data_Cols();
bool Is_Lerng_data_Rows_Match_Lear_Data_Label_Rows();
float Euclidean(int k);
float Manhattan(int k);
void Classification_Read_CSV(string st_file,string nd_file,string rd_file,string th_file);
void printFiles();
Table obj;
};
#endif0