Random forest is often used for classification and regression. For classification, accuracy, precision, recall, and F1 score are important. Accuracy shows overall correctness. Precision tells how many predicted positives are truly positive. Recall shows how many real positives were found. F1 balances precision and recall. For regression, mean squared error (MSE) or R-squared are used to measure prediction quality.
We choose metrics based on the problem. For example, if missing a positive case is costly, recall matters more. Random forest can handle imbalanced data well, but metrics guide us to tune it properly.