Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/cml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,19 @@ jobs:

# Add figure to report
dvc plots diff --target loss.csv --show-vega master > vega.json

vl2png vega.json -s 1.3 > vega.png
echo '![](./vega.png)' >> report.md
cml comment create --pr --publish report.md

git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"

# commit dvc.lock and files
git add dvc.lock
git add loss.csv metrics.json
git commit -m "CML commit"

git push
dvc push

31 changes: 19 additions & 12 deletions dvc.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
mystage:
cmd: python train.py
deps:
- path: data
md5: c5a2bbc6820f83da3788d7dceb32c42d.dir
- path: train.py
md5: c909a2d22ced09b274103fdae5684766
outs:
- path: loss.csv
md5: b8e6e7766dcc23a2efd5bcfc8183e69d
- path: metrics.json
md5: 0955b6cb503d807426bab33d28358988
schema: '2.0'
stages:
mystage:
cmd: python train.py
deps:
- path: data
md5: c5a2bbc6820f83da3788d7dceb32c42d.dir
size: 53504810
nfiles: 4
- path: train.py
md5: f6a45c6c760b01e4046c80a162979ec0
size: 893
outs:
- path: loss.csv
md5: 321fc917c8fbcf8e418e0d67b93f35ea
size: 587
- path: metrics.json
md5: f20ce405a3ea198f18652fb5847461bb
size: 83
32 changes: 6 additions & 26 deletions loss.csv
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
loss
0.35797476798407574
0.3108355691836759
0.30909985774265974
0.31083556918367594
0.3090998577426597
0.3078203619528226
0.30670321889561303
0.30538744766821924
0.303970884444046
0.30397088444404596
0.3028220489578898
0.30151777919737727
0.30065419009321764
0.29981400691043786
0.2990685209174709
0.29852763425049267
0.2990685209174708
0.2985276342504926
0.2978458625954957
0.29726278249284166
0.2972627824928416
0.2967908318467133
0.2962123245461746
0.2957809417825015
Expand All @@ -29,23 +29,3 @@ loss
0.29221233752620646
0.29195132793960793
0.2915727515729502
0.29150347640227825
0.29123496619168654
0.29085575142484743
0.2904402712793793
0.29036326958394054
0.29034910240309386
0.2898218375569284
0.28957572750327987
0.2894239925902565
0.2892991230093341
0.28891438744299747
0.28867314421391477
0.288388343741791
0.28834036866097357
0.2879987965400854
0.28780380639213937
0.28749829313252273
0.2872683304447179
0.28724627707446376
0.2868515983332266
2 changes: 1 addition & 1 deletion metrics.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"accuracy": 0.87236, "precision": 0.8641860465116279, "recall": 0.885675697147851}
{"accuracy": 0.87228, "precision": 0.860309911015649, "recall": 0.8909986494001748}