trace ace: launch V99 nested expert gate #1
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: Trace the Ace V99 nested expert gate | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [agent/trace-ace-mastery-events] | |
| paths: | |
| - 'competitions/trace_the_ace/v99_oof_expert_gate.py' | |
| - '.github/workflows/trace-ace-v99-oof-expert-gate.yml' | |
| jobs: | |
| gate: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 360 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| cache: pip | |
| - name: Install dependencies | |
| run: python -m pip install --disable-pip-version-check numpy pandas scipy scikit-learn gdown | |
| - name: Download frozen training data | |
| run: | | |
| set -euo pipefail | |
| gdown 1nOjremWhpZ_QKSLvZfGcNkS_C3kMMBUI -O transcripts.zip | |
| gdown 1EpqoamY0vFI2qE57R6wdqU5HwuoVk3Zz -O metadata.zip | |
| mkdir -p data/transcripts data/meta | |
| unzip -q transcripts.zip -d data/transcripts | |
| unzip -q metadata.zip -d data/meta | |
| - name: Resolve schemas | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| FEATURES=$(find data/meta -type f -name 'train_features*.csv' -print -quit) | |
| LABELS=$(find data/meta -type f -name 'train_labels*.csv' -print -quit) | |
| FIRST=$(find data/transcripts -type f -name '*.csv' -print -quit) | |
| TRANSCRIPTS=$(dirname "$FIRST") | |
| test -n "$FEATURES" && test -n "$LABELS" && test -n "$FIRST" | |
| echo "FEATURES=$FEATURES" >> "$GITHUB_ENV" | |
| echo "LABELS=$LABELS" >> "$GITHUB_ENV" | |
| echo "TRANSCRIPTS=$TRANSCRIPTS" >> "$GITHUB_ENV" | |
| export FEATURES LABELS TRANSCRIPTS | |
| python - <<'PY' | |
| import pandas as pd, os | |
| print('features columns', list(pd.read_csv(os.environ['FEATURES'], nrows=0).columns)) | |
| print('labels columns', list(pd.read_csv(os.environ['LABELS'], nrows=0).columns)) | |
| PY | |
| - name: Run V99 nested applicability gate | |
| run: | | |
| set -euo pipefail | |
| cd competitions/trace_the_ace | |
| python v99_oof_expert_gate.py \ | |
| --features "../../$FEATURES" --labels "../../$LABELS" --transcripts "../../$TRANSCRIPTS" \ | |
| --out ../../v99_oof_expert_gate.json | |
| - name: Show decision | |
| if: always() | |
| run: cat v99_oof_expert_gate.json || true | |
| - name: Upload V99 evidence | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: trace-ace-v99-oof-expert-gate | |
| path: v99_oof_expert_gate.json | |
| retention-days: 14 |