Measuring the Test Performance

Machine Learning nel tidyverse

Dmitriy (Dima) Gorenshteyn

Lead Data Scientist, Memorial Sloan Kettering Cancer Center

Machine Learning Workflow

Machine Learning nel tidyverse

Machine Learning Workflow

Machine Learning nel tidyverse

Machine Learning Workflow

Machine Learning nel tidyverse

Machine Learning Workflow

Machine Learning nel tidyverse

Machine Learning Workflow

Machine Learning nel tidyverse

Machine Learning Workflow

Machine Learning nel tidyverse

Machine Learning Workflow

Machine Learning nel tidyverse

Machine Learning Workflow

Machine Learning nel tidyverse

Measuring the Test Performance

best_model <- ranger(formula = life_expectancy~., 
                     data = training_data,
                     mtry = 4, num.trees = 100, seed = 42)
test_actual <- testing_data$life_expectancy
test_predict <- predict(best_model, testing_data)$predictions
mae(test_actual, test_predict)
Machine Learning nel tidyverse

Let's practice!

Machine Learning nel tidyverse

Preparing Video For Download...