From fbc8fa45bfedd3e9d6931536562d17cc57999f64 Mon Sep 17 00:00:00 2001 From: AytugAltin Date: Thu, 21 Apr 2022 13:12:35 +0200 Subject: [PATCH 1/3] CML workflow added --- .github/workflows/train.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/train.yaml b/.github/workflows/train.yaml index bc1f8001..87e88198 100644 --- a/.github/workflows/train.yaml +++ b/.github/workflows/train.yaml @@ -16,7 +16,7 @@ jobs: git fetch --prune dvc metrics diff --show-md master > report.md - # Add figure to the report + # Add figure to the report echo "## Validating results by region" cml-publish by_region.png --md >> report.md cml-send-comment report.md \ No newline at end of file From a445a4e7ab3332df0bedc3e11c8ff6a6ec3c81b4 Mon Sep 17 00:00:00 2001 From: Aytug Date: Thu, 21 Apr 2022 13:13:21 +0200 Subject: [PATCH 2/3] 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 babc627be52a3bdba3ce765e2ef539d1929edb4e Mon Sep 17 00:00:00 2001 From: Aytug Date: Thu, 21 Apr 2022 13:15:43 +0200 Subject: [PATCH 3/3] Update train.py --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index 7f2c76cb..f212604f 100644 --- a/train.py +++ b/train.py @@ -27,7 +27,7 @@ X = imp.transform(X) -# Linear model +# Linear model clf = QuadraticDiscriminantAnalysis() yhat = cross_val_predict(clf, X, y, cv=5)