We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56de3ef commit 6cc2ab7Copy full SHA for 6cc2ab7
2 files changed
.github/workflows/cml.yaml
@@ -0,0 +1,19 @@
1
+name: CML
2
+on: [push]
3
+jobs:
4
+ train-and-report:
5
+ runs-on: ubuntu-latest
6
+ container: docker://ghcr.io/iterative/cml:0-dvc2-base1
7
+ steps:
8
+ - uses: actions/checkout@v3
9
+ - name: Train model
10
+ env:
11
+ REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12
+ run: |
13
+ pip install -r requirements.txt
14
+ python train.py # generate plot.png
15
+
16
+ # Create CML report
17
+ cat metrics.txt >> report.md
18
+ echo '' >> report.md
19
+ cml comment create report.md
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)
0 commit comments