Artificial Intelligence, Machine Learning, Math, Computer Science, Software Engineering.
RandomForestClassifier(random_state=42) rf.fit(X_train, y_train) y_pred = rf.predict(X_test) If we look at the confusion matrix, we can see that there are an equal number of positive samples as negative samples and the model didn’t have any false negatives. Ergo, the recall is 1.