mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
clean up code
This commit is contained in:
parent
7575ed3ccc
commit
a450f8ef6d
1 changed files with 42 additions and 7 deletions
49
.github/workflows/MLPipelinePullRequest.yml
vendored
49
.github/workflows/MLPipelinePullRequest.yml
vendored
|
|
@ -8,7 +8,7 @@ on:
|
|||
|
||||
jobs:
|
||||
|
||||
Retreive-Artifacts:
|
||||
Verify-Model:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
|
@ -31,12 +31,6 @@ jobs:
|
|||
cd modules/ml-pipeline/src/pipeline/src
|
||||
dvc pull -r experiments
|
||||
|
||||
Verify-Model:
|
||||
|
||||
needs: Retreive-Artifacts
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Build Prediction docker Image
|
||||
run: |
|
||||
cd modules/ml-pipeline/src/pipeline/
|
||||
|
|
@ -45,3 +39,44 @@ jobs:
|
|||
- name: Run Prediction docker container
|
||||
run: |
|
||||
docker run prediction_test
|
||||
|
||||
Trigger-CML:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install packages to retrieve artifacts
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.ROBOT_AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.ROBOT_AWS_SECRET_ACCESS_KEY }}
|
||||
run: |
|
||||
pip install --upgrade pip
|
||||
pip install dvc dvc_s3
|
||||
# pip install -r src/requirements/predictions/requirements-dev.txt
|
||||
|
||||
- name: Retrieve artifacts (dvc.lock)
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.ROBOT_AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.ROBOT_AWS_SECRET_ACCESS_KEY }}
|
||||
run: |
|
||||
cd modules/ml-pipeline/src/pipeline/src
|
||||
dvc pull -r experiments
|
||||
|
||||
- name: Generate report
|
||||
- uses: actions/setup-python@v4
|
||||
- uses: iterative/setup-cml@v1
|
||||
env:
|
||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
cd modules/ml-pipeline/src/pipeline/src
|
||||
echo "## Model metrics" > report.md
|
||||
cat metrics/metrics.json >> report.md
|
||||
|
||||
# echo "## Residuals plot from model" >> report.md
|
||||
# metrics_location=$(find . -maxdepth 10 -name "residuals.png")
|
||||
# echo $metrics_location
|
||||
# cd $metric_location
|
||||
# echo "" >> report.md
|
||||
|
||||
cml comment create report.md
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue