From 4a038ea5f1a3faa59f800ad7ffbad3dcbd53acd0 Mon Sep 17 00:00:00 2001 From: Elle O'Brien Date: Thu, 13 Aug 2020 13:46:43 -0700 Subject: [PATCH 1/2] try QDA --- train.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/train.py b/train.py index e37f0eb5..7f2c76cb 100644 --- a/train.py +++ b/train.py @@ -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 @@ -28,7 +28,7 @@ # Linear model -clf = LogisticRegression() +clf = QuadraticDiscriminantAnalysis() yhat = cross_val_predict(clf, X, y, cv=5) acc = np.mean(yhat==y) From 80310fe1877b059e7c7191ab546a400f4b9c121f Mon Sep 17 00:00:00 2001 From: Elle O'Brien Date: Thu, 13 Aug 2020 13:52:35 -0700 Subject: [PATCH 2/2] Update train.yaml --- .github/workflows/train.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/train.yaml b/.github/workflows/train.yaml index bc1f8001..bb18bea7 100644 --- a/.github/workflows/train.yaml +++ b/.github/workflows/train.yaml @@ -14,9 +14,10 @@ jobs: dvc repro git fetch --prune + echo "## Metrics: Workspace vs. Main" dvc metrics diff --show-md master > report.md # Add figure to the report - echo "## Validating results by region" + echo "## Validating results by region" >> report.md cml-publish by_region.png --md >> report.md - cml-send-comment report.md \ No newline at end of file + cml-send-comment report.md