{ "cells": [ { "cell_type": "code", "execution_count": 49, "id": "b8e236f1-385a-4d93-bb39-bea3ee384d76", "metadata": { "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "outdir /weka/proj-fmri/ckadirt/fMRI-foundation-model/src/checkpoints/HCPflat_large_gsrFalse_\n", "Loaded config.yaml from ckpt folder /weka/proj-fmri/ckadirt/fMRI-foundation-model/src/checkpoints/HCPflat_large_gsrFalse_\n", "\n", "__CONFIG__\n", "base_lr = 0.001\n", "batch_size = 32\n", "ckpt_interval = 5\n", "ckpt_saving = True\n", "cls_embed = True\n", "contrastive_loss_weight = 1.0\n", "datasets_to_include = HCP\n", "decoder_embed_dim = 512\n", "grad_accumulation_steps = 1\n", "grad_clip = 1.0\n", "gsr = False\n", "hcp_flat_path = /weka/proj-medarc/shared/HCP-Flat\n", "mask_ratio = 0.75\n", "model_name = HCPflat_large_gsrFalse_\n", "no_qkv_bias = False\n", "norm_pix_loss = False\n", "nsd_flat_path = /weka/proj-medarc/shared/NSD-Flat\n", "num_epochs = 100\n", "num_frames = 16\n", "num_samples_per_epoch = 200000\n", "num_workers = 10\n", "patch_size = 16\n", "pct_masks_to_decode = 1\n", "plotting = True\n", "pred_t_dim = 8\n", "print_interval = 20\n", "probe_base_lr = 0.0003\n", "probe_batch_size = 8\n", "probe_num_epochs = 30\n", "probe_num_samples_per_epoch = 100000\n", "resume_from_ckpt = True\n", "seed = 42\n", "sep_pos_embed = True\n", "t_patch_size = 2\n", "test_num_samples_per_epoch = 50000\n", "test_set = False\n", "trunc_init = False\n", "use_contrastive_loss = False\n", "wandb_log = True\n", "\n", "\n", "WORLD_SIZE=1\n", "The autoreload extension is already loaded. To reload it, use:\n", " %reload_ext autoreload\n", "PID of this process = 2714455\n" ] } ], "source": [ "# Import packages and setup gpu configuration.\n", "# This code block shouldnt need to be adjusted!\n", "import os\n", "import sys\n", "import json\n", "import yaml\n", "import numpy as np\n", "import copy\n", "import math\n", "import time\n", "import random\n", "from tqdm import tqdm\n", "import webdataset as wds\n", "import matplotlib.pyplot as plt\n", "\n", "import torch\n", "import torch.nn as nn\n", "from torchvision import transforms\n", "import utils\n", "from mae_utils.flat_models import *\n", "\n", "# tf32 data type is faster than standard float32\n", "torch.backends.cuda.matmul.allow_tf32 = True\n", "# following fixes a Conv3D CUDNN_NOT_SUPPORTED error\n", "torch.backends.cudnn.benchmark = True\n", "\n", "## MODEL TO LOAD ##\n", "model_name = \"HCPflat_large_gsrTrue_\"\n", "parquet_folder = \"epoch99\"\n", "\n", "# outdir = os.path.abspath(f'checkpoints/{model_name}')\n", "outdir = os.path.abspath(f'checkpoints/{model_name}')\n", "\n", "print(\"outdir\", outdir)\n", "# Load previous config.yaml if available\n", "if os.path.exists(f\"{outdir}/config.yaml\"):\n", " config = yaml.load(open(f\"{outdir}/config.yaml\", 'r'), Loader=yaml.FullLoader)\n", " print(f\"Loaded config.yaml from ckpt folder {outdir}\")\n", " # create global variables from the config\n", " print(\"\\n__CONFIG__\")\n", " for attribute_name in config.keys():\n", " print(f\"{attribute_name} = {config[attribute_name]}\")\n", " globals()[attribute_name] = config[f'{attribute_name}']\n", " print(\"\\n\")\n", "\n", "world_size = os.getenv('WORLD_SIZE')\n", "if world_size is None: \n", " world_size = 1\n", "else:\n", " world_size = int(world_size)\n", "print(f\"WORLD_SIZE={world_size}\")\n", "\n", "if utils.is_interactive():\n", " # Following allows you to change functions in models.py or utils.py and \n", " # have this notebook automatically update with your revisions\n", " %load_ext autoreload\n", " %autoreload 2\n", "\n", "batch_size = probe_batch_size\n", "num_epochs = probe_num_epochs\n", "\n", "data_type = torch.float32 # change depending on your mixed_precision\n", "global_batch_size = batch_size * world_size\n", "\n", "device = torch.device('cuda')\n", "\n", "print(\"PID of this process =\",os.getpid())\n", "\n", "utils.seed_everything(seed)" ] }, { "cell_type": "markdown", "id": "ab15aca0-148e-435f-b8f2-7a708b61a6d9", "metadata": {}, "source": [ "# hcp_flat" ] }, { "cell_type": "code", "execution_count": 2, "id": "de1a5b87-fa69-44e1-bdb9-bd9e257485c6", "metadata": { "tags": [] }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/tmp/ipykernel_2714455/405765492.py:33: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n", " state = torch.load(checkpoint_path)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "img_size (144, 320) patch_size (16, 16) frames 16 t_patch_size 2\n", "model initialized\n", "\n", "Loaded checkpoint epoch99.pth from /weka/proj-fmri/ckadirt/fMRI-foundation-model/src/checkpoints/HCPflat_large_gsrFalse_\n", "\n" ] } ], "source": [ "from mae_utils.flat import load_hcp_flat_mask\n", "from mae_utils.flat import create_hcp_flat\n", "import mae_utils.visualize as vis\n", "\n", "if utils.is_interactive(): # Use less samples per epoch for debugging\n", " probe_num_samples_per_epoch = 100000\n", " test_num_samples_per_epoch = 100000\n", " num_epochs = 10\n", "\n", "\n", "# Load ckpt\n", "if not os.path.exists(outdir) or not os.path.isdir(outdir):\n", " assert True, (f\"\\nCheckpoint folder {outdir} does not exist.\\n\")\n", "else:\n", " checkpoint_files = [f for f in os.listdir(outdir) if f.endswith('.pth')]\n", "\n", " # Find the latest ckpt to load\n", " epoch_numbers = []\n", " for file in checkpoint_files:\n", " try:\n", " epoch_number = int(file.split('epoch')[-1].split('.')[0])\n", " epoch_numbers.append(epoch_number)\n", " except ValueError:\n", " continue\n", " latest_epoch = max(epoch_numbers)\n", " checkpoint_name = f\"epoch{latest_epoch}.pth\"\n", " \n", " ### Or provide the specific checkpoint you want to load\n", " # checkpoint_name = \"epoch10.pth\" #\"epoch15.pth\"\n", "\n", " # Load the checkpoint\n", " checkpoint_path = os.path.join(outdir, checkpoint_name)\n", " state = torch.load(checkpoint_path)\n", "\n", "model = mae_vit_large_fmri(\n", " patch_size=16,\n", " decoder_embed_dim=decoder_embed_dim,\n", " t_patch_size=t_patch_size,\n", " pred_t_dim=pred_t_dim,\n", " decoder_depth=4,\n", " cls_embed=cls_embed,\n", " norm_pix_loss=norm_pix_loss,\n", " no_qkv_bias=no_qkv_bias,\n", " sep_pos_embed=sep_pos_embed,\n", " trunc_init=trunc_init,\n", " img_mask=state[\"model_state_dict\"]['img_mask']\n", ")\n", "\n", "model.load_state_dict(state[\"model_state_dict\"], strict=True) #model_state_dict\n", "print(f\"\\nLoaded checkpoint {checkpoint_name} from {outdir}\\n\")\n", "\n", "model.eval()\n", "model.requires_grad_(False)\n", "model.to(device)\n", "pass" ] }, { "cell_type": "code", "execution_count": 5, "id": "c3461199-e805-4e9c-8c91-894e83cf8bc3", "metadata": { "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Target: trial_type\n" ] }, { "ename": "NameError", "evalue": "name 'train_df' is not defined", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", "Cell \u001b[0;32mIn[5], line 20\u001b[0m\n\u001b[1;32m 17\u001b[0m \u001b[38;5;66;03m# train_features = pd.read_parquet(f\"{outdir}/{parquet_folder}/HCP/train.parquet\")\u001b[39;00m\n\u001b[1;32m 18\u001b[0m test_features \u001b[38;5;241m=\u001b[39m pd\u001b[38;5;241m.\u001b[39mread_parquet(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;132;01m{\u001b[39;00moutdir\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m/\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mparquet_folder\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m/HCP_/test.parquet\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n\u001b[0;32m---> 20\u001b[0m train_features \u001b[38;5;241m=\u001b[39m \u001b[43mtrain_df\u001b[49m\n\u001b[1;32m 21\u001b[0m test_features \u001b[38;5;241m=\u001b[39m test_df\n\u001b[1;32m 22\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtrain: \u001b[39m\u001b[38;5;132;01m{\u001b[39;00mtrain_features\u001b[38;5;241m.\u001b[39mshape\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m, test: \u001b[39m\u001b[38;5;132;01m{\u001b[39;00mtest_features\u001b[38;5;241m.\u001b[39mshape\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m\"\u001b[39m)\n", "\u001b[0;31mNameError\u001b[0m: name 'train_df' is not defined" ] } ], "source": [ "import argparse\n", "import json\n", "import os\n", "import pickle\n", "from pathlib import Path\n", "\n", "import pandas as pd\n", "import numpy as np\n", "from sklearn.decomposition import PCA\n", "from sklearn.linear_model import LogisticRegressionCV\n", "from sklearn.model_selection import train_test_split\n", "from sklearn.preprocessing import LabelEncoder\n", "\n", "target = \"trial_type\"\n", "print(f\"Target: {target}\")\n", "\n", "# train_features = pd.read_parquet(f\"{outdir}/{parquet_folder}/HCP/train.parquet\")\n", "test_features = pd.read_parquet(f\"{outdir}/{parquet_folder}/HCP_/test.parquet\")\n", "\n", "train_features = train_df\n", "test_features = test_df\n", "print(f\"train: {train_features.shape}, test: {test_features.shape}\")\n", "print(f\"test: {test_features.shape}\")\n", "\n", "X_train = np.stack(train_features[\"feature\"])\n", "X_test = np.stack(test_features[\"feature\"])\n", "print(f\"X_train: {X_train.shape}, X_test: {X_test.shape}\")\n", "print(f\"X_test: {X_test.shape}\")\n", "\n", "\n", "if target == \"task\":\n", " labels_train = train_features[\"task\"].str.rstrip(\"1234\").values\n", " labels_test = test_features[\"task\"].str.rstrip(\"1234\").values\n", "elif target == \"trial_type\":\n", " labels_train = train_features[\"trial_type\"].values\n", " labels_test = test_features[\"trial_type\"].values\n", "\n", "label_enc = LabelEncoder()\n", "y_train = label_enc.fit_transform(labels_train)\n", "y_test = label_enc.transform(labels_test)\n", "\n", "print(f\"classes ({len(label_enc.classes_)}): {label_enc.classes_}\")\n", "print(\n", " f\"\\ny_train: {y_train.shape} {y_train[:20]}\\n\"\n", " f\"y_test: {y_test.shape} {y_test[:20]}\"\n", ")\n", "del train_features, test_features\n", "\n", "train_ind, val_ind = train_test_split(\n", " np.arange(len(X_train)), train_size=0.9, random_state=42\n", ")\n", "print(\n", " f\"\\ntrain_ind: {len(train_ind)} {train_ind[:10]}\\n\"\n", " f\"val_ind: {len(val_ind)} {val_ind[:10]}\"\n", ")\n", "X_train, X_val = X_train[train_ind], X_train[val_ind]\n", "y_train, y_val = y_train[train_ind], y_train[val_ind]\n", "\n", "print(\"Fitting PCA projection\")\n", "pca = PCA(n_components=384, whiten=True, svd_solver=\"randomized\")\n", "pca.fit(X_train)\n", "\n", "X_train = pca.transform(X_train)\n", "X_val = pca.transform(X_val)\n", "X_test = pca.transform(X_test)\n", "\n", "print(\"Fitting logistic regression\")\n", "clf = LogisticRegressionCV()\n", "clf.fit(X_train, y_train)\n", "\n", "train_acc = clf.score(X_train, y_train)\n", "val_acc = clf.score(X_val, y_val)\n", "test_acc = clf.score(X_test, y_test)\n", "\n", "result = {\n", " \"target\": target,\n", " \"train_acc\": train_acc,\n", " \"val_acc\": val_acc,\n", " \"test_acc\": test_acc,\n", "}\n", "\n", "print(f\"Done:\\n{json.dumps(result)}\")" ] }, { "cell_type": "code", "execution_count": 8, "id": "3bb1fdf5-48cb-42ad-a421-426843064614", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | feature | \n", "key | \n", "sub | \n", "mod | \n", "task | \n", "mag | \n", "dir | \n", "start | \n", "trial_type | \n", "
|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", "[0.032790042, 0.24754408, -1.1533062, 0.764267... | \n", "[sub-285446_mod-tfMRI_task-MOTOR_mag-3T_dir-RL] | \n", "[285446] | \n", "[tfMRI] | \n", "[MOTOR] | \n", "[3T] | \n", "[RL] | \n", "[15] | \n", "[cue] | \n", "
| 1 | \n", "[0.11543005, 0.29979807, -0.7868226, 1.0818173... | \n", "[sub-123521_mod-tfMRI_task-SOCIAL_mag-3T_dir-LR] | \n", "[123521] | \n", "[tfMRI] | \n", "[SOCIAL] | \n", "[3T] | \n", "[LR] | \n", "[15] | \n", "[mental_resp] | \n", "
| 2 | \n", "[-0.14829949, -0.16773453, -0.6180329, 0.61542... | \n", "[sub-180129_mod-tfMRI_task-GAMBLING_mag-3T_dir... | \n", "[180129] | \n", "[tfMRI] | \n", "[GAMBLING] | \n", "[3T] | \n", "[RL] | \n", "[15] | \n", "[win] | \n", "
| 3 | \n", "[0.6844344, 0.8610252, -0.6026086, 0.792932, 0... | \n", "[sub-376247_mod-tfMRI_task-WM_mag-3T_dir-RL] | \n", "[376247] | \n", "[tfMRI] | \n", "[WM] | \n", "[3T] | \n", "[RL] | \n", "[15] | \n", "[2bk_body] | \n", "
| 4 | \n", "[0.27534786, 0.4483018, -0.44333276, 0.3923088... | \n", "[sub-142828_mod-tfMRI_task-EMOTION_mag-3T_dir-RL] | \n", "[142828] | \n", "[tfMRI] | \n", "[EMOTION] | \n", "[3T] | \n", "[RL] | \n", "[19] | \n", "[neut] | \n", "
| ... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
| 694602 | \n", "[0.37957847, 0.5438505, -0.4269185, 0.69400626... | \n", "[sub-248339_mod-tfMRI_task-EMOTION_mag-3T_dir-RL] | \n", "[248339] | \n", "[tfMRI] | \n", "[EMOTION] | \n", "[3T] | \n", "[RL] | \n", "[19] | \n", "[neut] | \n", "
| 694603 | \n", "[-0.25013134, 0.51067406, -0.8835988, 1.222431... | \n", "[sub-248339_mod-tfMRI_task-EMOTION_mag-3T_dir-RL] | \n", "[248339] | \n", "[tfMRI] | \n", "[EMOTION] | \n", "[3T] | \n", "[RL] | \n", "[48] | \n", "[fear] | \n", "
| 694604 | \n", "[0.10990993, 0.32360762, -0.12822214, 0.842290... | \n", "[sub-248339_mod-tfMRI_task-EMOTION_mag-3T_dir-RL] | \n", "[248339] | \n", "[tfMRI] | \n", "[EMOTION] | \n", "[3T] | \n", "[RL] | \n", "[77] | \n", "[neut] | \n", "
| 694605 | \n", "[-0.49793413, 0.056425568, -0.5121989, 0.99518... | \n", "[sub-248339_mod-tfMRI_task-EMOTION_mag-3T_dir-RL] | \n", "[248339] | \n", "[tfMRI] | \n", "[EMOTION] | \n", "[3T] | \n", "[RL] | \n", "[107] | \n", "[fear] | \n", "
| 694606 | \n", "[0.21953101, 0.6425983, -0.021279253, 0.633253... | \n", "[sub-248339_mod-tfMRI_task-EMOTION_mag-3T_dir-RL] | \n", "[248339] | \n", "[tfMRI] | \n", "[EMOTION] | \n", "[3T] | \n", "[RL] | \n", "[136] | \n", "[neut] | \n", "
694607 rows × 9 columns
\n", "| \n", " | feature | \n", "key | \n", "sub | \n", "mod | \n", "task | \n", "mag | \n", "dir | \n", "start | \n", "trial_type | \n", "
|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", "[0.52829325, 0.6203155, -0.57899195, 0.6476248... | \n", "[sub-872158_mod-tfMRI_task-MOTOR_mag-3T_dir-RL] | \n", "[872158] | \n", "[tfMRI] | \n", "[MOTOR] | \n", "[3T] | \n", "[RL] | \n", "[15] | \n", "[cue] | \n", "
| 1 | \n", "[0.51148146, 0.6466573, -0.682386, 0.5852565, ... | \n", "[sub-872158_mod-tfMRI_task-MOTOR_mag-3T_dir-RL] | \n", "[872158] | \n", "[tfMRI] | \n", "[MOTOR] | \n", "[3T] | \n", "[RL] | \n", "[19] | \n", "[lh] | \n", "
| 2 | \n", "[0.29170182, 0.64128387, -0.79449636, 0.445914... | \n", "[sub-872158_mod-tfMRI_task-MOTOR_mag-3T_dir-RL] | \n", "[872158] | \n", "[tfMRI] | \n", "[MOTOR] | \n", "[3T] | \n", "[RL] | \n", "[36] | \n", "[cue] | \n", "
| 3 | \n", "[0.36611453, 0.8566093, -0.88347244, 0.4523380... | \n", "[sub-872158_mod-tfMRI_task-MOTOR_mag-3T_dir-RL] | \n", "[872158] | \n", "[tfMRI] | \n", "[MOTOR] | \n", "[3T] | \n", "[RL] | \n", "[40] | \n", "[rf] | \n", "
| 4 | \n", "[0.49761954, 0.40888304, -0.793332, 0.9403457,... | \n", "[sub-872158_mod-tfMRI_task-MOTOR_mag-3T_dir-RL] | \n", "[872158] | \n", "[tfMRI] | \n", "[MOTOR] | \n", "[3T] | \n", "[RL] | \n", "[78] | \n", "[cue] | \n", "
| ... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
| 391 | \n", "[0.07519752, -0.83830565, -0.5189485, 0.407122... | \n", "[sub-872158_mod-tfMRI_task-WM_mag-3T_dir-LR] | \n", "[872158] | \n", "[tfMRI] | \n", "[WM] | \n", "[3T] | \n", "[LR] | \n", "[372] | \n", "[0bk_cor] | \n", "
| 392 | \n", "[-0.04159375, -0.5950203, -0.7111273, 0.284975... | \n", "[sub-872158_mod-tfMRI_task-WM_mag-3T_dir-LR] | \n", "[872158] | \n", "[tfMRI] | \n", "[WM] | \n", "[3T] | \n", "[LR] | \n", "[376] | \n", "[0bk_cor] | \n", "
| 393 | \n", "[-0.18805684, -0.5369316, -0.70068854, 0.04570... | \n", "[sub-872158_mod-tfMRI_task-WM_mag-3T_dir-LR] | \n", "[872158] | \n", "[tfMRI] | \n", "[WM] | \n", "[3T] | \n", "[LR] | \n", "[379] | \n", "[0bk_cor] | \n", "
| 394 | \n", "[-0.14680868, -0.5222806, -0.75841236, 0.21874... | \n", "[sub-872158_mod-tfMRI_task-WM_mag-3T_dir-LR] | \n", "[872158] | \n", "[tfMRI] | \n", "[WM] | \n", "[3T] | \n", "[LR] | \n", "[383] | \n", "[0bk_cor] | \n", "
| 395 | \n", "[-0.2745431, -0.5852497, -0.75337523, 0.312934... | \n", "[sub-872158_mod-tfMRI_task-WM_mag-3T_dir-LR] | \n", "[872158] | \n", "[tfMRI] | \n", "[WM] | \n", "[3T] | \n", "[LR] | \n", "[387] | \n", "[all_bk_cor] | \n", "
396 rows × 9 columns
\n", "| \n", " | feature | \n", "key | \n", "sub | \n", "mod | \n", "task | \n", "mag | \n", "dir | \n", "start | \n", "trial_type | \n", "
|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", "[0.032790042, 0.24754408, -1.1533062, 0.764267... | \n", "[sub-285446_mod-tfMRI_task-MOTOR_mag-3T_dir-RL] | \n", "[285446] | \n", "[tfMRI] | \n", "[MOTOR] | \n", "[3T] | \n", "[RL] | \n", "[15] | \n", "[cue] | \n", "
| 1 | \n", "[0.11543005, 0.29979807, -0.7868226, 1.0818173... | \n", "[sub-123521_mod-tfMRI_task-SOCIAL_mag-3T_dir-LR] | \n", "[123521] | \n", "[tfMRI] | \n", "[SOCIAL] | \n", "[3T] | \n", "[LR] | \n", "[15] | \n", "[mental_resp] | \n", "
| 2 | \n", "[-0.14829949, -0.16773453, -0.6180329, 0.61542... | \n", "[sub-180129_mod-tfMRI_task-GAMBLING_mag-3T_dir... | \n", "[180129] | \n", "[tfMRI] | \n", "[GAMBLING] | \n", "[3T] | \n", "[RL] | \n", "[15] | \n", "[win] | \n", "
| 3 | \n", "[0.6844344, 0.8610252, -0.6026086, 0.792932, 0... | \n", "[sub-376247_mod-tfMRI_task-WM_mag-3T_dir-RL] | \n", "[376247] | \n", "[tfMRI] | \n", "[WM] | \n", "[3T] | \n", "[RL] | \n", "[15] | \n", "[2bk_body] | \n", "
| 4 | \n", "[0.27534786, 0.4483018, -0.44333276, 0.3923088... | \n", "[sub-142828_mod-tfMRI_task-EMOTION_mag-3T_dir-RL] | \n", "[142828] | \n", "[tfMRI] | \n", "[EMOTION] | \n", "[3T] | \n", "[RL] | \n", "[19] | \n", "[neut] | \n", "
| ... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
| 469836 | \n", "[0.37957847, 0.5438505, -0.4269185, 0.69400626... | \n", "[sub-248339_mod-tfMRI_task-EMOTION_mag-3T_dir-RL] | \n", "[248339] | \n", "[tfMRI] | \n", "[EMOTION] | \n", "[3T] | \n", "[RL] | \n", "[19] | \n", "[neut] | \n", "
| 469837 | \n", "[-0.25013134, 0.51067406, -0.8835988, 1.222431... | \n", "[sub-248339_mod-tfMRI_task-EMOTION_mag-3T_dir-RL] | \n", "[248339] | \n", "[tfMRI] | \n", "[EMOTION] | \n", "[3T] | \n", "[RL] | \n", "[48] | \n", "[fear] | \n", "
| 469838 | \n", "[0.10990993, 0.32360762, -0.12822214, 0.842290... | \n", "[sub-248339_mod-tfMRI_task-EMOTION_mag-3T_dir-RL] | \n", "[248339] | \n", "[tfMRI] | \n", "[EMOTION] | \n", "[3T] | \n", "[RL] | \n", "[77] | \n", "[neut] | \n", "
| 469839 | \n", "[-0.49793413, 0.056425568, -0.5121989, 0.99518... | \n", "[sub-248339_mod-tfMRI_task-EMOTION_mag-3T_dir-RL] | \n", "[248339] | \n", "[tfMRI] | \n", "[EMOTION] | \n", "[3T] | \n", "[RL] | \n", "[107] | \n", "[fear] | \n", "
| 469840 | \n", "[0.21953101, 0.6425983, -0.021279253, 0.633253... | \n", "[sub-248339_mod-tfMRI_task-EMOTION_mag-3T_dir-RL] | \n", "[248339] | \n", "[tfMRI] | \n", "[EMOTION] | \n", "[3T] | \n", "[RL] | \n", "[136] | \n", "[neut] | \n", "
469841 rows × 9 columns
\n", "