fixes cml workflows #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: train and evaluate bimodal model | |
on: [push] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- uses: iterative/setup-cml@v1 | |
- name: cml | |
env: | |
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 '## Learning Curve' >> 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 '## 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 '## Bijector' >> report.md | |
echo '![](./artifacts/bimodal/bm_bijector.png)' >> report.md | |
echo '![](./artifacts/bimodal/bm_ildj.png)' >> report.md | |
cml comment create report.md |