Skip to content

Commit

Permalink
add cml
Browse files Browse the repository at this point in the history
  • Loading branch information
Paupiera committed Jan 9, 2024
1 parent 5125cb6 commit 8c38bf4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/cml.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: train-my-model
on: [push]
jobs:
run:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: iterative/setup-cml@v1
- name: Train model
run: |
pip install -r requirements.txt # install dependencies
python train_cml.py # run training
- name: Write report
env:
# this authenticates that the right permissions are in place
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# send all information to report.md that will be reported to us when the workflow finish
cat classification_report.txt >> report.md
cml-publish confusion_matrix.png --md >> report.md
cml-send-comment report.md

0 comments on commit 8c38bf4

Please sign in to comment.