Skip to content

Commit 467f675

Browse files
committed
Run V112 fast raw-observable screen
1 parent 438d251 commit 467f675

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Trace Ace V112 Fast Raw Observable Screen
2+
on:
3+
pull_request:
4+
branches: [main]
5+
paths:
6+
- 'competitions/trace_the_ace/v112_fast_raw_observable_screen.py'
7+
- '.github/workflows/trace-ace-v112-fast-raw-observable.yml'
8+
workflow_dispatch:
9+
jobs:
10+
screen:
11+
runs-on: ubuntu-24.04
12+
timeout-minutes: 15
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.12'
18+
cache: pip
19+
- run: python -m pip install --disable-pip-version-check numpy pandas scipy scikit-learn gdown
20+
- name: Download frozen data
21+
run: |
22+
gdown 1nOjremWhpZ_QKSLvZfGcNkS_C3kMMBUI -O transcripts.zip
23+
gdown 1EpqoamY0vFI2qE57R6wdqU5HwuoVk3Zz -O metadata.zip
24+
mkdir -p data/transcripts data/meta
25+
unzip -q transcripts.zip -d data/transcripts
26+
unzip -q metadata.zip -d data/meta
27+
- name: Resolve schemas
28+
run: |
29+
FEATURES=$(find data/meta -type f -name 'train_features*.csv' -print -quit)
30+
LABELS=$(find data/meta -type f -name 'train_labels*.csv' -print -quit)
31+
FIRST=$(find data/transcripts -type f -name '*.csv' -print -quit)
32+
TRANSCRIPTS=$(dirname "$FIRST")
33+
echo "FEATURES=$FEATURES" >> "$GITHUB_ENV"
34+
echo "LABELS=$LABELS" >> "$GITHUB_ENV"
35+
echo "TRANSCRIPTS=$TRANSCRIPTS" >> "$GITHUB_ENV"
36+
- name: Run V112 shared fast pass
37+
run: |
38+
cd competitions/trace_the_ace
39+
python v112_fast_raw_observable_screen.py --features "../../$FEATURES" --labels "../../$LABELS" --transcripts "../../$TRANSCRIPTS" --rows 2500 --out ../../v112_fast_raw_observable_screen.json
40+
- name: Show decision
41+
run: cat v112_fast_raw_observable_screen.json
42+
- uses: actions/upload-artifact@v4
43+
with:
44+
name: trace-ace-v112-fast-raw-observable-screen
45+
path: v112_fast_raw_observable_screen.json
46+
retention-days: 14

0 commit comments

Comments
 (0)