In this lesson we will learn how to fit decision tree and random forest models. These models can be used for regression or classification tasks.

In many cases tree-based models, particularly random forests, provide an improvement in accuracy over simpler model types such as logistic regression.

# Next Steps

Please head over to the R tutorial where you will learn how to fit decision trees and random forest models with tidymodels.