Skip to content

Run isolated V111 fast residual screen #10

Run isolated V111 fast residual screen

Run isolated V111 fast residual screen #10

name: Trace Ace V120 Objective Identity Audit
on:
push:
branches: [agent/v111-runner]
paths:
- 'competitions/trace_the_ace/v120_objective_identity_audit.py'
- 'competitions/trace_the_ace/v122_id_morphology_regime_audit.py'
- '.github/workflows/trace-ace-v120-objective-identity.yml'
pull_request:
branches: [agent/trace-ace-mastery-events]
paths:
- 'competitions/trace_the_ace/v120_objective_identity_audit.py'
- 'competitions/trace_the_ace/v122_id_morphology_regime_audit.py'
- '.github/workflows/trace-ace-v120-objective-identity.yml'
workflow_dispatch:
jobs:
audit:
runs-on: ubuntu-24.04
timeout-minutes: 8
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 metadata only
run: |
gdown 1EpqoamY0vFI2qE57R6wdqU5HwuoVk3Zz -O metadata.zip
mkdir -p data/meta
unzip -q metadata.zip -d data/meta
TRAIN=$(find data/meta -type f -name 'train_features*.csv' -print -quit)
LABELS=$(find data/meta -type f -name 'train_labels*.csv' -print -quit)
TEST=$(find data/meta -type f \( -name 'test_features*.csv' -o -name 'submission_features*.csv' \) -print -quit)
echo "TRAIN=$TRAIN" >> "$GITHUB_ENV"
echo "LABELS=$LABELS" >> "$GITHUB_ENV"
echo "TEST=$TEST" >> "$GITHUB_ENV"
echo "TRAIN=$TRAIN"
echo "LABELS=$LABELS"
echo "TEST=$TEST"
- name: Inspect headers and run V120
run: |
python - <<'PY'
import os, pandas as pd
tr=os.environ['TRAIN']
print('train columns', list(pd.read_csv(tr,nrows=0).columns))
te=os.environ.get('TEST','')
if te:
print('test columns', list(pd.read_csv(te,nrows=0).columns))
PY
if [ -n "$TEST" ]; then
python competitions/trace_the_ace/v120_objective_identity_audit.py --train-features "$TRAIN" --test-features "$TEST" --out v120_objective_identity_audit.json
else
python competitions/trace_the_ace/v120_objective_identity_audit.py --train-features "$TRAIN" --out v120_objective_identity_audit.json
fi
- name: Run V122 independent metadata audit
run: |
python -m py_compile competitions/trace_the_ace/v122_id_morphology_regime_audit.py
python competitions/trace_the_ace/v122_id_morphology_regime_audit.py --features "$TRAIN" --labels "$LABELS" --out v122_id_morphology_regime_audit.json
- name: Show decisions
run: |
cat v120_objective_identity_audit.json
cat v122_id_morphology_regime_audit.json
- uses: actions/upload-artifact@v4
with:
name: trace-ace-v120-objective-identity-audit
path: v120_objective_identity_audit.json
retention-days: 14
- uses: actions/upload-artifact@v4
with:
name: trace-ace-v122-id-morphology-regime-audit
path: v122_id_morphology_regime_audit.json
retention-days: 14