Skip to content

Commit

Permalink
fixes cml workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
MArpogaus committed Aug 21, 2023
1 parent b8c6ec0 commit 57dab0c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 33 deletions.
33 changes: 12 additions & 21 deletions .github/workflows/bm_cml.yaml
Original file line number Diff line number Diff line change
@@ -1,53 +1,44 @@
name: train and evaluate bimodal model

on: [push]

jobs:
run:
runs-on: [ubuntu-latest]

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: iterative/setup-cml@v1

- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install TeXlive
run: sudo apt-get update && sudo apt-get install texlive texlive-science texlive-latex-extra cm-super dvipng
- name: cml
env:
repo_token: ${{ secrets.GITHUB_TOKEN }}
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install '.[train]'
python cml/bimodal.py
echo '# Bimodal Model' >> report.md
echo '## Learning Curve' >> report.md
echo '![](artifacts/bimodal/bm_data.png)' >> report.md
echo '![](./artifacts/bimodal/bm_data.png)' >> report.md
echo '## Learning Curve' >> report.md
echo '![](artifacts/bimodal/bm_hist.png)' >> report.md
echo '![](./artifacts/bimodal/bm_hist.png)' >> report.md
echo '## Metrics\n\n```yaml\n' >> report.md
cat metrics/bimodal/bm_metrics.yaml >> report.md
echo '```\n' >> report.md
echo '## Results' >> report.md
echo '![](artifacts/bimodal/bm_dists.png)' >> report.md
echo '![](./artifacts/bimodal/bm_dists.png)' >> report.md
echo '## Parameter Vector for x = 1' >> report.md
cat artifacts/bimodal/bm_pvector.txt >> report.md
echo '## Flow' >> report.md
echo '![](artifacts/bimodal/bm_flow.png)' >> report.md
echo '![](artifacts/bimodal/bm_bijectors.png)' >> report.md
echo '![](artifacts/bimodal/bm_x_trafo.png)' >> report.md
echo '![](./artifacts/bimodal/bm_flow.png)' >> report.md
echo '![](./artifacts/bimodal/bm_bijectors.png)' >> report.md
echo '![](./artifacts/bimodal/bm_x_trafo.png)' >> report.md
echo '## Bijector' >> report.md
echo '![](artifacts/bimodal/bm_bijector.png)' >> report.md
echo '![](artifacts/bimodal/bm_ildj.png)' >> report.md
echo '![](./artifacts/bimodal/bm_bijector.png)' >> report.md
echo '![](./artifacts/bimodal/bm_ildj.png)' >> report.md
cml comment create report.md
16 changes: 4 additions & 12 deletions .github/workflows/of_cml.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
name: train and evaluate old faithful model

on: [push]

jobs:
run:
runs-on: [ubuntu-latest]

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: iterative/setup-cml@v1

- uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: cml
env:
repo_token: ${{ secrets.GITHUB_TOKEN }}
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install '.[train]'
python cml/old_faithful.py
Expand Down

0 comments on commit 57dab0c

Please sign in to comment.