# NOT RUN {
models <- machine_learn(pima_diabetes[1:50, ], patient_id, outcome = plasma_glucose,
models = "rf", tune = FALSE)
predictions <- predict(models)
plot(predictions)
plot(predictions, caption = "Rsquared",
title = "This model's predictions regress to the mean",
point_size = 3, point_alpha = .7, font_size = 14)
p <- plot(predictions, print = FALSE)
p + coord_fixed(ratio = 1) + theme_classic()
# }
Run the code above in your browser using DataLab