From c17b019b08eeff0e0558eff8f1458d942a22f076 Mon Sep 17 00:00:00 2001 From: Yikai Date: Mon, 22 Jan 2024 11:02:40 +1100 Subject: [PATCH 1/5] modify forest depth --- .github/workflows/cml.yaml | 19 +++++++++++++++++++ train.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/cml.yaml diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml new file mode 100644 index 000000000..30e129243 --- /dev/null +++ b/.github/workflows/cml.yaml @@ -0,0 +1,19 @@ +name: CML +on: [push] +jobs: + train-and-report: + runs-on: ubuntu-latest + container: docker://ghcr.io/iterative/cml:0-dvc2-base1 + steps: + - uses: actions/checkout@v3 + - name: Train model + env: + REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + pip install -r requirements.txt + python train.py # generate plot.png + + # Create CML report + cat metrics.txt >> report.md + echo '![](./plot.png "Confusion Matrix")' >> report.md + cml comment create report.md \ No newline at end of file diff --git a/train.py b/train.py index 415d9a9f9..f44634667 100644 --- a/train.py +++ b/train.py @@ -12,7 +12,7 @@ y_test = np.genfromtxt("data/test_labels.csv") # Fit a model -depth = 2 +depth = 5 clf = RandomForestClassifier(max_depth=depth) clf.fit(X_train, y_train) From 822a7a234630562820f953a940dc2e41fd4b9502 Mon Sep 17 00:00:00 2001 From: Yikai Date: Mon, 22 Jan 2024 11:22:25 +1100 Subject: [PATCH 2/5] test1 --- .github/workflows/cml.yaml | 8 ++++---- metrics.txt | 1 + plot.png | Bin 0 -> 17211 bytes 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 metrics.txt create mode 100644 plot.png diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index 30e129243..10ac08163 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -13,7 +13,7 @@ jobs: pip install -r requirements.txt python train.py # generate plot.png - # Create CML report - cat metrics.txt >> report.md - echo '![](./plot.png "Confusion Matrix")' >> report.md - cml comment create report.md \ No newline at end of file + # # Create CML report + # cat metrics.txt >> report.md + # echo '![](./plot.png "Confusion Matrix")' >> report.md + # cml comment create report.md \ No newline at end of file diff --git a/metrics.txt b/metrics.txt new file mode 100644 index 000000000..7ebc778b0 --- /dev/null +++ b/metrics.txt @@ -0,0 +1 @@ +Accuracy: 0.86 diff --git a/plot.png b/plot.png new file mode 100644 index 0000000000000000000000000000000000000000..eddac2f02396faaa87e2605c146182d022b7d26b GIT binary patch literal 17211 zcmeJFby$>X`v;507oauMf zQMKQ#U05R{aXP?t=~7@QJC|u}7`ua#BMVx$zK8GXo%s8nrXh7`Oo|iB#JyY8-d7rO zba*+~>>v8ZUtw9g-Ydysd5zWSjuM%ov4>}Yyzpg#3NoMQC6`SB|3S;6gIC8~U;FaM zG;Ks@bw!-5QG)%6wN6_x9aIt<@lIVb_&1f4+=YMbVN35U7j0lRt=zx30mPvy0xrC-#y!DGiPjW)dW_O_kQMq}YsMO{6l-cUwH zrY<*h3YV6&GS%ri!9_53egExL@b=@!kCPld>R_IdlESIrINp3FI5?Pvho{}t^TC7U z#ib=(#uH3TncdkYQ?*QkZ_I7s$c8b03^c{e>)2XYkw=Lr5KOMWd zM!7qX-6WRw_ARshWVe$A{ zMoMgKg{kMYYmeXv=rFdGINM@%3Y8@#CE=;DCT{T_)MxuLA<&y1Ke-8R=+flIQ2GqQul9EzSv14YUd=zU$ zL*jErm(QW0cWIFvLpGMrXOZil8DIH?cxtHfN%$3`m+-hKDJkFOnso|MJ^Ma7D&&4p z&)Pccf?W7p-C~E7yH(GS?WE#Bzpe45bLF;F4XL)s?{ybFQlO!!nLIRPKxB7k_*ye} zx_+5UC35a$@7|5O9zitKm1W4g+H70f^fKD;e#%JYlURk&10-xDegDhMus@@i=&d`5>ndY_tm3s#ie1kK|Q2!8q8G1SNX+o=-uvU&ok z-K#~B;CH%h(qI1OKi0PQ5w4A|3l$F<^Sng6Q}063!1U%}2@f2gJaHnymySQ$)(wpg z7jl?Rc3GKZIeYfHVXdEO(k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I|(#K43 zXmM6S!mpir{rY4vxY~Arbaa^B>MY+i%12{YL4oXrW$nN~Sss^ON!NtC@z=1s{=UAs z@Z&A82FwH^24(Dg3Cc-%Iy&h9zCc$sMA8TJdi45fATL4Jua!aWrVb6r_V#u=M5s)YDW6Rb#`YjBJa~ zK&2EY6$4=#reIe_BP>H)GeLRNFgprmA#L&UMfu2A%t#qyagsKfHCqk=P>49hAcL#G zd?IuZx%a>PCc3lSrWQQ~rJ$Zj8PvAS21*p>0KqYCFStAs*1?Q}2~re@KFNX3xuiiP zoCarN6D$h$4ZNMVg;XYbN}RKS<^N{m2BvA4ky!q6G3F8{XGULVllp0pqUpB~;T@3Q zkI_+eO~L8D!feB9^;-IF3s1Max0#>?P>kSvxC{nJfmK+H!jBsGLk#c;NOl?#0mc|M zNEOBq(Ycs+kVZ_$o8#1k#8Hu!(AR`DgVIU)+i&r3(3N7`SKl~5m+W9(?E=yw1PI@1!KN-f;J14VjNOv2lOutbA{&JSEQ9;AuynqgTb*PQ+)6Q z6(LvfSo8@X^&_)#RIt>x@gN+&*!XRe32tGM*ow$HuXt|0) zd>l}Ci&U{tc=cVt8ysy1-Kw~^4HPB1t!SJCB{xD|5=>o^04Td^E#Z84EkPd`^ zii1?b22&>x3mr&C0TBpkZvz|qLi52nf=p+F!w?2lI{_J`*_HD5Sv{%oV@QMdvjAy; zG<9HUtoNO2j(dWv67dEgh6B#>ZJVUp5;8F4A=z8cb%qzHA~|TYTcBU0w Date: Mon, 22 Jan 2024 11:33:30 +1100 Subject: [PATCH 3/5] test2 --- .github/workflows/cml.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index 10ac08163..c6f65f62e 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -14,6 +14,6 @@ jobs: python train.py # generate plot.png # # Create CML report - # cat metrics.txt >> report.md - # echo '![](./plot.png "Confusion Matrix")' >> report.md + cat metrics.txt >> report.md + echo '![](./plot.png "Confusion Matrix")' >> report.md # cml comment create report.md \ No newline at end of file From 5db12d3347d595fd69181f52966850da2919bfa0 Mon Sep 17 00:00:00 2001 From: Yikai Date: Mon, 22 Jan 2024 11:42:58 +1100 Subject: [PATCH 4/5] test3 --- .github/workflows/cml.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index c6f65f62e..f31901701 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -16,4 +16,4 @@ jobs: # # Create CML report cat metrics.txt >> report.md echo '![](./plot.png "Confusion Matrix")' >> report.md - # cml comment create report.md \ No newline at end of file + cml comment create report.md \ No newline at end of file From 084068bec63199d63581eece49ca2979aeb0fef3 Mon Sep 17 00:00:00 2001 From: Yikai Date: Mon, 22 Jan 2024 11:50:44 +1100 Subject: [PATCH 5/5] test4 --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index f44634667..64ce3873a 100644 --- a/train.py +++ b/train.py @@ -17,7 +17,7 @@ clf.fit(X_train, y_train) acc = clf.score(X_test, y_test) -print(acc) +print(f"acc:{acc}") with open("metrics.txt", "w") as outfile: outfile.write("Accuracy: " + str(acc) + "\n")