Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Building  Random Forest Classifier
from sklearn.ensemble import RandomForestClassifier
rfc = RandomForestClassifier(criterion = 'entropy', random_state = 42), Y_train)
# Evaluating on Training set
rfc_pred_train = rfc.predict(X_train)
print('Training Set Evaluation F1-Score=>',f1_score(Y_train,rfc_pred_train))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment