File size: 684 Bytes
0b416c6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import numpy as np
import pickle
import json
import os
import sys

# add code/ to path so we can import our preprocessing_utils
sys.path.append('code')
from preprocessing_utils import preprocess_embeddings

# Config 
DATA_PATH = '/scratch/users/s214/lab3'

# the text/embeddings are the same for both subjects (same stories), but fMRI lengths
# differ slightly per subject so we preprocess separately per subject
SUBJECTS = ['subject2', 'subject3']

# short names used in output filenames following naming convention
SUBJECT_IDS = {'subject2': 's2', 'subject3': 's3'}

# where to save the processed embeddings
OUTPUT_DIR = 'data/embeddings'
os.makedirs(OUTPUT_DIR, exist_ok=True)