Data Science Desktop Survival Guide by Graham Williams Desktop Survival Project Home Preface Data Science Introducing R R Constructs R Tasks R Strings R Read, Write, and Create Data Template Data Exploration Data Wrangling Data Visualisation Statistics ML Template ML Scenarios ML Activities ML Applications ML Algorithms Cluster Analysis Decision Trees Computer Vision Graph Data Privacy Literate Data Science Coding with Style Resources Bibliography Index

CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

## Conditional Decision Tree

Note that we are using the newer version of the ctree() function as is provided by partykit. One advantage of the newer version is that predict() with type="prob" works just like other predict() methods (returns a matrix rather than a list).

 library(partykit) model <- ctree(formula=form, data=ds[tr, vars])

model
 ```## ## Model formula: ## rain_tomorrow ~ rain_today + temp_3pm + temp_9am + cloud_3pm + ## cloud_9am + pressure_3pm + pressure_9am + humidity_3pm + ## humidity_9am + wind_speed_3pm + wind_speed_9am + wind_dir_3pm + ## wind_dir_9am + wind_gust_speed + wind_gust_dir + sunshine + ## evaporation + rainfall + max_temp + min_temp ## ## Fitted party: ## [1] root ## | [2] humidity_3pm <= 72 ## | | [3] humidity_3pm <= 50 ## | | | [4] wind_gust_speed <= 54 ## | | | | [5] sunshine <= 7.5 ## | | | | | [6] pressure_3pm <= 1015 ## | | | | | | [7] humidity_3pm <= 27: No (n=313, err=8.9%) ## | | | | | | [8] humidity_3pm > 27 ## | | | | | | | [9] wind_dir_9am <= NE ## | | | | | | | | [10] wind_gust_speed <= 35 ## | | | | | | | | | [11] wind_dir_9am <= N: No (n=58, ... ## | | | | | | | | | [12] wind_dir_9am > N: No (n=71, e... ## | | | | | | | | [13] wind_gust_speed > 35: No (n=372, ... ## | | | | | | | [14] wind_dir_9am > NE ## | | | | | | | | [15] pressure_3pm <= 1004.7: No (n=113... ## | | | | | | | | [16] pressure_3pm > 1004.7 ## | | | | | | | | | [17] wind_speed_9am <= 19 ## | | | | | | | | | | [18] wind_gust_speed <= 41: No (... ## | | | | | | | | | | [19] wind_gust_speed > 41: No (n... ## | | | | | | | | | [20] wind_speed_9am > 19: No (n=24... ## | | | | | [21] pressure_3pm > 1015 ## | | | | | | [22] wind_gust_speed <= 33 ## | | | | | | | [23] pressure_3pm <= 1023.1 ## | | | | | | | | [24] sunshine <= 3.8: No (n=177, err =... ## | | | | | | | | [25] sunshine > 3.8: No (n=544, err=... ## | | | | | | | [26] pressure_3pm > 1023.1 ## | | | | | | | | [27] rainfall <= 5.8 ## | | | | | | | | | [28] wind_speed_9am <= 13: No (n=2... ## | | | | | | | | | [29] wind_speed_9am > 13: No (n=67... ## | | | | | | | | [30] rainfall > 5.8: No (n=7, err=14... ## | | | | | | [31] wind_gust_speed > 33 ## | | | | | | | [32] wind_dir_9am <= ENE ## | | | | | | | | [33] pressure_3pm <= 1019.9 ## | | | | | | | | | [34] humidity_3pm <= 41: No (n=155... ## | | | | | | | | | [35] humidity_3pm > 41: No (n=118,... ## | | | | | | | | [36] pressure_3pm > 1019.9: No (n=175,... ## | | | | | | | [37] wind_dir_9am > ENE: No (n=840, err=... ## | | | | [38] sunshine > 7.5 ## | | | | | [39] pressure_3pm <= 1009.3 ## | | | | | | [40] humidity_3pm <= 26 ## | | | | | | | [41] humidity_3pm <= 13: No (n=1003, err =... ## | | | | | | | [42] humidity_3pm > 13 ## | | | | | | | | [43] sunshine <= 10.7: No (n=1198, err... ## | | | | | | | | [44] sunshine > 10.7: No (n=566, err =... ## | | | | | | [45] humidity_3pm > 26 ## | | | | | | | [46] sunshine <= 9.9 ## | | | | | | | | [47] wind_gust_speed <= 44 ## | | | | | | | | | [48] wind_speed_9am <= 9 ## | | | | | | | | | | [49] max_temp <= 28.2: No (n=2... ## | | | | | | | | | | [50] max_temp > 28.2 ## | | | | | | | | | | | [51] rainfall <= 5.2: No (n ... ## | | | | | | | | | | | [52] rainfall > 5.2: No (n =... ## | | | | | | | | | [53] wind_speed_9am > 9: No (n=835... ## | | | | | | | | [54] wind_gust_speed > 44 ## | | | | | | | | | [55] wind_dir_9am <= ESE: No (n=29... ## | | | | | | | | | [56] wind_dir_9am > ESE ## | | | | | | | | | | [57] wind_speed_3pm <= 13: No (n... ## | | | | | | | | | | [58] wind_speed_3pm > 13: No (n ... ## | | | | | | | [59] sunshine > 9.9 ## | | | | | | | | [60] cloud_3pm <= 4: No (n=756, err=... ## | | | | | | | | [61] cloud_3pm > 4: No (n=348, err=1... ## | | | | | [62] pressure_3pm > 1009.3 ## | | | | | | [63] humidity_3pm <= 36 ## | | | | | | | [64] humidity_3pm <= 24 ## | | | | | | | | [65] sunshine <= 9.8 ## | | | | | | | | | [66] wind_gust_speed <= 41: No (n=... ## | | | | | | | | | [67] wind_gust_speed > 41 ## | | | | | | | | | | [68] humidity_3pm <= 16: No (n =... ## | | | | | | | | | | [69] humidity_3pm > 16 ## | | | | | | | | | | | [70] wind_dir_9am <= NE: No ... ## | | | | | | | | | | | [71] wind_dir_9am > NE: No (... ## | | | | | | | | [72] sunshine > 9.8: No (n=3647, err =... ## | | | | | | | [73] humidity_3pm > 24 ## | | | | | | | | [74] pressure_3pm <= 1015.4 ## | | | | | | | | | [75] wind_gust_speed <= 37 ## | | | | | | | | | | [76] sunshine <= 9.7: No (n=19... ## | | | | | | | | | | [77] sunshine > 9.7: No (n=715... ## | | | | | | | | | [78] wind_gust_speed > 37 ## | | | | | | | | | | [79] wind_dir_9am <= ENE ## | | | | | | | | | | | [80] wind_gust_speed <= 50: ... ## | | | | | | | | | | | [81] wind_gust_speed > 50: N... ## | | | | | | | | | | [82] wind_dir_9am > ENE ## | | | | | | | | | | | [83] wind_speed_9am <= 6: No... ## | | | | | | | | | | | [84] wind_speed_9am > 6 ## | | | | | | | | | | | | [85] cloud_3pm <= 7 ## | | | | | | | | | | | | | [86] wind_dir_9am <= NW ## | | | | | | | | | | | | | | [87] temp_3pm <=... ## | | | | | | | | | | | | | | | [88] rain_to... ## | | | | | | | | | | | | | | | [89] rain_to... ## | | | | | | | | | | | | | | [90] temp_3pm > ... ## | | | | | | | | | | | | | [91] wind_dir_9am > ... ## | | | | | | | | | | | | [92] cloud_3pm > 7: No (... ## | | | | | | | | [93] pressure_3pm > 1015.4 ## | | | | | | | | | [94] pressure_3pm <= 1019.5 ## | | | | | | | | | | [95] sunshine <= 9.6 ## | | | | | | | | | | | [96] pressure_9am <= 1019.2:... ## | | | | | | | | | | | [97] pressure_9am > 1019.2: ... ## | | | | | | | | | | [98] sunshine > 9.6 ## | | | | | | | | | | | [99] cloud_3pm <= 4 ## | | | | | | | | | | | | [100] rainfall <= 8: No ... ## | | | | | | | | | | | | [101] rainfall > 8: No (... ## | | | | | | | | | | | [102] cloud_3pm > 4: No (n =... ## | | | | | | | | | [103] pressure_3pm > 1019.5: No (n =... ## | | | | | | [104] humidity_3pm > 36 ## | | | | | | | [105] pressure_3pm <= 1016.5 ## | | | | | | | | [106] sunshine <= 9.3 ## | | | | | | | | | [107] wind_gust_speed <= 37: No (n =... ## | | | | | | | | | [108] wind_gust_speed > 37 ## | | | | | | | | | | [109] wind_speed_9am <= 15 ## | | | | | | | | | | | [110] wind_gust_speed <= 46:... ## | | | | | | | | | | | [111] wind_gust_speed > 46: ... ## | | | | | | | | | | [112] wind_speed_9am > 15 ## | | | | | | | | | | | [113] wind_gust_speed <= 48 ## | | | | | | | | | | | | [114] pressure_3pm <= 10... ## | | | | | | | | | | | | [115] pressure_3pm > 101... ## | | | | | | | | | | | [116] wind_gust_speed > 48: ... ## | | | | | | | | [117] sunshine > 9.3 ## | | | | | | | | | [118] sunshine <= 11.9: No (n=1874... ## | | | | | | | | | [119] sunshine > 11.9: No (n=675, ... ## | | | | | | | [120] pressure_3pm > 1016.5 ## | | | | | | | | [121] wind_gust_speed <= 33 ## | | | | | | | | | [122] pressure_3pm <= 1024.1 ## | | | | | | | | | | [123] sunshine <= 9.5: No (n=2... ## | | | | | | | | | | [124] sunshine > 9.5: No (n=94... ## | | | | | | | | | [125] pressure_3pm > 1024.1: No (n =... ## | | | | | | | | [126] wind_gust_speed > 33 ## | | | | | | | | | [127] sunshine <= 9.8 ## | | | | | | | | | | [128] rain_today in No ## | | | | | | | | | | | [129] pressure_3pm <= 1018.7 ## | | | | | | | | | | | | [130] pressure_9am <= 10... ## | | | | | | | | | | | | [131] pressure_9am > 102... ## | | | | | | | | | | | [132] pressure_3pm > 1018.7:... ## | | | | | | | | | | [133] rain_today in Yes: No (n =... ## | | | | | | | | | [134] sunshine > 9.8 ## | | | | | | | | | | [135] rainfall <= 12: No (n=12... ## | | | | | | | | | | [136] rainfall > 12: No (n=13,... ## | | | [137] wind_gust_speed > 54 ## | | | | [138] sunshine <= 7.7 ## | | | | | [139] pressure_3pm <= 1006.1 ## | | | | | | [140] sunshine <= 4 ## | | | | | | | [141] humidity_3pm <= 21: No (n=19, err=... ## | | | | | | | [142] humidity_3pm > 21: Yes (n=105, err =... ## | | | | | | [143] sunshine > 4: No (n=353, err=47.0%) ## | | | | | [144] pressure_3pm > 1006.1 ## | | | | | | [145] rainfall <= 10.2: No (n=771, err=29.6%) ## | | | | | | [146] rainfall > 10.2: Yes (n=37, err=35.1%) ## | | | | [147] sunshine > 7.7 ## | | | | | [148] pressure_3pm <= 1008.8 ## | | | | | | [149] humidity_3pm <= 14 ## | | | | | | | [150] wind_gust_speed <= 76: No (n=474, er... ## | | | | | | | [151] wind_gust_speed > 76: No (n=69, err ... ## | | | | | | [152] humidity_3pm > 14 ## | | | | | | | [153] humidity_9am <= 55 ## | | | | | | | | [154] cloud_3pm <= 5 ## | | | | | | | | | [155] wind_dir_9am <= ENE ## | | | | | | | | | | [156] pressure_3pm <= 1004.4 ## | | | | | | | | | | | [157] wind_dir_3pm <= SSW: Y... ## | | | | | | | | | | | [158] wind_dir_3pm > SSW: No... ## | | | | | | | | | | [159] pressure_3pm > 1004.4: No ... ## | | | | | | | | | [160] wind_dir_9am > ENE: No (n=59... ## | | | | | | | | [161] cloud_3pm > 5 ## | | | | | | | | | [162] temp_3pm <= 27.8: No (n=121,... ## | | | | | | | | | [163] temp_3pm > 27.8 ## | | | | | | | | | | [164] wind_gust_speed <= 74: No ... ## | | | | | | | | | | [165] wind_gust_speed > 74: Yes ... ## | | | | | | | [166] humidity_9am > 55 ## | | | | | | | | [167] wind_gust_speed <= 63: No (n=374... ## | | | | | | | | [168] wind_gust_speed > 63: No (n=399,... ## | | | | | [169] pressure_3pm > 1008.8 ## | | | | | | [170] sunshine <= 9.1 ## | | | | | | | [171] wind_gust_speed <= 63 ## | | | | | | | | [172] humidity_9am <= 68 ## | | | | | | | | | [173] wind_dir_9am <= NE: No (n=28... ## | | | | | | | | | [174] wind_dir_9am > NE ## | | | | | | | | | | [175] humidity_9am <= 42: No (n ... ## | | | | | | | | | | [176] humidity_9am > 42: No (n =... ## | | | | | | | | [177] humidity_9am > 68 ## | | | | | | | | | [178] temp_3pm <= 25.5: No (n=232,... ## | | | | | | | | | [179] temp_3pm > 25.5: No (n=62, e... ## | | | | | | | [180] wind_gust_speed > 63 ## | | | | | | | | [181] temp_3pm <= 28.6 ## | | | | | | | | | [182] humidity_3pm <= 33: No (n=22... ## | | | | | | | | | [183] humidity_3pm > 33 ## | | | | | | | | | | [184] pressure_3pm <= 1016.6 ## | | | | | | | | | | | [185] temp_3pm <= 20.9: No (... ## | | | | | | | | | | | [186] temp_3pm > 20.9: No (n... ## | | | | | | | | | | [187] pressure_3pm > 1016.6: No ... ## | | | | | | | | [188] temp_3pm > 28.6 ## | | | | | | | | | [189] humidity_3pm <= 24: No (n=10... ## | | | | | | | | | [190] humidity_3pm > 24: Yes (n=65... ## | | | | | | [191] sunshine > 9.1 ## | | | | | | | [192] cloud_3pm <= 3 ## | | | | | | | | [193] pressure_3pm <= 1011: No (n=169,... ## | | | | | | | | [194] pressure_3pm > 1011: No (n=602, ... ## | | | | | | | [195] cloud_3pm > 3 ## | | | | | | | | [196] humidity_9am <= 41: No (n=157, e... ## | | | | | | | | [197] humidity_9am > 41: No (n=359, er... ## | | [198] humidity_3pm > 50 ## | | | [199] wind_gust_speed <= 48 ## | | | | [200] rain_today in No ## | | | | | [201] pressure_3pm <= 1013.3 ## | | | | | | [202] sunshine <= 7.4 ## | | | | | | | [203] wind_gust_speed <= 37 ## | | | | | | | | [204] sunshine <= 0.2: Yes (n=45, err ... ## | | | | | | | | [205] sunshine > 0.2: No (n=751, err =... ## | | | | | | | [206] wind_gust_speed > 37 ## | | | | | | | | [207] pressure_3pm <= 1006.9: Yes (n=2... ## | | | | | | | | [208] pressure_3pm > 1006.9: No (n=526... ## | | | | | | [209] sunshine > 7.4 ## | | | | | | | [210] cloud_3pm <= 2 ## | | | | | | | | [211] pressure_3pm <= 1009.1: No (n=46... ## | | | | | | | | [212] pressure_3pm > 1009.1 ## | | | | | | | | | [213] sunshine <= 10.9 ## | | | | | | | | | | [214] wind_gust_speed <= 37: No ... ## | | | | | | | | | | [215] wind_gust_speed > 37: No (... ## | | | | | | | | | [216] sunshine > 10.9: No (n=315, ... ## | | | | | | | [217] cloud_3pm > 2 ## | | | | | | | | [218] humidity_9am <= 78 ## | | | | | | | | | [219] pressure_9am <= 1012.2 ## | | | | | | | | | | [220] rainfall <= 0.6 ## | | | | | | | | | | | [221] wind_gust_speed <= 35:... ## | | | | | | | | | | | [222] wind_gust_speed > 35 ## | | | | | | | | | | | | [223] cloud_3pm <= 5: No... ## | | | | | | | | | | | | [224] cloud_3pm > 5: No ... ## | | | | | | | | | | [225] rainfall > 0.6: No (n=56... ## | | | | | | | | | [226] pressure_9am > 1012.2 ## | | | | | | | | | | [227] max_temp <= 22.6 ## | | | | | | | | | | | [228] wind_gust_speed <= 30:... ## | | | | | | | | | | | [229] wind_gust_speed > 30: ... ## | | | | | | | | | | [230] max_temp > 22.6 ## | | | | | | | | | | | [231] humidity_3pm <= 54 ## | | | | | | | | | | | | [232] wind_gust_dir <= SSE ## | | | | | | | | | | | | | [233] humidity_3pm <... ## | | | | | | | | | | | | | [234] humidity_3pm >... ## | | | | | | | | | | | | [235] wind_gust_dir > SS... ## | | | | | | | | | | | [236] humidity_3pm > 54: No ... ## | | | | | | | | [237] humidity_9am > 78 ## | | | | | | | | | [238] pressure_3pm <= 1005.7: No (n ... ## | | | | | | | | | [239] pressure_3pm > 1005.7 ## | | | | | | | | | | [240] max_temp <= 21 ## | | | | | | | | | | | [241] pressure_9am <= 1014.6 ## | | | | | | | | | | | | [242] wind_dir_3pm <= SE... ## | | | | | | | | | | | | [243] wind_dir_3pm > SE:... ## | | | | | | | | | | | [244] pressure_9am > 1014.6 ## | | | | | | | | | | | | [245] humidity_3pm <= 60... ## | | | | | | | | | | | | [246] humidity_3pm > 60:... ## | | | | | | | | | | [247] max_temp > 21 ## | | | | | | | | | | | [248] wind_gust_dir <= W: No... ## | | | | | | | | | | | [249] wind_gust_dir > W ## | | | | | | | | | | | | [250] wind_dir_9am <= SE... ## | | | | | | | | | | | | [251] wind_dir_9am > SE:... ## | | | | | [252] pressure_3pm > 1013.3 ## | | | | | | [253] sunshine <= 4.6 ## | | | | | | | [254] pressure_3pm <= 1021.8 ## | | | | | | | | [255] humidity_3pm <= 57: No (n=463, e... ## | | | | | | | | [256] humidity_3pm > 57 ## | | | | | | | | | [257] min_temp <= 13.5: No (n=586,... ## | | | | | | | | | [258] min_temp > 13.5: No (n=385, ... ## | | | | | | | [259] pressure_3pm > 1021.8 ## | | | | | | | | [260] temp_9am <= 20 ## | | | | | | | | | [261] wind_gust_speed <= 28: No (n =... ## | | | | | | | | | [262] wind_gust_speed > 28: No (n=... ## | | | | | | | | [263] temp_9am > 20: No (n=24, err=3... ## | | | | | | [264] sunshine > 4.6 ## | | | | | | | [265] humidity_3pm <= 65 ## | | | | | | | | [266] pressure_3pm <= 1018.2 ## | | | | | | | | | [267] cloud_3pm <= 5 ## | | | | | | | | | | [268] rainfall <= 0.1 ## | | | | | | | | | | | [269] humidity_9am <= 78 ## | | | | | | | | | | | | [270] evaporation <= 5.8 ## | | | | | | | | | | | | | [271] humidity_3pm <... ## | | | | | | | | | | | | | | [272] cloud_9am ... ## | | | | | | | | | | | | | | [273] cloud_9am ... ## | | | | | | | | | | | | | [274] humidity_3pm > 55 ## | | | | | | | | | | | | | | [275] wind_dir_3... ## | | | | | | | | | | | | | | [276] wind_dir_3... ## | | | | | | | | | | | | [277] evaporation > 5.8 ## | | | | | | | | | | | | | [278] sunshine <= 10.2 ## | | | | | | | | | | | | | | [279] humidity_3... ## | | | | | | | | | | | | | | [280] humidity_3... ## | | | | | | | | | | | | | [281] sunshine > 10.... ## | | | | | | | | | | | [282] humidity_9am > 78 ## | | | | | | | | | | | | [283] pressure_9am <= 10... ## | | | | | | | | | | | | | [284] wind_gust_spee... ## | | | | | | | | | | | | | [285] wind_gust_spee... ## | | | | | | | | | | | | [286] pressure_9am > 102... ## | | | | | | | | | | [287] rainfall > 0.1 ## | | | | | | | | | | | [288] wind_gust_speed <= 35:... ## | | | | | | | | | | | [289] wind_gust_speed > 35 ## | | | | | | | | | | | | [290] cloud_3pm <= 4: No... ## | | | | | | | | | | | | [291] cloud_3pm > 4: No ... ## | | | | | | | | | [292] cloud_3pm > 5 ## | | | | | | | | | | [293] evaporation <= 4.8: No (n ... ## | | | | | | | | | | [294] evaporation > 4.8: No (n =... ## | | | | | | | | [295] pressure_3pm > 1018.2 ## | | | | | | | | | [296] wind_gust_speed <= 26 ## | | | | | | | | | | [297] pressure_3pm <= 1024.7: No... ## | | | | | | | | | | [298] pressure_3pm > 1024.7: No ... ## | | | | | | | | | [299] wind_gust_speed > 26 ## | | | | | | | | | | [300] sunshine <= 10.2 ## | | | | | | | | | | | [301] cloud_3pm <= 5 ## | | | | | | | | | | | | [302] wind_dir_3pm <= ES... ## | | | | | | | | | | | | [303] wind_dir_3pm > ESE ## | | | | | | | | | | | | | [304] temp_3pm <= 21.2 ## | | | | | | | | | | | | | | [305] wind_dir_3... ## | | | | | | | | | | | | | | | [306] wind_g... ## | | | | | | | | | | | | | | | [307] wind_g... ## | | | | | | | | | | | | | | [308] wind_dir_3... ## | | | | | | | | | | | | | | | [309] pressu... ## | | | | | | | | | | | | | | | | [310] te... ## | | | | | | | | | | | | | | | | [311] te... ## | | | | | | | | | | | | | | | [312] pressu... ## | | | | | | | | | | | | | [313] temp_3pm > 21.2 ## | | | | | | | | | | | | | | [314] rainfall <... ## | | | | | | | | | | | | | | [315] rainfall >... ## | | | | | | | | | | | [316] cloud_3pm > 5 ## | | | | | | | | | | | | [317] temp_3pm <= 19.7: ... ## | | | | | | | | | | | | [318] temp_3pm > 19.7 ## | | | | | | | | | | | | | [319] pressure_3pm <... ## | | | | | | | | | | | | | [320] pressure_3pm >... ## | | | | | | | | | | [321] sunshine > 10.2: No (n=5... ## | | | | | | | [322] humidity_3pm > 65 ## | | | | | | | | [323] pressure_3pm <= 1024.5 ## | | | | | | | | | [324] cloud_3pm <= 6 ## | | | | | | | | | | [325] wind_dir_3pm <= ESE ## | | | | | | | | | | | [326] wind_speed_3pm <= 15: ... ## | | | | | | | | | | | [327] wind_speed_3pm > 15 ## | | | | | | | | | | | | [328] max_temp <= 18.2: ... ## | | | | | | | | | | | | [329] max_temp > 18.2: N... ## | | | | | | | | | | [330] wind_dir_3pm > ESE: No (n ... ## | | | | | | | | | [331] cloud_3pm > 6: No (n=609, er... ## | | | | | | | | [332] pressure_3pm > 1024.5 ## | | | | | | | | | [333] min_temp <= 4.3: No (n=200, ... ## | | | | | | | | | [334] min_temp > 4.3: No (n=433, e... ## | | | | [335] rain_today in Yes ## | | | | | [336] pressure_3pm <= 1015.4 ## | | | | | | [337] sunshine <= 7.2 ## | | | | | | | [338] pressure_3pm <= 1007.4: Yes (n=345, ... ## | | | | | | | [339] pressure_3pm > 1007.4 ## | | | | | | | | [340] wind_gust_speed <= 37: No (n=372... ## | | | | | | | | [341] wind_gust_speed > 37: No (n=476,... ## | | | | | | [342] sunshine > 7.2 ## | | | | | | | [343] wind_gust_speed <= 37 ## | | | | | | | | [344] humidity_3pm <= 61: No (n=760, e... ## | | | | | | | | [345] humidity_3pm > 61 ## | | | | | | | | | [346] humidity_9am <= 76: No (n=20... ## | | | | | | | | | [347] humidity_9am > 76: No (n=486... ## | | | | | | | [348] wind_gust_speed > 37 ## | | | | | | | | [349] humidity_9am <= 82 ## | | | | | | | | | [350] cloud_3pm <= 4: No (n=188, e... ## | | | | | | | | | [351] cloud_3pm > 4: No (n=851, er... ## | | | | | | | | [352] humidity_9am > 82 ## | | | | | | | | | [353] pressure_3pm <= 1007.1: Yes (n... ## | | | | | | | | | [354] pressure_3pm > 1007.1 ## | | | | | | | | | | [355] min_temp <= 9.2 ## | | | | | | | | | | | [356] pressure_3pm <= 1013.8... ## | | | | | | | | | | | [357] pressure_3pm > 1013.8:... ## | | | | | | | | | | [358] min_temp > 9.2: No (n=51... ## | | | | | [359] pressure_3pm > 1015.4 ## | | | | | | [360] wind_gust_speed <= 33 ## | | | | | | | [361] min_temp <= 11 ## | | | | | | | | [362] pressure_3pm <= 1022.3: No (n=54... ## | | | | | | | | [363] pressure_3pm > 1022.3: No (n=553... ## | | | | | | | [364] min_temp > 11 ## | | | | | | | | [365] sunshine <= 4.7: No (n=166, err ... ## | | | | | | | | [366] sunshine > 4.7 ## | | | | | | | | | [367] humidity_3pm <= 68: No (n=50... ## | | | | | | | | | [368] humidity_3pm > 68: No (n=115... ## | | | | | | [369] wind_gust_speed > 33 ## | | | | | | | [370] humidity_3pm <= 63 ## | | | | | | | | [371] rainfall <= 7.5 ## | | | | | | | | | [372] pressure_3pm <= 1018.8: No (n ... ## | | | | | | | | | [373] pressure_3pm > 1018.8: No (n =... ## | | | | | | | | [374] rainfall > 7.5 ## | | | | | | | | | [375] temp_3pm <= 21: No (n=315, e... ## | | | | | | | | | [376] temp_3pm > 21: No (n=123, er... ## | | | | | | | [377] humidity_3pm > 63 ## | | | | | | | | [378] sunshine <= 4.8: No (n=272, err ... ## | | | | | | | | [379] sunshine > 4.8: No (n=659, err =... ## | | | [380] wind_gust_speed > 48 ## | | | | [381] pressure_3pm <= 1012.1 ## | | | | | [382] sunshine <= 6.8 ## | | | | | | [383] wind_gust_speed <= 65 ## | | | | | | | [384] humidity_9am <= 70: Yes (n=315, err ... ## | | | | | | | [385] humidity_9am > 70: Yes (n=471, err =... ## | | | | | | [386] wind_gust_speed > 65 ## | | | | | | | [387] pressure_3pm <= 1006.1: Yes (n=227, ... ## | | | | | | | [388] pressure_3pm > 1006.1 ## | | | | | | | | [389] humidity_3pm <= 58: Yes (n=64, e... ## | | | | | | | | [390] humidity_3pm > 58: Yes (n=111, e... ## | | | | | [391] sunshine > 6.8 ## | | | | | | [392] humidity_9am <= 76 ## | | | | | | | [393] wind_dir_3pm <= SW ## | | | | | | | | [394] wind_speed_3pm <= 24: No (n=290,... ## | | | | | | | | [395] wind_speed_3pm > 24 ## | | | | | | | | | [396] wind_gust_speed <= 54: No (n =... ## | | | | | | | | | [397] wind_gust_speed > 54 ## | | | | | | | | | | [398] cloud_3pm <= 5 ## | | | | | | | | | | | [399] rainfall <= 15: No (n ... ## | | | | | | | | | | | [400] rainfall > 15: Yes (n ... ## | | | | | | | | | | [401] cloud_3pm > 5 ## | | | | | | | | | | | [402] wind_speed_3pm <= 35: ... ## | | | | | | | | | | | [403] wind_speed_3pm > 35: N... ## | | | | | | | [404] wind_dir_3pm > SW ## | | | | | | | | [405] humidity_3pm <= 57 ## | | | | | | | | | [406] rainfall <= 0.5: No (n=185, ... ## | | | | | | | | | [407] rainfall > 0.5: Yes (n=128, ... ## | | | | | | | | [408] humidity_3pm > 57: Yes (n=372, e... ## | | | | | | [409] humidity_9am > 76 ## | | | | | | | [410] wind_gust_speed <= 59: Yes (n=488, e... ## | | | | | | | [411] wind_gust_speed > 59: Yes (n=354, er... ## | | | | [412] pressure_3pm > 1012.1 ## | | | | | [413] rain_today in No ## | | | | | | [414] humidity_3pm <= 66 ## | | | | | | | [415] wind_gust_speed <= 56 ## | | | | | | | | [416] sunshine <= 6.9: No (n=319, err ... ## | | | | | | | | [417] sunshine > 6.9 ## | | | | | | | | | [418] wind_speed_3pm <= 22: No (n=... ## | | | | | | | | | [419] wind_speed_3pm > 22 ## | | | | | | | | | | [420] wind_dir_3pm <= SSE: No (n... ## | | | | | | | | | | [421] wind_dir_3pm > SSE: No (n ... ## | | | | | | | [422] wind_gust_speed > 56 ## | | | | | | | | [423] wind_gust_dir <= W ## | | | | | | | | | [424] sunshine <= 8.7 ## | | | | | | | | | | [425] rainfall <= 0: No (n=487... ## | | | | | | | | | | [426] rainfall > 0: No (n=156,... ## | | | | | | | | | [427] sunshine > 8.7: No (n=110, e... ## | | | | | | | | [428] wind_gust_dir > W: No (n=135, er... ## | | | | | | [429] humidity_3pm > 66 ## | | | | | | | [430] sunshine <= 7.1 ## | | | | | | | | [431] wind_speed_9am <= 17: Yes (n=50,... ## | | | | | | | | [432] wind_speed_9am > 17 ## | | | | | | | | | [433] pressure_3pm <= 1017.2: Yes (n... ## | | | | | | | | | [434] pressure_3pm > 1017.2: No (n =... ## | | | | | | | [435] sunshine > 7.1 ## | | | | | | | | [436] rainfall <= 0.2 ## | | | | | | | | | [437] wind_gust_speed <= 54: No (n =... ## | | | | | | | | | [438] wind_gust_speed > 54: No (n=... ## | | | | | | | | [439] rainfall > 0.2: No (n=90, err=... ## | | | | | [440] rain_today in Yes ## | | | | | | [441] humidity_9am <= 84 ## | | | | | | | [442] humidity_3pm <= 66 ## | | | | | | | | [443] humidity_9am <= 68: No (n=402, e... ## | | | | | | | | [444] humidity_9am > 68: No (n=605, er... ## | | | | | | | [445] humidity_3pm > 66: Yes (n=288, err =... ## | | | | | | [446] humidity_9am > 84 ## | | | | | | | [447] temp_9am <= 6.5: No (n=45, err=22.2%) ## | | | | | | | [448] temp_9am > 6.5 ## | | | | | | | | [449] sunshine <= 7.1: Yes (n=186, err... ## | | | | | | | | [450] sunshine > 7.1 ## | | | | | | | | | [451] temp_9am <= 18.4: Yes (n=245... ## | | | | | | | | | [452] temp_9am > 18.4 ## | | | | | | | | | | [453] cloud_3pm <= 5: Yes (n=3... ## | | | | | | | | | | [454] cloud_3pm > 5: Yes (n=12... ## | [455] humidity_3pm > 72 ## | | [456] humidity_3pm <= 83 ## | | | [457] wind_gust_speed <= 41 ## | | | | [458] rain_today in No ## | | | | | [459] cloud_3pm <= 6 ## | | | | | | [460] pressure_3pm <= 1012.1 ## | | | | | | | [461] wind_speed_3pm <= 13 ## | | | | | | | | [462] pressure_9am <= 1015: No (n=125,... ## | | | | | | | | [463] pressure_9am > 1015: Yes (n=15, ... ## | | | | | | | [464] wind_speed_3pm > 13 ## | | | | | | | | [465] rainfall <= 0 ## | | | | | | | | | [466] sunshine <= 5.7: Yes (n=20, ... ## | | | | | | | | | [467] sunshine > 5.7: No (n=207, e... ## | | | | | | | | [468] rainfall > 0: No (n=59, err=49... ## | | | | | | [469] pressure_3pm > 1012.1 ## | | | | | | | [470] cloud_3pm <= 3 ## | | | | | | | | [471] wind_gust_dir <= S: No (n=99, er... ## | | | | | | | | [472] wind_gust_dir > S: No (n=112, er... ## | | | | | | | [473] cloud_3pm > 3 ## | | | | | | | | [474] pressure_3pm <= 1023.1 ## | | | | | | | | | [475] wind_speed_3pm <= 19 ## | | | | | | | | | | [476] humidity_3pm <= 81 ## | | | | | | | | | | | [477] rainfall <= 0: No (n =... ## | | | | | | | | | | | [478] rainfall > 0 ## | | | | | | | | | | | | [479] wind_gust_speed <=... ## | | | | | | | | | | | | [480] wind_gust_speed > ... ## | | | | | | | | | | [481] humidity_3pm > 81: No (n =... ## | | | | | | | | | [482] wind_speed_3pm > 19: No (n=2... ## | | | | | | | | [483] pressure_3pm > 1023.1: No (n=368... ## | | | | | [484] cloud_3pm > 6 ## | | | | | | [485] pressure_3pm <= 1020.4 ## | | | | | | | [486] pressure_3pm <= 1008.6: Yes (n=165, ... ## | | | | | | | [487] pressure_3pm > 1008.6 ## | | | | | | | | [488] humidity_3pm <= 78: No (n=519, e... ## | | | | | | | | [489] humidity_3pm > 78 ## | | | | | | | | | [490] humidity_9am <= 74: Yes (n=8... ## | | | | | | | | | [491] humidity_9am > 74 ## | | | | | | | | | | [492] rainfall <= 0.4: No (n=1... ## | | | | | | | | | | [493] rainfall > 0.4: Yes (n=4... ## | | | | | | [494] pressure_3pm > 1020.4 ## | | | | | | | [495] humidity_3pm <= 77: No (n=262, err =... ## | | | | | | | [496] humidity_3pm > 77: No (n=179, err=... ## | | | | [497] rain_today in Yes ## | | | | | [498] pressure_3pm <= 1013.8 ## | | | | | | [499] sunshine <= 6.1 ## | | | | | | | [500] evaporation <= 1.6: No (n=79, err=... ## | | | | | | | [501] evaporation > 1.6 ## | | | | | | | | [502] humidity_3pm <= 77: Yes (n=150, ... ## | | | | | | | | [503] humidity_3pm > 77: Yes (n=152, e... ## | | | | | | [504] sunshine > 6.1 ## | | | | | | | [505] cloud_3pm <= 6: No (n=313, err=49.8%) ## | | | | | | | [506] cloud_3pm > 6: Yes (n=150, err=34.7%) ## | | | | | [507] pressure_3pm > 1013.8 ## | | | | | | [508] min_temp <= 10.8 ## | | | | | | | [509] wind_gust_speed <= 37: No (n=472, er... ## | | | | | | | [510] wind_gust_speed > 37: Yes (n=177, er... ## | | | | | | [511] min_temp > 10.8 ## | | | | | | | [512] cloud_3pm <= 6 ## | | | | | | | | [513] humidity_3pm <= 76: No (n=227, e... ## | | | | | | | | [514] humidity_3pm > 76: Yes (n=226, e... ## | | | | | | | [515] cloud_3pm > 6: Yes (n=354, err=39.3%) ## | | | [516] wind_gust_speed > 41 ## | | | | [517] rain_today in No ## | | | | | [518] sunshine <= 8.4 ## | | | | | | [519] pressure_3pm <= 1013.8: Yes (n=389, err ... ## | | | | | | [520] pressure_3pm > 1013.8: Yes (n=309, err =... ## | | | | | [521] sunshine > 8.4 ## | | | | | | [522] wind_dir_3pm <= S ## | | | | | | | [523] cloud_3pm <= 5 ## | | | | | | | | [524] humidity_3pm <= 81 ## | | | | | | | | | [525] wind_gust_speed <= 59: No (n =... ## | | | | | | | | | [526] wind_gust_speed > 59: No (n=... ## | | | | | | | | [527] humidity_3pm > 81: Yes (n=66, er... ## | | | | | | | [528] cloud_3pm > 5 ## | | | | | | | | [529] wind_gust_speed <= 46: No (n=89,... ## | | | | | | | | [530] wind_gust_speed > 46: Yes (n=176... ## | | | | | | [531] wind_dir_3pm > S: Yes (n=457, err=42.5%) ## | | | | [532] rain_today in Yes ## | | | | | [533] wind_gust_speed <= 57 ## | | | | | | [534] sunshine <= 3: Yes (n=282, err=19.9%) ## | | | | | | [535] sunshine > 3 ## | | | | | | | [536] wind_speed_3pm <= 24 ## | | | | | | | | [537] humidity_3pm <= 79: Yes (n=444, ... ## | | | | | | | | [538] humidity_3pm > 79: Yes (n=208, e... ## | | | | | | | [539] wind_speed_3pm > 24 ## | | | | | | | | [540] humidity_9am <= 86 ## | | | | | | | | | [541] cloud_3pm <= 6: No (n=135, e... ## | | | | | | | | | [542] cloud_3pm > 6: Yes (n=86, er... ## | | | | | | | | [543] humidity_9am > 86: Yes (n=198, e... ## | | | | | [544] wind_gust_speed > 57 ## | | | | | | [545] sunshine <= 3.7: Yes (n=154, err=3.9%) ## | | | | | | [546] sunshine > 3.7: Yes (n=526, err=16.3%) ## | | [547] humidity_3pm > 83 ## | | | [548] pressure_3pm <= 1015.2 ## | | | | [549] rain_today in No ## | | | | | [550] temp_3pm <= 29.3 ## | | | | | | [551] cloud_3pm <= 4: No (n=24, err=29.2%) ## | | | | | | [552] cloud_3pm > 4 ## | | | | | | | [553] sunshine <= 2.8 ## | | | | | | | | [554] humidity_3pm <= 88: Yes (n=194, ... ## | | | | | | | | [555] humidity_3pm > 88: Yes (n=322, e... ## | | | | | | | [556] sunshine > 2.8 ## | | | | | | | | [557] temp_3pm <= 16.4 ## | | | | | | | | | [558] pressure_3pm <= 1005.1: Yes (n... ## | | | | | | | | | [559] pressure_3pm > 1005.1: Yes (n ... ## | | | | | | | | [560] temp_3pm > 16.4 ## | | | | | | | | | [561] humidity_9am <= 80: Yes (n=3... ## | | | | | | | | | [562] humidity_9am > 80 ## | | | | | | | | | | [563] temp_3pm <= 21.7: Yes (n =... ## | | | | | | | | | | [564] temp_3pm > 21.7: No (n=1... ## | | | | | [565] temp_3pm > 29.3: No (n=23, err=4.3%) ## | | | | [566] rain_today in Yes ## | | | | | [567] humidity_3pm <= 88 ## | | | | | | [568] pressure_3pm <= 1005.1: Yes (n=220, err ... ## | | | | | | [569] pressure_3pm > 1005.1 ## | | | | | | | [570] wind_gust_speed <= 31: Yes (n=100, e... ## | | | | | | | [571] wind_gust_speed > 31: Yes (n=505, er... ## | | | | | [572] humidity_3pm > 88 ## | | | | | | [573] sunshine <= 3.9: Yes (n=746, err=3.1%) ## | | | | | | [574] sunshine > 3.9 ## | | | | | | | [575] wind_gust_speed <= 46 ## | | | | | | | | [576] humidity_3pm <= 91: Yes (n=122, ... ## | | | | | | | | [577] humidity_3pm > 91 ## | | | | | | | | | [578] wind_speed_3pm <= 24 ## | | | | | | | | | | [579] sunshine <= 5: No (n=8, ... ## | | | | | | | | | | [580] sunshine > 5 ## | | | | | | | | | | | [581] evaporation <= 6.1: Ye... ## | | | | | | | | | | | [582] evaporation > 6.1: Yes... ## | | | | | | | | | [583] wind_speed_3pm > 24: Yes (n=... ## | | | | | | | [584] wind_gust_speed > 46: Yes (n=402, er... ## | | | [585] pressure_3pm > 1015.2 ## | | | | [586] min_temp <= 5 ## | | | | | [587] humidity_3pm <= 94 ## | | | | | | [588] temp_9am <= 6.3: No (n=278, err=27.7%) ## | | | | | | [589] temp_9am > 6.3 ## | | | | | | | [590] rain_today in No: Yes (n=135, err=... ## | | | | | | | [591] rain_today in Yes: Yes (n=52, err=... ## | | | | | [592] humidity_3pm > 94 ## | | | | | | [593] wind_gust_speed <= 46: Yes (n=197, err =... ## | | | | | | [594] wind_gust_speed > 46: Yes (n=257, err=... ## | | | | [595] min_temp > 5 ## | | | | | [596] rain_today in No ## | | | | | | [597] humidity_9am <= 96 ## | | | | | | | [598] humidity_3pm <= 88 ## | | | | | | | | [599] humidity_9am <= 78: Yes (n=182, ... ## | | | | | | | | [600] humidity_9am > 78: Yes (n=255, e... ## | | | | | | | [601] humidity_3pm > 88 ## | | | | | | | | [602] cloud_3pm <= 3: No (n=12, err=... ## | | | | | | | | [603] cloud_3pm > 3: Yes (n=593, err =... ## | | | | | | [604] humidity_9am > 96 ## | | | | | | | [605] humidity_3pm <= 90 ## | | | | | | | | [606] pressure_3pm <= 1015.5: Yes (n=2... ## | | | | | | | | [607] pressure_3pm > 1015.5: No (n=70,... ## | | | | | | | [608] humidity_3pm > 90: Yes (n=146, err =... ## | | | | | [609] rain_today in Yes ## | | | | | | [610] humidity_3pm <= 90 ## | | | | | | | [611] wind_gust_speed <= 31: Yes (n=201, e... ## | | | | | | | [612] wind_gust_speed > 31 ## | | | | | | | | [613] rainfall <= 12: Yes (n=437, err ... ## | | | | | | | | [614] rainfall > 12: Yes (n=207, err =... ## | | | | | | [615] humidity_3pm > 90 ## | | | | | | | [616] min_temp <= 10.5: Yes (n=318, err=... ## | | | | | | | [617] min_temp > 10.5: Yes (n=630, err=8... ## ## Number of inner nodes: 308 ## Number of terminal nodes: 309 ```

Support further development by purchasing the PDF version of the book.
Other online resources include the GNU/Linux Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 2000-2020 Togaware Pty Ltd. . Creative Commons ShareAlike V4.