Skip to content
Snippets Groups Projects
Commit b382407e authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 009c06e3
Branches
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ import numpy as np
import scipy.optimize as opt
from sklearn import preprocessing
import matplotlib.pyplot as plt
from sklearn.metrics import confusion_matrix, classification_report, accuracy_score, jaccard_score, f1_score, precision_score, recall_score, roc_auc_score
from sklearn.metrics import confusion_matrix, accuracy_score, jaccard_score, f1_score, precision_score, recall_score, roc_auc_score
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.neighbors import KNeighborsClassifier
......@@ -115,3 +115,5 @@ def decision_tree(x, y, max_depth=4):
print('Recall: ', "{:.4f}".format(recall_score(y_test, yhat)))
print('F1: ', "{:.4f}".format(f1_score(y_test, yhat)))
print('AUC: ', "{:.4f}".format(roc_auc_score(y_test, yhat_prob[:, 1])))
return DT
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment