---
# System prepended metadata

title: AutoML code snippets

---

# AutoML code snippets

## mlr3 cheat sheet

https://cheatsheets.mlr-org.com/

## Plot random tree
```r=
lrn = rr$learners[[1]]
lrn$model
plot(lrn$model)
```

## Initialize R environment
```r=
setwd("C:/Users/nikol/LRZ Sync+Share/_UNI/DS_opt_AutoML Automated Machine Learning/Final Exercise/solution")```

library(R6)
library(mlr3)
library(mlr3pipelines)

source("./automl_code/Automl.R")

# Load data (only first 100 obs from first file)
df<-read.csv("./data/arrivals_ATL.csv",header = TRUE)
df = head(df, 1000)

x = AutomlCustom$new()
```