Making Predictions

Apply what you've learned about the random forest algorithm to make predictions on a test dataset.

Training a model

Using a sample of the Adult Census Income dataset, the following code trains a random forest from a training dataset split to predict the income label from a collection of features:

Get hands-on with 1400+ tech skills courses.