Get the data from Github

Data summary
Name figs
Number of rows 34918
Number of columns 41
_______________________
Column type frequency:
Date 1
factor 14
numeric 26
________________________
Group variables None

Variable type: Date

skim_variable n_missing complete_rate min max median n_unique
race_date 0 1 2016-04-13 2021-12-20 2019-10-31 1433

Variable type: factor

skim_variable n_missing complete_rate ordered n_unique top_counts
target 0 1 FALSE 2 NoT: 27015, TOP: 7903
horse 0 1 FALSE 3388 CHA: 57, EL : 53, STA: 53, STA: 52
surface_cond 0 1 FALSE 13 fst: 16041, frm: 10188, wsm: 2845, vsl: 1734
precip 0 1 FALSE 3 cle: 33590, rai: 1250, sno: 78
wind 0 1 FALSE 3 cal: 30965, hvy: 2537, vhv: 1416
gender 0 1 FALSE 2 Mal: 23692, Fem: 11226
distance 0 1 FALSE 22 8.0: 9161, 6.0: 7606, 8.5: 4518, 7.0: 2920
jky 0 1 FALSE 729 I O: 1009, L S: 910, M F: 886, J O: 853
trk_code 0 1 FALSE 145 GP: 8279, AQU: 4746, BEL: 3269, SA: 2878
surf 0 1 FALSE 5 Dir: 21037, Tur: 11548, Syn: 1245, Inn: 1019
s_cond 0 1 FALSE 8 Fst: 18059, Frm: 10175, Gd: 3216, Sly: 2129
PT3 0 1 FALSE 352 –: 3388, P: 3007, XXX: 2290, TP: 1717
form_cycle 0 1 FALSE 24 AX: 6410, CX: 3647, BX: 3470, A1: 3388
race_type 0 1 FALSE 2 Spr: 18436, Rou: 16482

Variable type: numeric

skim_variable n_missing complete_rate mean sd p0 p25 p50 p75 p100 hist
yr 0 1 2019.22 0.99 2016.00 2019.00 2019.00 2020.00 2021.0 ▁▃▇▇▂
age 0 1 3.64 1.30 1.00 3.00 3.00 4.00 11.0 ▇▆▁▁▁
ftl 0 1 0.08 0.27 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
clm_by_hot 0 1 -0.93 0.34 -1.00 -1.00 -1.00 -1.00 1.0 ▇▁▁▁▁
start 0 1 0.03 0.09 0.00 0.00 0.00 0.00 0.9 ▇▁▁▁▁
bled 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
off_turf 0 1 0.05 0.21 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
bfnr 0 1 0.01 0.11 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
lame 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
lsx 0 1 0.00 0.09 -1.00 0.00 0.00 0.00 1.0 ▁▁▇▁▁
blnkrs 0 1 0.04 0.27 -1.00 0.00 0.00 0.00 1.0 ▁▁▇▁▁
age_wks 0 1 204.49 65.51 37.00 154.00 190.00 240.00 559.0 ▂▇▂▁▁
wt 0 1 120.33 2.70 108.00 119.00 120.00 122.00 143.0 ▁▇▂▁▁
off_odds 0 1 12.19 17.14 0.11 2.50 6.00 13.00 99.0 ▇▁▁▁▁
fld 0 1 8.40 2.21 2.00 7.00 8.00 10.00 30.0 ▅▇▁▁▁
L3 0 1 18.03 7.04 1.75 13.33 16.92 21.42 99.0 ▇▃▁▁▁
L5 0 1 18.27 6.78 1.75 13.75 17.25 21.62 99.0 ▇▃▁▁▁
L7 0 1 18.44 6.68 1.75 14.00 17.43 21.75 99.0 ▇▃▁▁▁
rest 0 1 44.73 53.55 2.00 21.00 28.00 44.00 1081.0 ▇▁▁▁▁
avg_rest 0 1 39.90 21.70 9.67 25.68 34.80 46.90 489.0 ▇▁▁▁▁
efforts_last90 0 1 0.90 0.95 0.00 0.00 1.00 1.00 8.0 ▇▂▁▁▁
Lag1 0 1 0.20 0.40 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▂
Lag2 0 1 0.19 0.39 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▂
Lag3 0 1 0.17 0.37 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▂
Lag4 0 1 0.15 0.36 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▂
Lag5 0 1 0.14 0.34 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁

Build Model

We start by spliting the data between training and test sets.

## <Analysis/Assess/Total>
## <26190/8728/34918>

Create a Recipe

Next we create a recipe to preprocess the data. We utilize step_other and step_dummy to create dummny variables. The dataset is unbalance so we also downsample the majority target value (NoTOP).

figs_rec<-  recipe(target ~ ., data=figs_train) %>% 
  update_role(horse, new_role = "ID") %>% 
  step_other(jky , threshold = 0.015) %>% 
  step_other(trk_code , threshold = 0.02) %>% 
  step_other(distance, threshold = 0.02) %>% 
  step_dummy(distance) %>% 
  step_dummy(PT3) %>% 
  step_dummy(gender) %>% 
  step_dummy(trk_code) %>% 
  step_dummy(jky) %>% 
  step_dummy(form_cycle) %>% 
  step_dummy(surf) %>% 
  step_dummy(wind) %>% 
  step_dummy(precip) %>% 
  step_dummy(s_cond) %>% 
  step_dummy(race_type) %>% 
  step_dummy(surface_cond) %>% 
  step_rm(yr) %>% 
  step_date(race_date, features = c("month", "year")) %>% 
  step_rm(race_date) %>% 
  themis::step_downsample(target)
  
  

figs_prep <- prep(figs_rec)
juiced <- juice(figs_prep)
skim(juiced)
Data summary
Name juiced
Number of rows 11856
Number of columns 469
_______________________
Column type frequency:
factor 3
numeric 466
________________________
Group variables None

Variable type: factor

skim_variable n_missing complete_rate ordered n_unique top_counts
horse 0 1 FALSE 2938 CRE: 21, BLU: 18, CHA: 18, SAL: 18
target 0 1 FALSE 2 NoT: 5928, TOP: 5928
race_date_month 0 1 FALSE 12 Jan: 1229, Oct: 1174, Aug: 1146, Sep: 1130

Variable type: numeric

skim_variable n_missing complete_rate mean sd p0 p25 p50 p75 p100 hist
age 0 1 3.46 1.23 1.00 3.00 3.00 4.00 11.0 ▇▅▁▁▁
ftl 0 1 0.06 0.25 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
clm_by_hot 0 1 -0.94 0.31 -1.00 -1.00 -1.00 -1.00 1.0 ▇▁▁▁▁
start 0 1 0.02 0.09 0.00 0.00 0.00 0.00 0.9 ▇▁▁▁▁
bled 0 1 0.00 0.01 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
off_turf 0 1 0.04 0.20 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
bfnr 0 1 0.01 0.09 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
lame 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
lsx 0 1 0.00 0.09 -1.00 0.00 0.00 0.00 1.0 ▁▁▇▁▁
blnkrs 0 1 0.04 0.27 -1.00 0.00 0.00 0.00 1.0 ▁▁▇▁▁
age_wks 0 1 195.17 61.25 37.00 149.00 180.50 227.00 559.0 ▂▇▂▁▁
wt 0 1 120.25 2.70 108.00 118.00 120.00 122.00 140.0 ▁▇▆▁▁
off_odds 0 1 12.26 17.36 0.11 2.50 6.00 13.00 99.0 ▇▁▁▁▁
fld 0 1 8.44 2.22 3.00 7.00 8.00 10.00 30.0 ▇▆▁▁▁
L3 0 1 18.15 7.01 2.67 13.42 17.08 21.50 99.0 ▇▂▁▁▁
L5 0 1 18.56 6.77 3.25 14.00 17.58 22.00 99.0 ▇▂▁▁▁
L7 0 1 18.79 6.67 3.25 14.29 17.79 22.15 99.0 ▇▂▁▁▁
rest 0 1 46.84 55.14 3.00 21.00 30.00 47.00 730.0 ▇▁▁▁▁
avg_rest 0 1 40.59 22.95 9.67 26.00 34.71 47.25 297.0 ▇▁▁▁▁
efforts_last90 0 1 0.99 0.93 0.00 0.00 1.00 2.00 6.0 ▇▂▁▁▁
Lag1 0 1 0.23 0.42 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▂
Lag2 0 1 0.20 0.40 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▂
Lag3 0 1 0.17 0.37 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▂
Lag4 0 1 0.14 0.35 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
Lag5 0 1 0.12 0.33 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
distance_X5.5F 0 1 0.06 0.24 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
distance_X6.0F 0 1 0.22 0.41 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▂
distance_X6.5F 0 1 0.08 0.27 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
distance_X7.0F 0 1 0.09 0.28 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
distance_X8.0F 0 1 0.26 0.44 0.00 0.00 0.00 1.00 1.0 ▇▁▁▁▃
distance_X8.5F 0 1 0.13 0.34 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
distance_X9.0F 0 1 0.05 0.22 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
distance_other 0 1 0.06 0.23 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_AAA 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_AAB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_AAC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_AAD 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_AAP 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_AAT 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_AAX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ABA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ABB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ABC 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ABD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ABP 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ABT 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ABX 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ACA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ACB 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ACC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ACD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ACP 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ACT 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ACX 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ADA 0 1 0.00 0.01 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ADB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ADC 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ADD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ADP 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ADT 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ADX 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_AP 0 1 0.01 0.08 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_APA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_APB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_APC 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_APD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_APP 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_APT 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_APX 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ATA 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ATB 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ATC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ATD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ATP 0 1 0.01 0.08 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ATT 0 1 0.01 0.08 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_ATX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_AXA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_AXB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_AXC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_AXD 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_AXP 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_AXT 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_AXX 0 1 0.00 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BAA 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BAB 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BAC 0 1 0.00 0.01 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BAD 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BAP 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BAT 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BAX 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BBA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BBB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BBC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BBD 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BBP 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BBT 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BBX 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BCA 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BCB 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BCC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BCD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BCP 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BCT 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BCX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BDA 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BDB 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BDC 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BDD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BDP 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BDT 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BDX 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BP 0 1 0.01 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BPA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BPB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BPC 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BPD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BPP 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BPT 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BPX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BTA 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BTB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BTC 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BTD 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BTP 0 1 0.01 0.08 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BTT 0 1 0.01 0.08 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BTX 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BXA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BXB 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BXC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BXD 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BXP 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BXT 0 1 0.00 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_BXX 0 1 0.01 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CAA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CAB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CAC 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CAD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CAP 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CAT 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CAX 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CBA 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CBB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CBC 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CBD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CBP 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CBT 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CBX 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CCA 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CCB 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CCC 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CCD 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CCP 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CCT 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CCX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CDA 0 1 0.00 0.00 0.00 0.00 0.00 0.00 0.0 ▁▁▇▁▁
PT3_CDB 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CDC 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CDD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CDP 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CDT 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CDX 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CP 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CPA 0 1 0.00 0.01 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CPB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CPC 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CPD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CPP 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CPT 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CPX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CTA 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CTB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CTC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CTD 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CTP 0 1 0.00 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CTT 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CTX 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CXA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CXB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CXC 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CXD 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CXP 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CXT 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_CXX 0 1 0.00 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DAA 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DAB 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DAC 0 1 0.00 0.01 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DAD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DAP 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DAT 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DAX 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DBA 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DBB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DBC 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DBD 0 1 0.00 0.01 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DBP 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DBT 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DBX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DCA 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DCB 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DCC 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DCD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DCP 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DCT 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DCX 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DDA 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DDB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DDC 0 1 0.00 0.01 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DDD 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DDP 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DDT 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DDX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DP 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DPA 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DPB 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DPC 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DPD 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DPP 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DPT 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DPX 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DTA 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DTB 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DTC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DTD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DTP 0 1 0.00 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DTT 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DTX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DXA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DXB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DXC 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DXD 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DXP 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DXT 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_DXX 0 1 0.01 0.08 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_P 0 1 0.14 0.35 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PAA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PAB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PAC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PAD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PAP 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PAT 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PAX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PBA 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PBB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PBC 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PBD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PBP 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PBT 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PBX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PCA 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PCB 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PCC 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PCD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PCP 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PCT 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PCX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PDA 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PDB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PDC 0 1 0.00 0.01 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PDD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PDP 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PDT 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PDX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PP 0 1 0.01 0.11 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PPA 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PPB 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PPC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PPD 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PPP 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PPT 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PPX 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PTA 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PTB 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PTC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PTD 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PTP 0 1 0.01 0.11 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PTT 0 1 0.01 0.09 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PTX 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PXA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PXB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PXC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PXD 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PXP 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PXT 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_PXX 0 1 0.00 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TAA 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TAB 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TAC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TAD 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TAP 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TAT 0 1 0.01 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TAX 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TBA 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TBB 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TBC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TBD 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TBP 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TBT 0 1 0.00 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TBX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TCA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TCB 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TCC 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TCD 0 1 0.00 0.01 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TCP 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TCT 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TCX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TDA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TDB 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TDC 0 1 0.00 0.01 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TDD 0 1 0.00 0.02 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TDP 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TDT 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TDX 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TP 0 1 0.07 0.25 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TPA 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TPB 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TPC 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TPD 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TPP 0 1 0.01 0.09 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TPT 0 1 0.01 0.10 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TPX 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TTA 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TTB 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TTC 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TTD 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TTP 0 1 0.03 0.17 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TTT 0 1 0.02 0.13 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TTX 0 1 0.00 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TXA 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TXB 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TXC 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TXD 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TXP 0 1 0.01 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TXT 0 1 0.01 0.08 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_TXX 0 1 0.01 0.08 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XAA 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XAB 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XAC 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XAD 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XAP 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XAT 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XAX 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XBA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XBB 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XBC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XBD 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XBP 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XBT 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XBX 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XCA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XCB 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XCC 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XCD 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XCP 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XCT 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XCX 0 1 0.00 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XDA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XDB 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XDC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XDD 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XDP 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XDT 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XDX 0 1 0.01 0.08 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XP 0 1 0.01 0.11 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XPA 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XPB 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XPC 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XPD 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XPP 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XPT 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XPX 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XTA 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XTB 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XTC 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XTD 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XTP 0 1 0.01 0.11 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XTT 0 1 0.01 0.10 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XTX 0 1 0.01 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XXA 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XXB 0 1 0.01 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XXC 0 1 0.01 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XXD 0 1 0.01 0.08 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XXP 0 1 0.01 0.08 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XXT 0 1 0.01 0.11 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
PT3_XXX 0 1 0.04 0.21 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
gender_Male 0 1 0.67 0.47 0.00 0.00 1.00 1.00 1.0 ▃▁▁▁▇
trk_code_BEL 0 1 0.09 0.29 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
trk_code_CD 0 1 0.05 0.21 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
trk_code_DMR 0 1 0.04 0.20 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
trk_code_GP 0 1 0.24 0.43 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▂
trk_code_GPW 0 1 0.03 0.18 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
trk_code_KEE 0 1 0.03 0.16 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
trk_code_PRX 0 1 0.02 0.13 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
trk_code_SA 0 1 0.09 0.28 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
trk_code_SAR 0 1 0.05 0.23 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
trk_code_WO 0 1 0.03 0.16 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
trk_code_other 0 1 0.21 0.41 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▂
jky_E.Cancel 0 1 0.02 0.12 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_E.Jaramillo 0 1 0.02 0.13 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_E.Zayas 0 1 0.02 0.15 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_F.Prat 0 1 0.01 0.12 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_I.Ortiz..Jr. 0 1 0.03 0.17 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_J.Alvarado 0 1 0.02 0.13 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_J.Lezcano 0 1 0.02 0.14 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_J.Ortiz 0 1 0.02 0.15 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_J.Rosario 0 1 0.02 0.15 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_J.Velazquez 0 1 0.02 0.13 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_L.Reyes 0 1 0.02 0.13 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_L.Saez 0 1 0.03 0.16 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_M.Franco 0 1 0.02 0.15 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_M.Vasquez 0 1 0.02 0.13 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_P.Lopez 0 1 0.02 0.13 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_R.Maragh 0 1 0.01 0.11 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_T.Gaffalione 0 1 0.02 0.15 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
jky_other 0 1 0.64 0.48 0.00 0.00 1.00 1.00 1.0 ▅▁▁▁▇
form_cycle_A2 0 1 0.11 0.32 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_A3 0 1 0.07 0.26 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_AX 0 1 0.18 0.39 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▂
form_cycle_B1 0 1 0.06 0.24 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_B2 0 1 0.04 0.20 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_B3 0 1 0.03 0.17 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_BX 0 1 0.08 0.28 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_C1 0 1 0.05 0.22 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_C2 0 1 0.03 0.18 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_C3 0 1 0.03 0.16 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_CX 0 1 0.09 0.29 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_D1 0 1 0.03 0.16 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_D2 0 1 0.02 0.13 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_D3 0 1 0.01 0.11 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_DX 0 1 0.04 0.20 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_E1 0 1 0.01 0.10 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_E2 0 1 0.01 0.09 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_E3 0 1 0.01 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_EX 0 1 0.02 0.12 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_F1 0 1 0.00 0.07 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_F2 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_F3 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
form_cycle_FX 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
surf_Inner.Dirt 0 1 0.00 0.05 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
surf_Inner.Turf 0 1 0.03 0.17 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
surf_Synth 0 1 0.04 0.19 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
surf_Turf 0 1 0.34 0.48 0.00 0.00 0.00 1.00 1.0 ▇▁▁▁▅
wind_hvy 0 1 0.07 0.26 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
wind_vhvy 0 1 0.04 0.20 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
precip_rain 0 1 0.03 0.18 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
precip_snow 0 1 0.00 0.04 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
s_cond_Fst 0 1 0.51 0.50 0.00 0.00 1.00 1.00 1.0 ▇▁▁▁▇
s_cond_Gd 0 1 0.09 0.29 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
s_cond_My 0 1 0.02 0.13 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
s_cond_Sf 0 1 0.00 0.06 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
s_cond_Sly 0 1 0.06 0.23 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
s_cond_Trk_condit 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
s_cond_Yl 0 1 0.01 0.11 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
race_type_Sprint 0 1 0.53 0.50 0.00 0.00 1.00 1.00 1.0 ▇▁▁▁▇
surface_cond_frz 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
surface_cond_fst 0 1 0.46 0.50 0.00 0.00 0.00 1.00 1.0 ▇▁▁▁▇
surface_cond_gd 0 1 0.05 0.21 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
surface_cond_gd.slw 0 1 0.03 0.18 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
surface_cond_hvy 0 1 0.00 0.01 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
surface_cond_puaf 0 1 0.01 0.09 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
surface_cond_sft 0 1 0.01 0.08 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
surface_cond_vbw 0 1 0.00 0.03 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
surface_cond_vslw 0 1 0.04 0.21 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
surface_cond_wf 0 1 0.01 0.10 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
surface_cond_wsm 0 1 0.07 0.26 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
surface_cond_yld 0 1 0.01 0.11 0.00 0.00 0.00 0.00 1.0 ▇▁▁▁▁
race_date_year 0 1 2019.18 1.00 2016.00 2019.00 2019.00 2020.00 2021.0 ▂▃▇▇▂

Tuning the Random Forest

We create a tuning specification to facilitate tuning the random forest. Tree is set to 1000, min_n and mtry are parameters that will be tuned. We also set the model engine to ranger and specify a classifcation model.

tune_spec <- rand_forest(
  mtry = tune(),
  trees = 1000,
  min_n = tune()
  ) %>% 
  set_mode("classification") %>% 
  set_engine("ranger")

Setup a Workflow

tune_wf <- workflow() %>% 
  add_recipe(figs_rec) %>% 
  add_model(tune_spec)

Train hyperparameters

The inital training takes place in the following code chunk. We employ parallel processing to epadite the tuning process. After the tuning is complete collect_metrics display the

set.seed(234)

figs_folds <- vfold_cv(figs_train)

doParallel::registerDoParallel(cores=28)
set.seed(345)

tune_res <- tune_grid(
  tune_wf,
  resamples = figs_folds,
  grid = 10
)

tune_res %>% 
  collect_metrics()
## # A tibble: 20 x 8
##     mtry min_n .metric  .estimator  mean     n std_err .config              
##    <int> <int> <chr>    <chr>      <dbl> <int>   <dbl> <chr>                
##  1    94    30 accuracy binary     0.697    10 0.00363 Preprocessor1_Model01
##  2    94    30 roc_auc  binary     0.799    10 0.00237 Preprocessor1_Model01
##  3   374    12 accuracy binary     0.694    10 0.00280 Preprocessor1_Model02
##  4   374    12 roc_auc  binary     0.795    10 0.00266 Preprocessor1_Model02
##  5   217    27 accuracy binary     0.695    10 0.00328 Preprocessor1_Model03
##  6   217    27 roc_auc  binary     0.797    10 0.00257 Preprocessor1_Model03
##  7   286    24 accuracy binary     0.694    10 0.00317 Preprocessor1_Model04
##  8   286    24 roc_auc  binary     0.796    10 0.00259 Preprocessor1_Model04
##  9   247    39 accuracy binary     0.695    10 0.00301 Preprocessor1_Model05
## 10   247    39 roc_auc  binary     0.797    10 0.00265 Preprocessor1_Model05
## 11   165     6 accuracy binary     0.696    10 0.00308 Preprocessor1_Model06
## 12   165     6 roc_auc  binary     0.797    10 0.00247 Preprocessor1_Model06
## 13   342    16 accuracy binary     0.694    10 0.00287 Preprocessor1_Model07
## 14   342    16 roc_auc  binary     0.795    10 0.00258 Preprocessor1_Model07
## 15   443    17 accuracy binary     0.692    10 0.00257 Preprocessor1_Model08
## 16   443    17 roc_auc  binary     0.794    10 0.00261 Preprocessor1_Model08
## 17   140     7 accuracy binary     0.697    10 0.00292 Preprocessor1_Model09
## 18   140     7 roc_auc  binary     0.797    10 0.00241 Preprocessor1_Model09
## 19     6    36 accuracy binary     0.702    10 0.00249 Preprocessor1_Model10
## 20     6    36 roc_auc  binary     0.790    10 0.00207 Preprocessor1_Model10
tune_res %>% 
  collect_metrics() %>% 
  filter(.metric == "roc_auc") %>% 
  select(mean, min_n, mtry) %>% 
  pivot_longer(min_n:mtry,
               values_to = "value",
               names_to = "parameter") %>% 
  ggplot(aes(value, mean, color = parameter)) +
  geom_point(show.legend = FALSE) +
  facet_wrap(~ parameter, scales = "free_x")

tune_res
## # Tuning results
## # 10-fold cross-validation 
## # A tibble: 10 x 4
##    splits               id     .metrics          .notes          
##    <list>               <chr>  <list>            <list>          
##  1 <split [23571/2619]> Fold01 <tibble [20 × 6]> <tibble [0 × 1]>
##  2 <split [23571/2619]> Fold02 <tibble [20 × 6]> <tibble [0 × 1]>
##  3 <split [23571/2619]> Fold03 <tibble [20 × 6]> <tibble [0 × 1]>
##  4 <split [23571/2619]> Fold04 <tibble [20 × 6]> <tibble [0 × 1]>
##  5 <split [23571/2619]> Fold05 <tibble [20 × 6]> <tibble [0 × 1]>
##  6 <split [23571/2619]> Fold06 <tibble [20 × 6]> <tibble [0 × 1]>
##  7 <split [23571/2619]> Fold07 <tibble [20 × 6]> <tibble [0 × 1]>
##  8 <split [23571/2619]> Fold08 <tibble [20 × 6]> <tibble [0 × 1]>
##  9 <split [23571/2619]> Fold09 <tibble [20 × 6]> <tibble [0 × 1]>
## 10 <split [23571/2619]> Fold10 <tibble [20 × 6]> <tibble [0 × 1]>

Secondary tuning

We utilize the results of the first tuning to tune a second time with the goal of minding the optimal model parameters.

rf_grid <- grid_regular(
  mtry(range = c(100, 105)),
  min_n(range = c(28, 33)),
  levels = 4
)



set.seed(456)
regular_res <- tune_grid(
  tune_wf,
  resamples = figs_folds,
  grid = rf_grid
)

regular_res %>% 
  collect_metrics()
## # A tibble: 32 x 8
##     mtry min_n .metric  .estimator  mean     n std_err .config              
##    <int> <int> <chr>    <chr>      <dbl> <int>   <dbl> <chr>                
##  1   100    28 accuracy binary     0.696    10 0.00308 Preprocessor1_Model01
##  2   100    28 roc_auc  binary     0.798    10 0.00246 Preprocessor1_Model01
##  3   101    28 accuracy binary     0.699    10 0.00310 Preprocessor1_Model02
##  4   101    28 roc_auc  binary     0.799    10 0.00247 Preprocessor1_Model02
##  5   103    28 accuracy binary     0.699    10 0.00332 Preprocessor1_Model03
##  6   103    28 roc_auc  binary     0.799    10 0.00254 Preprocessor1_Model03
##  7   105    28 accuracy binary     0.698    10 0.00349 Preprocessor1_Model04
##  8   105    28 roc_auc  binary     0.799    10 0.00244 Preprocessor1_Model04
##  9   100    29 accuracy binary     0.697    10 0.00296 Preprocessor1_Model05
## 10   100    29 roc_auc  binary     0.799    10 0.00250 Preprocessor1_Model05
## # … with 22 more rows
regular_res %>% 
  collect_metrics() %>% 
  filter(.metric == "roc_auc") %>% 
  mutate(min_n = factor(min_n)) %>% 
  ggplot(aes(mtry, mean, color=min_n)) +
  geom_line(alpha =0.5, size = 1.5) + 
  geom_point() + theme_fivethirtyeight() + labs(title="Tuning Grid")

Pick the best Model.

We utilize the roc_auc metric as our metric to pick the best model.

best_auc <- select_best(regular_res, "roc_auc")

final_rf <- finalize_model(
  tune_spec,
  best_auc
)

Variable Importance

We utilize the VIP package to identify the important variables.

fpchart <- final_rf %>% 
  set_engine("ranger", importance = "permutation") %>% 
  fit(target ~.,
      data = juice(figs_prep) %>% select(-horse)) %>% 
  vip(geom = "point", num_features=25L) +  
  labs(
    x = NULL,
    y = NULL,
    title= "Feature Importance") + theme_economist_white()

fpchart + theme_fivethirtyeight()

Final Model

The metrics for the final model are calculated and displayed below.

final_wf <- workflow() %>% 
  add_recipe(figs_rec) %>% 
  add_model(final_rf) 

  
final_res <- final_wf %>% 
  last_fit(figs_split)

final_result <- final_res %>% 
  collect_metrics()

gt(final_result)
.metric .estimator .estimate .config
accuracy binary 0.6820577 Preprocessor1_Model1
roc_auc binary 0.7910395 Preprocessor1_Model1

ROC Curve

final_res %>% 
  collect_predictions() %>% 
  roc_curve(target, .pred_TOP, event_level = "second") %>% 
  ggplot(aes(x=1-specificity, y = sensitivity )) +
  geom_line(size = 1.5, color = "midnightblue") +
  geom_abline(
    lty = 2, alpha =0.5,
    color = "gray50",
    size = 1.2
  )  + labs(
    title= "ROC Curve", x="1-Specificity",  y= "Sensitivity") + theme_fivethirtyeight()

Confusion Matrix

The confusion matrix for the final model is diplayed below:

collect_predictions(final_res) %>% 
  conf_mat(target, .pred_class)
##           Truth
## Prediction NoTop  TOP
##      NoTop  4432  454
##      TOP    2321 1521

Finally, model predictions on the test dataset are set forth below.

preTab <- final_res %>% 
  collect_predictions() %>% 
  mutate(correct = case_when(target == .pred_class ~ "Correct",
                             TRUE ~ "Incorrect")) 

datatable(preTab)
#write_excel_csv(preTab,"RF_predictions2.csv", append=TRUE)