carpentries-incubator / r-ml-tabular-data

A Data-Carpentry-style lesson on some ML techniques in R
https://carpentries-incubator.github.io/r-ml-tabular-data/
Other
3 stars 0 forks source link

_episodes_rmd/04-Decision-Forests.Rmd: Minor code edit or addition #13

Closed gmcdonald-sfg closed 2 years ago

gmcdonald-sfg commented 2 years ago

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.

djhunter commented 2 years ago

I'll put this in the instructor notes.