Train the random forest and predict on the test sample
Usage
train_random_forest(res, df_list, train_clusters, sam, num_trees)
Arguments
- res
Resolution to train on
- df_list
List containing training and test data
- train_clusters
Cluster assignments for the training data
- sam
Test sample
- num_trees
Number of trees for the random forest
Value
A list containing the resolution, silhouette score, and number of
predicted clusters.