forked from skp2140/CliqueLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
47 lines (34 loc) · 930 Bytes
/
main.cpp
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
//============================================================================
// Name : main.cpp
// Author : CliqueLib
// Version :
// Copyright :
// Description : Main function
//============================================================================
#include "tests.h"
using namespace arma;
double getAccuracy(colvec& a, colvec& b) {
return double(accu(a==b))/size(a, 0);
}
int main()
{
//reading csv file tests
test_read_csv();
//test splitting csv files
test_split_test_train_dataset();
//test knn functions
test_knn();
//test knn functions
test_knn_std();
//test logistic regression functions
test_logistic_regression();
//test logistic regression functions
test_logistic_regression_std();
//test perceptron
test_perceptron();
//test svm
test_svm();
//test adaboost
test_adaboost();
return 0;
}