Skip to content

Commit

Permalink
try QDA
Browse files Browse the repository at this point in the history
  • Loading branch information
elleobrien committed Aug 13, 2020
1 parent 0bac884 commit 4a038ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions train.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pandas as pd
import numpy as np
from sklearn.linear_model import LogisticRegression
from sklearn.discriminant_analysis import QuadraticDiscriminantAnalysis
from sklearn import preprocessing
from sklearn.model_selection import cross_val_predict
from sklearn.metrics import confusion_matrix
Expand Down Expand Up @@ -28,7 +28,7 @@


# Linear model
clf = LogisticRegression()
clf = QuadraticDiscriminantAnalysis()
yhat = cross_val_predict(clf, X, y, cv=5)

acc = np.mean(yhat==y)
Expand Down

1 comment on commit 4a038ea

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Path Metric Value Change
metrics.json accuracy 0.75238 -0.11429
metrics.json sensitivity 0.8427 -0.11236
metrics.json specificity 0.25 -0.125

Please sign in to comment.