Skip to content

Commit

Permalink
fixing deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
guipleite committed Mar 31, 2021
1 parent f8e34b9 commit c9bc9aa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
24 changes: 12 additions & 12 deletions dvc.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ stages:
md5: 260904955bdf53e03a72aa2a45fa0297
size: 4451
- path: ./src/train.py
md5: 42f68d29be9da054ca6e6f0e5c142778
size: 1094
md5: 1b5c6c1786d40c9505b2261f11a3b274
size: 1002
outs:
- path: ./models/model.joblib
md5: 287cf6a0a3fabe1103cfaca91bbc9384
size: 17122152
md5: 6e7186e0d9e5026be46572e2cb02ca06
size: 16869560
evaluate:
cmd: python3 ./src/evaluate.py ./data/weatherAUS_processed.csv ./src/model.py
./models/model.joblib
Expand All @@ -40,8 +40,8 @@ stages:
md5: 59e89e62fb8f9face4901630d1de3e16
size: 19507550
- path: ./models/model.joblib
md5: 287cf6a0a3fabe1103cfaca91bbc9384
size: 17122152
md5: 6e7186e0d9e5026be46572e2cb02ca06
size: 16869560
- path: ./src/evaluate.py
md5: 7e466368d793d09316fc1e078111a9de
size: 882
Expand All @@ -50,13 +50,13 @@ stages:
size: 4451
outs:
- path: ./results/metrics.json
md5: 1e190be0481c320f15ff811a21e32490
size: 121
md5: af950439e97764b5bf7f91322f6aa8bf
size: 120
- path: ./results/precision_recall_curve.png
md5: d4b1401d5c8601c2f3934e8028785302
size: 17033
md5: 9b817eb824b73c484bde8060fa01507a
size: 17106
- path: ./results/roc_curve.png
md5: c38ee7702a4749a5ff60c94a9e575a50
size: 20026
md5: 7530a23497d03b976795542f5dd4762f
size: 19956
std_check:
cmd: src/scripts/Scripts/std_check.sh ./
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
scikit-learn==0.21.3
scikit-learn>=0.23
pandas
seaborn
matplotlib
Expand Down
2 changes: 1 addition & 1 deletion results/metrics.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"accuracy": 0.8469057178457704, "recall": 0.9647707074297902, "precision": 0.8567414843577359, "f1": 0.9075526276188406}
{"accuracy": 0.8464349993077669, "recall": 0.9659438322076075, "precision": 0.8555415617128463, "f1": 0.907396894306228}
6 changes: 1 addition & 5 deletions src/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,15 @@
import pickle
import os
import json
import joblib

# import sklearn.external.joblib as extjoblib
import joblib

DATA_PATH = os.path.abspath(sys.argv[1])
# PROJ_PATH = os.path.abspath(sys.argv[2])
# MODEL_PATH = PROJ_PATH+"/src/model.py"
MODEL_PATH = sys.argv[2]
PARAM = int(sys.argv[3])

# if sys.argv[4]:
# OUTPUT_PATH = sys.argv[4]

sys.path.insert(1, MODEL_PATH)


Expand Down

2 comments on commit c9bc9aa

@github-actions
Copy link

Choose a reason for hiding this comment

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

Metrics

Path Metric Old New Change
results/metrics.json accuracy 0.84691 0.84643 -0.00047
results/metrics.json f1 0.90755 0.9074 -0.00016
results/metrics.json precision 0.85674 0.85554 -0.0012
results/metrics.json recall 0.96477 0.96594 0.00117

Plots

ROC Curve

Precision and Recall Curve

CML watermark

@github-actions
Copy link

Choose a reason for hiding this comment

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

Metrics

Path Metric Old New Change
results/metrics.json accuracy 0.84691 0.84643 -0.00047
results/metrics.json f1 0.90755 0.9074 -0.00016
results/metrics.json precision 0.85674 0.85554 -0.0012
results/metrics.json recall 0.96477 0.96594 0.00117

Plots

ROC Curve

Precision and Recall Curve

CML watermark

Please sign in to comment.