Project 6
devtools Functions:
load_all(): loads all functions and data.document(): remakes documentation.check(): checks whether package meets CRAN’s guidelines.test(): runs unit tests (not required for project).usethis Functions:
use_r(): creates R script for function.use_data(): saves data in data/ folder.#'.man/ folder when devtools::document() is run.
Work time for Project 6 Part 1!
15:00
Example: Classifying tumors.
Postive class: “malignant” (cancerous)
Negative class: “benign” (not cancerous)
Which of these is the most important to minimize (in this context)?
\[ \begin{align*} \text{Accuracy} \quad &= \quad \frac{TP + TN}{TP + TN + FP + FN} &&= \quad \mathbb{P}[\text{correct prediction}], \\ \text{Precision} \quad &= \quad \frac{TP}{TP + FP} &&= \quad \mathbb{P}[(+ \text{ in reality}) \text{ given } (\text{test } +)] \\ \text{Recall} \quad &= \quad \frac{TP}{TP + FN} &&= \quad \mathbb{P}[(\text{test } +) \text{ given } (+ \text{ in reality})] \end{align*} \]
Work on the worksheet for Project 6!
15:00
Work time for Project 5.
30:00
