Measuring the Test Performance

Machine Learning in the Tidyverse

Dmitriy (Dima) Gorenshteyn

Lead Data Scientist, Memorial Sloan Kettering Cancer Center

Machine Learning Workflow

Machine Learning in the Tidyverse

Machine Learning Workflow

Machine Learning in the Tidyverse

Machine Learning Workflow

Machine Learning in the Tidyverse

Machine Learning Workflow

Machine Learning in the Tidyverse

Machine Learning Workflow

Machine Learning in the Tidyverse

Machine Learning Workflow

Machine Learning in the Tidyverse

Machine Learning Workflow

Machine Learning in the Tidyverse

Machine Learning Workflow

Machine Learning in the 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 in the Tidyverse

Let's practice!

Machine Learning in the Tidyverse

Preparing Video For Download...