-
Notifications
You must be signed in to change notification settings - Fork 261
Expand file tree
/
Copy pathrandom_forest.rb
More file actions
37 lines (37 loc) · 943 Bytes
/
random_forest.rb
File metadata and controls
37 lines (37 loc) · 943 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
def score(input)
if input[12] <= 9.845000267028809
if input[5] <= 6.959500074386597
if input[6] <= 96.20000076293945
var0 = 25.093162393162395
else
var0 = 50.0
end
else
var0 = 38.074999999999996
end
else
if input[12] <= 15.074999809265137
var0 = 20.518439716312056
else
var0 = 14.451282051282046
end
end
if input[12] <= 9.650000095367432
if input[5] <= 7.437000036239624
if input[7] <= 1.47284996509552
var1 = 50.0
else
var1 = 26.7965317919075
end
else
var1 = 44.21176470588236
end
else
if input[12] <= 17.980000495910645
var1 = 19.645652173913035
else
var1 = 12.791919191919195
end
end
(var0 + var1) * 0.5
end