Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fork #92

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fork #92

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/cml.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CML
on: [push]
jobs:
train-and-report:
runs-on: ubuntu-latest
# optionally use a convenient Ubuntu LTS + DVC + CML container
# container: docker://ghcr.io/iterative/cml:0-dvc2-base1
steps:
# may need to setup Node.js & Python3 on e.g. self-hosted
# - uses: actions/setup-node@v2
# with:
# node-version: '16'
# - uses: actions/setup-python@v4
# with:
# python-version: '3.x'
- uses: iterative/setup-cml@v1
- uses: actions/checkout@v3
- name: Train model
run: |
# Your ML workflow goes here
pip install -r requirements.txt
python train.py # generate plot.png
- name: Create CML report
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Post CML report as a comment in GitHub
cat metrics.txt >> report.md
echo '![](./features_experience.png "Feature Experience")' >> report.md
cml comment create report.md
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pandas
sklearn
scikit-learn
matplotlib
seaborn
numpy