Random Forest (RF) is an algorithm based on supervised learning that is one of the types of machine learning. Remember labeled datasets? Forests are basically an ensemble of decision trees. A random forest builds multiple ensembles and merges them collectively to get a machine learning prediction that is more stable and accurate.