|
| 1 | +name: Trace the Ace V99 nested expert gate |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | + push: |
| 5 | + branches: [agent/trace-ace-mastery-events] |
| 6 | + paths: |
| 7 | + - 'competitions/trace_the_ace/v99_oof_expert_gate.py' |
| 8 | + - '.github/workflows/trace-ace-v99-oof-expert-gate.yml' |
| 9 | + |
| 10 | +jobs: |
| 11 | + gate: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + timeout-minutes: 360 |
| 14 | + steps: |
| 15 | + - uses: actions/checkout@v4 |
| 16 | + - uses: actions/setup-python@v5 |
| 17 | + with: |
| 18 | + python-version: '3.12' |
| 19 | + cache: pip |
| 20 | + - name: Install dependencies |
| 21 | + run: python -m pip install --disable-pip-version-check numpy pandas scipy scikit-learn gdown |
| 22 | + - name: Download frozen training data |
| 23 | + run: | |
| 24 | + set -euo pipefail |
| 25 | + gdown 1nOjremWhpZ_QKSLvZfGcNkS_C3kMMBUI -O transcripts.zip |
| 26 | + gdown 1EpqoamY0vFI2qE57R6wdqU5HwuoVk3Zz -O metadata.zip |
| 27 | + mkdir -p data/transcripts data/meta |
| 28 | + unzip -q transcripts.zip -d data/transcripts |
| 29 | + unzip -q metadata.zip -d data/meta |
| 30 | + - name: Resolve schemas |
| 31 | + shell: bash |
| 32 | + run: | |
| 33 | + set -euo pipefail |
| 34 | + FEATURES=$(find data/meta -type f -name 'train_features*.csv' -print -quit) |
| 35 | + LABELS=$(find data/meta -type f -name 'train_labels*.csv' -print -quit) |
| 36 | + FIRST=$(find data/transcripts -type f -name '*.csv' -print -quit) |
| 37 | + TRANSCRIPTS=$(dirname "$FIRST") |
| 38 | + test -n "$FEATURES" && test -n "$LABELS" && test -n "$FIRST" |
| 39 | + echo "FEATURES=$FEATURES" >> "$GITHUB_ENV" |
| 40 | + echo "LABELS=$LABELS" >> "$GITHUB_ENV" |
| 41 | + echo "TRANSCRIPTS=$TRANSCRIPTS" >> "$GITHUB_ENV" |
| 42 | + export FEATURES LABELS TRANSCRIPTS |
| 43 | + python - <<'PY' |
| 44 | + import pandas as pd, os |
| 45 | + print('features columns', list(pd.read_csv(os.environ['FEATURES'], nrows=0).columns)) |
| 46 | + print('labels columns', list(pd.read_csv(os.environ['LABELS'], nrows=0).columns)) |
| 47 | + PY |
| 48 | + - name: Run V99 nested applicability gate |
| 49 | + run: | |
| 50 | + set -euo pipefail |
| 51 | + cd competitions/trace_the_ace |
| 52 | + python v99_oof_expert_gate.py \ |
| 53 | + --features "../../$FEATURES" --labels "../../$LABELS" --transcripts "../../$TRANSCRIPTS" \ |
| 54 | + --out ../../v99_oof_expert_gate.json |
| 55 | + - name: Show decision |
| 56 | + if: always() |
| 57 | + run: cat v99_oof_expert_gate.json || true |
| 58 | + - name: Upload V99 evidence |
| 59 | + if: always() |
| 60 | + uses: actions/upload-artifact@v4 |
| 61 | + with: |
| 62 | + name: trace-ace-v99-oof-expert-gate |
| 63 | + path: v99_oof_expert_gate.json |
| 64 | + retention-days: 14 |
0 commit comments