iterative / cml

♾️ CML - Continuous Machine Learning | CI/CD for ML
http://cml.dev
Apache License 2.0
3.99k stars 333 forks source link

Invalid URL error #1423

Closed Sandy0002 closed 11 months ago

Sandy0002 commented 11 months ago

I am just getting started with CML hence looking for the help with this error.

I am generating feature_importance and residuals images from my program and passing it in cml.yaml file in report generation. I used below code but it is showing Invalid URL error.

name: your-workflow-name
on: [push]
jobs:
  run:
    runs-on: ubuntu-latest
    # optionally use a convenient Ubuntu LTS + DVC + CML image
    # container: ghcr.io/iterative/cml:0-dvc2-base1
    steps:
      - 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
          pip install -r requirements.txt
          python train.py
      - name: Write CML report
        env:
          REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: |
          # Post reports as comments in GitHub PRs
          cat results.txt >> report.md
          cml comment create report.md
          echo "## Data viz" >> report.md
          echo "![](./feature_importance.png 'Feature Importance')" >> report.md
          echo "![](./residuals.png 'Residuals')" >> report.md
          cml comment create report.md

What should be my next steps?

0x2b3bfa0 commented 11 months ago

Duplicate of https://github.com/iterative/cml/issues/1422?

Sandy0002 commented 11 months ago

No in this I am unable to pass images and getting Invalid url error. In that it was code integration error was there while this in this I am unable to pass images in the cml.yaml file.

Sandy0002 commented 11 months ago

Yes both are same sorry my bad.