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

.gitlab-ci.yml 1.4 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
42
43
44
45
46
47
48
49
50
  1. report:
  2. image: dvcorg/cml:0-dvc3-base1
  3. before_script:
  4. - cml ci
  5. - npm install -g json5
  6. script: |
  7. if [ $CI_COMMIT_BRANCH = main ]; then
  8. PREVIOUS_REF=HEAD~1
  9. else
  10. PREVIOUS_REF=main
  11. git fetch --depth=1 origin main:main
  12. fi
  13. dvc pull eval
  14. dvc plots diff $PREVIOUS_REF workspace \
  15. --show-vega --targets ROC | json5 > vega.json
  16. vl2svg vega.json roc.svg
  17. dvc plots diff $PREVIOUS_REF workspace \
  18. --show-vega --targets Precision-Recall | json5 > vega.json
  19. vl2svg vega.json prc.svg
  20. dvc plots diff $PREVIOUS_REF workspace \
  21. --show-vega --targets Confusion-Matrix | json5 > vega.json
  22. vl2svg vega.json confusion.svg
  23. cp eval/plots/images/importance.png importance_workspace.png
  24. git checkout $PREVIOUS_REF -- dvc.lock
  25. cp eval/plots/images/importance.png importance_previous.png
  26. dvc_report=$(dvc exp diff $PREVIOUS_REF --md)
  27. cat <<EOF > report.md
  28. # CML Report
  29. ## Plots
  30. ![ROC](./roc.svg)
  31. ![Precision-Recall](./prc.svg)
  32. ![Confusion Matrix](./confusion.svg)
  33. #### Feature Importance: ${PREVIOUS_REF}
  34. ![Feature Importance: ${PREVIOUS_REF}](./importance_previous.png)
  35. #### Feature Importance: workspace
  36. ![Feature Importance: workspace](./importance_workspace.png)
  37. ## Metrics and Params
  38. ### ${PREVIOUS_REF} → workspace
  39. ${dvc_report}
  40. EOF
  41. cml comment create --publish --pr=false report.md
Tip!

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

Comments

Loading...