14.1 ML Setup

20210102 Packages used in this chapter include ROCR (Sing et al. 2020), ggplot2 (Wickham et al. 2020), rpart (Therneau and Atkinson 2019), and rattle (G. Williams 2021).

Packages are loaded into the currently running R session from your local library directories on disk. Missing packages can be installed using utils::install.packages() within R. On Ubuntu, for example, R packages can also be installed using $ wajig install r-cran-<pkgname>.

# Load required packages from local library into the R session.

library(ROCR)         # Use prediction() for evaluation.
library(ggplot2)      # Display evaluations.
library(rattle)       # Dataset: weather.
library(rpart)        # ML: decision tree rpart().
library(scales)       # Support: commas(), percent().

Your donation will support ongoing development and give you access to the PDF version of the book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.