The input test data (housing_test) has 54 observations of 14 variables. The
example uses the model rft_model (see the Output section), created by the Forest_Drive
function, to predict the homestyle of the test data set.
Forest_Predict Example Input Table housing_test (Columns 1-7)
sn |
price |
lotsize |
bedrooms |
bathrms |
stories |
driveway |
13 |
27000 |
1700 |
3 |
1 |
2 |
yes |
16 |
37900 |
3185 |
2 |
1 |
1 |
yes |
25 |
42000 |
4960 |
2 |
1 |
1 |
yes |
38 |
67000 |
5170 |
3 |
1 |
4 |
yes |
53 |
68000 |
9166 |
2 |
1 |
1 |
yes |
104 |
132000 |
3500 |
4 |
2 |
2 |
yes |
111 |
43000 |
5076 |
3 |
1 |
1 |
no |
117 |
93000 |
3760 |
3 |
1 |
2 |
yes |
132 |
44500 |
3850 |
3 |
1 |
2 |
yes |
140 |
43000 |
3750 |
3 |
1 |
2 |
yes |
142 |
40000 |
2650 |
3 |
1 |
2 |
yes |
157 |
60000 |
2953 |
3 |
1 |
2 |
yes |
... |
... |
... |
... |
... |
... |
... |
Forest_Predict Example Input Table housing_test (Columns 8-14)
recroom |
fullbase |
gashw |
airco |
garagepl |
prefarea |
homestyle |
no |
no |
no |
no |
0 |
no |
Classic |
no |
no |
no |
yes |
0 |
no |
Classic |
no |
no |
no |
no |
0 |
no |
Classic |
no |
no |
no |
yes |
0 |
no |
Eclectic |
no |
yes |
no |
yes |
2 |
no |
Eclectic |
no |
no |
yes |
no |
2 |
no |
bungalow |
no |
no |
no |
no |
0 |
no |
Classic |
no |
no |
yes |
no |
2 |
no |
Eclectic |
no |
no |
no |
no |
0 |
no |
Classic |
no |
no |
no |
no |
0 |
no |
Classic |
no |
yes |
no |
no |
1 |
no |
Classic |
no |
yes |
no |
yes |
0 |
no |
Eclectic |
... |
... |
... |
... |
... |
... |
... |