blob: 0279da625ece5159f595a07d7c471a0c073715a9 (
plain)
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
|
#pragma once
// #include <cstdarg>
namespace Eloquent {
namespace ML {
namespace Port {
class DecisionTree {
public:
/**
* Predict class for features vector
*/
int predict(float *x) {
if (x[1] <= 79.95000076293945) {
if (x[1] <= 50.0) {
return 3;
}
else {
return 2;
}
}
else {
if (x[0] <= 24.049999237060547) {
return 0;
}
else {
return 1;
}
}
}
protected:
};
}
}
}
|