In the first challenge, an alternative to the two lines of code “rwp <- predict(rwtree, testDF) rwpred <- ifelse(rwp[,1] > 0.5, "bad", "good")” would simply be “rwpred <- predict(rwtree, testDF, type = "class")”. This could be a helpful thing to show the learners.
In the first challenge, an alternative to the two lines of code “rwp <- predict(rwtree, testDF) rwpred <- ifelse(rwp[,1] > 0.5, "bad", "good")” would simply be “rwpred <- predict(rwtree, testDF, type = "class")”. This could be a helpful thing to show the learners.