Last active
September 29, 2021 22:08
-
-
Save shayaf84/9921980bb7a709c8d5bd1564a031cee5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Random Forest Classifier | |
rf = RandomForestClassifier(n_estimators = 15,random_state=42) | |
rf.fit(X_train, y_train) | |
y_pred = rf.predict(X_test) | |
precision = precision_score(y_test, y_pred) | |
recall = recall_score(y_test, y_pred) | |
f1 = f1_score(y_test, y_pred) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment