I have a dataset of n subjects, with 347 stimuli and activity in 8 regions. I have a representation (embedding) of the stimuli and I want to apply RSA to check the relation between neural pattern similarity and the representation, in each of the regions. (To probe what is the region in which the activity patterns resembles the most to the embeddings).
My data is in the form of
pandas dataframe with the columns:
subject stimuli_embedding region1_activity region2_activity... region6_activity
What will be the best way to apply RSA (with python ) on these data?