Skip to content

Brainmap 247 Max Difference

KenWWW edited this page Jul 16, 2023 · 1 revision

Explanation

Script: tfsplt_brainmap.py

Makefile target: plot-brainmap

For brainmap max correlation difference plots, we provide --effect max-diff and two formats. The difference is the max of the first format minus the max of the second format.


Example

Below is a full example of a Makefile target and its arguments. Here, we are plotting the whisper max encoding difference between encoder and decoder. We use the default color gradient (red for positive and blue for negative).

LAGS_PLT := {-5000..5000..25} # lag5k-25
LAGS_SHOW := $(LAGS_PLT)
SIG_FN_DIR := 'data/plotting/sig-elecs/20230413-whisper-paper'
SIG_FN := --sig-elec-file tfs-sig-file-%s-whisper-ende-outer-comp.csv tfs-sig-file-%s-whisper-ende-outer-prod.csv
plot-brainmap:
	rm -f results/figures/*
	python scripts/tfsplt_brainmap.py \
		--sid 625 676 7170 798 \
		--formats \
			'/projects/HASSON/247/ken-encoding/demo/20230520-whisper-medium/kw-tfs-full-%s-whisper-medium.en-encoder-lag5k-25-all-24/*/*_%s.csv' \
			'/projects/HASSON/247/ken-encoding/demo/20230520-whisper-medium/kw-tfs-full-%s-whisper-medium.en-decoder-lag5k-25-all-18/*/*_%s.csv' \
		--effect max-diff \
		--keys comp prod \
		--lags-plot $(LAGS_PLT) \
		--lags-show $(LAGS_SHOW) \
		--sig-elec-file-dir $(SIG_FN_DIR) \
		$(SIG_FN) \
		--outfile whisper-ende-diff_%s.png

Clone this wiki locally