Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

cml.yaml 1.1 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  1. name: train-my-model
  2. on: [push]
  3. jobs:
  4. run:
  5. runs-on: [ubuntu-latest]
  6. steps:
  7. - uses: actions/checkout@v2
  8. - uses: iterative/setup-cml@v1
  9. - uses: iterative/setup-dvc@v1
  10. - uses: actions/setup-python@v2
  11. with:
  12. python-version: '3.x'
  13. - name: cml
  14. env:
  15. repo_token: ${{ secrets.GITHUB_TOKEN }}
  16. AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
  17. AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
  18. run: |
  19. pip install -r requirements.txt
  20. # Pull dataset with DVC
  21. dvc pull data
  22. # Reproduce pipeline if any changes detected in dependencies
  23. dvc repro
  24. # Use DVC metrics diff to compare metrics to master
  25. git fetch --prune --unshallow
  26. dvc metrics diff --show-md master >> report.md
  27. # Add figure to report
  28. dvc plots diff --target loss.csv --show-vega master > vega.json
  29. vl2png vega.json -s 1.3 | cml-publish --md >> report.md
  30. cml-send-comment report.md
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...