Revise model performance metrics and conclusions #48
This file contains hidden or 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: SVM Daily Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: false | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: Install dependencies | |
| shell: bash | |
| run: | | |
| if [ -f "Dependencies/requirements.txt" ]; then | |
| echo "✅ requirements.txt found" | |
| python -m pip install --upgrade pip | |
| python -m pip install -r Dependencies/requirements.txt | |
| pip install papermill | |
| else | |
| echo "❌ requirements.txt NOT found" | |
| exit 1 | |
| fi | |
| - name: Run SVMDaily notebook | |
| run: | | |
| export PYTHONPATH="$PWD:$PWD/Build:$PYTHONPATH" | |
| papermill \ | |
| 3_OUTPUT/3_svr/SVMDaily.ipynb \ | |
| 3_OUTPUT/3_svr/SVMDaily_output.ipynb \ | |
| --kernel python3 \ | |
| --execution-timeout 3600 \ | |
| --cwd "$PWD" || echo "Notebook execution completed with errors" | |
| - name: Extract results | |
| if: always() | |
| run: | | |
| export PYTHONPATH="$PWD:$PWD/Build:$PYTHONPATH" | |
| python Build/extract_results.py || echo "Extraction completed" | |
| - name: Upload executed notebook | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: svmdaily-results | |
| path: | | |
| 3_OUTPUT/3_svr/SVMDaily_output.ipynb | |
| Build/model_results.log | |
| retention-days: 30 |