Skip to main content
100%

tut21

✓ Published0🌍 Public
BBenHeubl
Last edited Feb 13, 2020
Created on Feb 13, 2020

This example shows a supervised machine learning workflow using the random forest algorithm to predict income categories from a dataset of demographic features. The code builds a random forest model with 500 trees and three variables considered at each split, using the `randomForest` function from the R randomForest package. After training on a designated training set, it generates predictions and compares them against actual income labels using a confusion matrix, reporting a classification accuracy of approximately 77.6%. The visualization itself is not graphical; instead, it presents the model’s performance metrics as tabular and numeric output.

AI-generated description

Similar vizzes