Skip to content

Commit

Permalink
Update cml.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
b00nw33 authored Sep 26, 2023
1 parent d4855e6 commit 35272c7
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/cml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,34 @@ on: [push]
jobs:
run:
runs-on: ubuntu-latest
container: ghcr.io/iterative/cml:0-dvc2-base1
# optionally use a convenient Ubuntu LTS + DVC + CML image
# container: ghcr.io/iterative/cml:0-dvc2-base1
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
# may need to setup NodeJS & Python3 on e.g. self-hosted
- uses: actions/setup-node@v3
with:
node-version: '16'
# - uses: actions/setup-python@v4
# with:
# python-version: '3.x'
- uses: iterative/setup-cml@v1
- name: Train model
run: |
# Your ML workflow goes here
python -m pip install --upgrade pip
pip install -r requirements.txt
python train.py
- name: Write CML report
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "## Model metrics" > report.md
cat metrics.txt >> report.md
echo "## Data viz" >> report.md
echo "![](./features.png 'Features')" >> report.md
echo "![](./residuals.png 'Residuals')" >> report.md
echo "Data viz" >> report.md
echo "![](./features.png)" >> report.md
# echo "![](./residuals.png 'Residuals')" >> report.md
# cml-publish feature_importance.png --md >> report.md
# cml-publish residuals.png --md >> report.md
# Post reports as comments in GitHub PRs
cml comment create report.md

1 comment on commit 35272c7

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Model metrics

Training variance explained: 33.0%
Test variance explained: 32.0%
Data viz

Please sign in to comment.