Created
July 30, 2020 14:43
-
-
Save liannewriting/efaa1be611650bd7563331a24df03bf1 to your computer and use it in GitHub Desktop.
random forest machine learning
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
dt = DecisionTreeClassifier(random_state=random_seed) | |
dt.fit(X_train, y_train) | |
y_test_pred_dt = dt.predict_proba(X_test) | |
plot_confusion_matrix(dt, X_test, y_test) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment