install.packages(c("tidyverse", "tidymodels", "tourr", "geozoo", "mulgar", "ggpcp", "plotly", "detourr", "langevitour", "ggbeeswarm", "MASS", "GGally", "ISLR", "mvtnorm", "rpart", "rpart.plot", "randomForest", "e1071", "xgboost", "Rtsne", "classifly", "penalizedLDA", "nnet", "kernelshap", "shapviz", "iml", "DALEX", "cxhull", "fpc", "mclust", "ggdendro", "kohonen", "aweSOM", "patchwork", "ggthemes", "colorspace", "palmerpenguins"), dependencies = TRUE)
ETC53250/5250 Tutorial 1
Getting set up
🎯 Objectives
The goal for this week is for you to get up and running with the computing environment needed to successfully complete this unit.
🔧 Preparation
- Create a project for this unit called
iml.Rproj
. All of your tutorial work and assignments should be completed in this workspace.
Exercises:
1. The materials at https://learnr.numbat.space are an especially good way to check your R skills are ready for the unit. Regardless how advanced you are, at some point you will need help. How you ask for help is a big factor in getting your problem fixed. The following code generates an error.
library(dplyr)
library(MASS)
library(palmerpenguins)
<- penguins |>
p_sub select(species, flipper_length_mm) |>
filter(species == "Adelie")
- Can you work out why?
- Use the
reprex
package to create a text where the code and error are visible, and can be shared with someone that might be able to help.
3. Follow the guidelines at https://tensorflow.rstudio.com/install/ to setup python and tensorflow on your computer. Then test your installation by following the beginner tutorial.
4. Download the slides.qmd
file for week 1 lecture.
- Use
knitr::purl()
to extract the R code for the class. - Open the resulting
slides.R
file in your RStudio file browser. What code is in thesetup.R
file that is sourced at the top?
- Run the rest of the code in small chunks. Does it all work for you? Do you get any errors? Do you have any suggestions on making it easier to run or understand the code?
👋 Finishing up
Make sure you say thanks and good-bye to your tutor. This is a time to also report what you enjoyed and what you found difficult.