Call:
rpart(formula = y ~ ., data = trainData_smote, method = "class",
control = control_params3)
n= 51771
CP nsplit rel error xerror xstd
1 0.3857963875 0 1.0000000 1.0000000 0.004662089
2 0.0743021346 1 0.6142036 0.6142036 0.004234004
3 0.0363300493 2 0.5399015 0.5399425 0.004066181
4 0.0064039409 4 0.4672414 0.4673235 0.003868545
5 0.0055008210 5 0.4608374 0.4565271 0.003836027
6 0.0042898194 8 0.4409688 0.4430624 0.003794250
7 0.0008347017 10 0.4323892 0.4328407 0.003761603
8 0.0006157635 13 0.4298851 0.4330460 0.003762267
9 0.0000000000 14 0.4292693 0.4322250 0.003759611
Variable importance
nr.employed euribor3m cons.conf.idx cons.price.idx
20 20 16 11
pdays1 defaultunknown poutcomesuccess monthmar
9 8 8 1
jobblue.collar poutcomenonexistent contacttelephone monthmay
1 1 1 1
Node number 1: 51771 observations, complexity param=0.3857964
predicted class=no expected loss=0.4705337 P(node) =1
class counts: 27411 24360
probabilities: 0.529 0.471
left son=2 (38223 obs) right son=3 (13548 obs)
Primary splits:
nr.employed < 5087.65 to the right, improve=5196.991, (0 missing)
euribor3m < 3.1675 to the right, improve=4781.745, (0 missing)
pdays1 < 4.740583e-05 to the left, improve=3565.832, (0 missing)
poutcomesuccess < 4.740583e-05 to the left, improve=3320.322, (0 missing)
poutcomenonexistent < 0.9998086 to the right, improve=3015.181, (0 missing)
Surrogate splits:
euribor3m < 1.243815 to the right, agree=0.970, adj=0.887, (0 split)
cons.conf.idx < -36.09156 to the left, agree=0.875, adj=0.522, (0 split)
cons.price.idx < 92.7345 to the right, agree=0.848, adj=0.420, (0 split)
pdays1 < 4.740583e-05 to the left, agree=0.843, adj=0.402, (0 split)
poutcomesuccess < 4.740583e-05 to the left, agree=0.836, adj=0.372, (0 split)
Node number 2: 38223 observations, complexity param=0.07430213
predicted class=no expected loss=0.337153 P(node) =0.7383091
class counts: 25336 12887
probabilities: 0.663 0.337
left son=4 (33153 obs) right son=5 (5070 obs)
Primary splits:
cons.conf.idx < -46.20037 to the right, improve=1362.1800, (0 missing)
nr.employed < 5189.733 to the right, improve= 982.5063, (0 missing)
euribor3m < 3.1675 to the right, improve= 981.5473, (0 missing)
cons.price.idx < 93.1843 to the right, improve= 979.4715, (0 missing)
defaultunknown < 0.9997251 to the right, improve= 796.2174, (0 missing)
Surrogate splits:
monthmar < 0.005552286 to the left, agree=0.888, adj=0.157, (0 split)
cons.price.idx < 92.89293 to the right, agree=0.886, adj=0.138, (0 split)
age < 60.01999 to the left, agree=0.876, adj=0.063, (0 split)
educationilliterate < 0.1124237 to the left, agree=0.867, adj=0.001, (0 split)
Node number 3: 13548 observations, complexity param=0.006403941
predicted class=yes expected loss=0.1531591 P(node) =0.2616909
class counts: 2075 11473
probabilities: 0.153 0.847
left son=6 (556 obs) right son=7 (12992 obs)
Primary splits:
contacttelephone < 0.9994507 to the right, improve=275.1638, (0 missing)
pdays1 < 4.740583e-05 to the left, improve=262.8417, (0 missing)
poutcomesuccess < 4.740583e-05 to the left, improve=247.5177, (0 missing)
day_of_weekmon < 0.9996842 to the right, improve=186.0594, (0 missing)
poutcomenonexistent < 0.9998086 to the right, improve=158.9864, (0 missing)
Node number 4: 33153 observations, complexity param=0.03633005
predicted class=no expected loss=0.2849516 P(node) =0.6403778
class counts: 23706 9447
probabilities: 0.715 0.285
left son=8 (6706 obs) right son=9 (26447 obs)
Primary splits:
defaultunknown < 0.9997251 to the right, improve=443.2790, (0 missing)
contacttelephone < 0.9989294 to the right, improve=335.0333, (0 missing)
housingyes < 0.9996808 to the right, improve=309.6382, (0 missing)
day_of_weekthu < 0.9994674 to the right, improve=281.4864, (0 missing)
jobadmin. < 0.0003392689 to the left, improve=261.4274, (0 missing)
Surrogate splits:
jobunknown < 0.9904955 to the right, agree=0.798, adj=0.003, (0 split)
campaign < 42.5 to the right, agree=0.798, adj=0.000, (0 split)
Node number 5: 5070 observations, complexity param=0.005500821
predicted class=yes expected loss=0.321499 P(node) =0.09793127
class counts: 1630 3440
probabilities: 0.321 0.679
left son=10 (3453 obs) right son=11 (1617 obs)
Primary splits:
cons.price.idx < 93.07496 to the right, improve=294.7461, (0 missing)
euribor3m < 1.404961 to the right, improve=290.9597, (0 missing)
day_of_weekmon < 0.9991537 to the right, improve=229.4181, (0 missing)
defaultunknown < 0.9972832 to the right, improve=204.2945, (0 missing)
monthmay < 0.0002164142 to the left, improve=201.9250, (0 missing)
Surrogate splits:
monthmay < 0.0002164142 to the left, agree=0.843, adj=0.506, (0 split)
cons.conf.idx < -47.09981 to the left, agree=0.843, adj=0.506, (0 split)
monthmar < 0.005552286 to the left, agree=0.838, adj=0.494, (0 split)
euribor3m < 1.49805 to the left, agree=0.828, adj=0.460, (0 split)
age < 79.00307 to the left, agree=0.691, adj=0.030, (0 split)
Node number 6: 556 observations, complexity param=0.0006157635
predicted class=no expected loss=0.3597122 P(node) =0.0107396
class counts: 356 200
probabilities: 0.640 0.360
left son=12 (367 obs) right son=13 (189 obs)
Primary splits:
poutcomenonexistent < 0.9881113 to the right, improve=18.548220, (0 missing)
euribor3m < 0.7155 to the right, improve=15.650110, (0 missing)
cons.conf.idx < -36.15 to the left, improve= 8.270934, (0 missing)
nr.employed < 5000.15 to the left, improve= 7.568426, (0 missing)
cons.price.idx < 93.9515 to the right, improve= 7.568426, (0 missing)
Surrogate splits:
pdays1 < 0.04194645 to the left, agree=0.824, adj=0.481, (0 split)
poutcomesuccess < 0.04194645 to the left, agree=0.809, adj=0.439, (0 split)
euribor3m < 0.6547767 to the right, agree=0.682, adj=0.063, (0 split)
monthmar < 0.9905503 to the left, agree=0.667, adj=0.021, (0 split)
age < 20.5 to the right, agree=0.664, adj=0.011, (0 split)
Node number 7: 12992 observations, complexity param=0.0008347017
predicted class=yes expected loss=0.1323122 P(node) =0.2509513
class counts: 1719 11273
probabilities: 0.132 0.868
left son=14 (6861 obs) right son=15 (6131 obs)
Primary splits:
pdays1 < 4.740583e-05 to the left, improve=184.96480, (0 missing)
poutcomesuccess < 4.740583e-05 to the left, improve=175.65810, (0 missing)
day_of_weekmon < 0.9996842 to the right, improve=143.03820, (0 missing)
poutcomenonexistent < 0.9998086 to the right, improve= 96.98513, (0 missing)
loanyes < 0.9996842 to the right, improve= 69.48569, (0 missing)
Surrogate splits:
poutcomesuccess < 4.740583e-05 to the left, agree=0.966, adj=0.928, (0 split)
poutcomenonexistent < 0.9990546 to the right, agree=0.814, adj=0.606, (0 split)
cons.price.idx < 93.166 to the left, agree=0.651, adj=0.261, (0 split)
nr.employed < 5013.1 to the right, agree=0.651, adj=0.261, (0 split)
euribor3m < 0.7178845 to the right, agree=0.574, adj=0.098, (0 split)
Node number 8: 6706 observations, complexity param=0.004289819
predicted class=no expected loss=0.1225768 P(node) =0.129532
class counts: 5884 822
probabilities: 0.877 0.123
left son=16 (4038 obs) right son=17 (2668 obs)
Primary splits:
jobblue.collar < 0.0009973011 to the left, improve=26.16184, (0 missing)
day_of_weekwed < 0.9941173 to the right, improve=17.90126, (0 missing)
cons.conf.idx < -39.1 to the right, improve=16.68515, (0 missing)
euribor3m < 4.866449 to the left, improve=15.93546, (0 missing)
housingyes < 0.9984455 to the right, improve=13.78131, (0 missing)
Surrogate splits:
educationbasic.9y < 0.001023148 to the left, agree=0.677, adj=0.189, (0 split)
educationbasic.6y < 0.003896569 to the left, agree=0.649, adj=0.117, (0 split)
euribor3m < 1.349 to the right, agree=0.615, adj=0.032, (0 split)
cons.price.idx < 93.0465 to the right, agree=0.615, adj=0.031, (0 split)
cons.conf.idx < -44.45 to the right, agree=0.615, adj=0.031, (0 split)
Node number 9: 26447 observations, complexity param=0.03633005
predicted class=no expected loss=0.3261239 P(node) =0.5108458
class counts: 17822 8625
probabilities: 0.674 0.326
left son=18 (24677 obs) right son=19 (1770 obs)
Primary splits:
defaultunknown < 0.0007670226 to the left, improve=1722.8500, (0 missing)
housingyes < 0.9996808 to the right, improve= 305.5411, (0 missing)
day_of_weekthu < 0.9994674 to the right, improve= 293.4515, (0 missing)
contacttelephone < 0.9989294 to the right, improve= 266.4293, (0 missing)
loanyes < 0.9989104 to the right, improve= 240.3539, (0 missing)
Node number 10: 3453 observations, complexity param=0.005500821
predicted class=yes expected loss=0.4381697 P(node) =0.06669757
class counts: 1513 1940
probabilities: 0.438 0.562
left son=20 (2436 obs) right son=21 (1017 obs)
Primary splits:
euribor3m < 1.404961 to the right, improve=225.8161, (0 missing)
day_of_weekthu < 0.002713774 to the left, improve=192.8775, (0 missing)
day_of_weekmon < 0.9980373 to the right, improve=178.9132, (0 missing)
educationuniversity.degree < 0.003769935 to the left, improve=147.3356, (0 missing)
defaultunknown < 0.9943578 to the right, improve=137.9734, (0 missing)
Surrogate splits:
day_of_weekthu < 0.1971073 to the left, agree=0.799, adj=0.319, (0 split)
pdays1 < 0.0005789162 to the left, agree=0.738, adj=0.112, (0 split)
poutcomesuccess < 0.0005789162 to the left, agree=0.734, adj=0.098, (0 split)
age < 78.07475 to the left, agree=0.707, adj=0.004, (0 split)
jobunknown < 0.02106808 to the left, agree=0.706, adj=0.003, (0 split)
Node number 11: 1617 observations
predicted class=yes expected loss=0.07235622 P(node) =0.0312337
class counts: 117 1500
probabilities: 0.072 0.928
Node number 12: 367 observations
predicted class=no expected loss=0.26703 P(node) =0.007088911
class counts: 269 98
probabilities: 0.733 0.267
Node number 13: 189 observations
predicted class=yes expected loss=0.4603175 P(node) =0.003650692
class counts: 87 102
probabilities: 0.460 0.540
Node number 14: 6861 observations, complexity param=0.0008347017
predicted class=yes expected loss=0.2120682 P(node) =0.1325259
class counts: 1455 5406
probabilities: 0.212 0.788
left son=28 (1051 obs) right son=29 (5810 obs)
Primary splits:
poutcomenonexistent < 0.0001533917 to the left, improve=160.33910, (0 missing)
day_of_weekmon < 0.9996842 to the right, improve=116.82290, (0 missing)
loanyes < 0.9996842 to the right, improve= 77.15317, (0 missing)
housingyes < 0.9996842 to the right, improve= 76.46780, (0 missing)
contacttelephone < 0.0002215477 to the left, improve= 72.01725, (0 missing)
Surrogate splits:
age < 17.17132 to the left, agree=0.847, adj=0.002, (0 split)
euribor3m < 0.6350494 to the left, agree=0.847, adj=0.002, (0 split)
Node number 15: 6131 observations
predicted class=yes expected loss=0.04305986 P(node) =0.1184254
class counts: 264 5867
probabilities: 0.043 0.957
Node number 16: 4038 observations
predicted class=no expected loss=0.08667657 P(node) =0.07799733
class counts: 3688 350
probabilities: 0.913 0.087
Node number 17: 2668 observations, complexity param=0.004289819
predicted class=no expected loss=0.1769115 P(node) =0.05153464
class counts: 2196 472
probabilities: 0.823 0.177
left son=34 (2459 obs) right son=35 (209 obs)
Primary splits:
jobblue.collar < 0.9957468 to the right, improve=307.25330, (0 missing)
educationhigh.school < 0.01398942 to the left, improve= 49.65009, (0 missing)
day_of_weekwed < 0.9941173 to the right, improve= 18.55342, (0 missing)
cons.conf.idx < -39.1 to the right, improve= 14.78333, (0 missing)
educationbasic.9y < 0.9990027 to the right, improve= 14.53333, (0 missing)
Surrogate splits:
jobadmin. < 0.01807752 to the left, agree=0.940, adj=0.230, (0 split)
jobtechnician < 0.07014193 to the left, agree=0.937, adj=0.191, (0 split)
jobservices < 0.01398942 to the left, agree=0.933, adj=0.148, (0 split)
jobmanagement < 0.02856058 to the left, agree=0.930, adj=0.100, (0 split)
jobretired < 0.004253234 to the left, agree=0.929, adj=0.096, (0 split)
Node number 18: 24677 observations
predicted class=no expected loss=0.277789 P(node) =0.4766568
class counts: 17822 6855
probabilities: 0.722 0.278
Node number 19: 1770 observations
predicted class=yes expected loss=0 P(node) =0.03418902
class counts: 0 1770
probabilities: 0.000 1.000
Node number 20: 2436 observations, complexity param=0.005500821
predicted class=no expected loss=0.4449918 P(node) =0.04705337
class counts: 1352 1084
probabilities: 0.555 0.445
left son=40 (1096 obs) right son=41 (1340 obs)
Primary splits:
euribor3m < 1.405039 to the left, improve=109.53540, (0 missing)
day_of_weekwed < 0.001711558 to the left, improve=106.53840, (0 missing)
educationuniversity.degree < 0.005160756 to the left, improve=105.03320, (0 missing)
day_of_weekmon < 0.9980373 to the right, improve= 95.87677, (0 missing)
age < 30.98329 to the right, improve= 92.25378, (0 missing)
Surrogate splits:
day_of_weekmon < 0.7135894 to the right, agree=0.733, adj=0.407, (0 split)
day_of_weekthu < 0.002713774 to the left, agree=0.700, adj=0.333, (0 split)
day_of_weekwed < 0.001711558 to the left, agree=0.600, adj=0.111, (0 split)
campaign < 2.99712 to the right, agree=0.593, adj=0.096, (0 split)
defaultunknown < 0.9878138 to the right, agree=0.575, adj=0.055, (0 split)
Node number 21: 1017 observations
predicted class=yes expected loss=0.1583088 P(node) =0.0196442
class counts: 161 856
probabilities: 0.158 0.842
Node number 28: 1051 observations, complexity param=0.0008347017
predicted class=yes expected loss=0.4662226 P(node) =0.02030094
class counts: 490 561
probabilities: 0.466 0.534
left son=56 (101 obs) right son=57 (950 obs)
Primary splits:
loanyes < 0.9985629 to the right, improve=25.19313, (0 missing)
day_of_weekmon < 0.9958733 to the right, improve=15.72747, (0 missing)
maritalmarried < 0.008247433 to the left, improve=15.44133, (0 missing)
educationuniversity.degree < 0.9939607 to the right, improve=13.35216, (0 missing)
euribor3m < 0.8829841 to the right, improve=13.20157, (0 missing)
Node number 29: 5810 observations
predicted class=yes expected loss=0.1660929 P(node) =0.112225
class counts: 965 4845
probabilities: 0.166 0.834
Node number 34: 2459 observations
predicted class=no expected loss=0.106954 P(node) =0.04749763
class counts: 2196 263
probabilities: 0.893 0.107
Node number 35: 209 observations
predicted class=yes expected loss=0 P(node) =0.004037009
class counts: 0 209
probabilities: 0.000 1.000
Node number 40: 1096 observations
predicted class=no expected loss=0.2791971 P(node) =0.02117015
class counts: 790 306
probabilities: 0.721 0.279
Node number 41: 1340 observations
predicted class=yes expected loss=0.419403 P(node) =0.02588322
class counts: 562 778
probabilities: 0.419 0.581
Node number 56: 101 observations
predicted class=no expected loss=0.1980198 P(node) =0.001950899
class counts: 81 20
probabilities: 0.802 0.198
Node number 57: 950 observations
predicted class=yes expected loss=0.4305263 P(node) =0.01835004
class counts: 409 541
probabilities: 0.431 0.569