|
495 | 495 | "the brain in 3D. In this viewer, press \"I\" to inflate the brain, \"F\" to\n", |
496 | 496 | "flatten the surface, and \"R\" to reset the view (or use the ``surface/unfold``\n", |
497 | 497 | "cursor on the right menu). Press \"H\" for a list of all keyboard shortcuts.\n", |
498 | | - "This viewer should help you understand the correspondance between the flatten\n", |
| 498 | + "This viewer should help you understand the correspondence between the flatten\n", |
499 | 499 | "and the folded cortical surface of the brain.\n", |
500 | 500 | "\n" |
501 | 501 | ] |
|
1318 | 1318 | "include nouns (such as \"woman\", \"car\", or \"building\") and verbs (such as\n", |
1319 | 1319 | "\"talking\", \"touching\", or \"walking\"), for a total of 1705 distinct category\n", |
1320 | 1320 | "labels. To interpret our model, labels can be organized in a graph of semantic\n", |
1321 | | - "relashionship based on the [Wordnet](https://wordnet.princeton.edu/) dataset.\n", |
| 1321 | + "relationship based on the [Wordnet](https://wordnet.princeton.edu/) dataset.\n", |
1322 | 1322 | "\n", |
1323 | 1323 | "*Summary:* We first concatenate the features with multiple temporal delays to\n", |
1324 | 1324 | "account for the slow hemodynamic response. We then use linear regression to fit\n", |
|
1370 | 1370 | "## Load the data\n", |
1371 | 1371 | "\n", |
1372 | 1372 | "We first load the fMRI responses. These responses have been preprocessed as\n", |
1373 | | - "decribed in [1]_. The data is separated into a training set ``Y_train`` and a\n", |
| 1373 | + "described in [1]_. The data is separated into a training set ``Y_train`` and a\n", |
1374 | 1374 | "testing set ``Y_test``. The training set is used for fitting models, and\n", |
1375 | 1375 | "selecting the best models and hyperparameters. The test set is later used\n", |
1376 | 1376 | "to estimate the generalization performance of the selected model. The\n", |
|
1830 | 1830 | "metadata": {}, |
1831 | 1831 | "source": [ |
1832 | 1832 | "If we fit the model on GPU, scores are returned on GPU using an array object\n", |
1833 | | - "specfic to the backend we used (such as a ``torch.Tensor``). Thus, we need to\n", |
| 1833 | + "specific to the backend we used (such as a ``torch.Tensor``). Thus, we need to\n", |
1834 | 1834 | "move them into ``numpy`` arrays on CPU, to be able to use them for example in\n", |
1835 | 1835 | "a ``matplotlib`` figure.\n", |
1836 | 1836 | "\n" |
|
1976 | 1976 | "address this issue, we rescale the regression coefficient to have a norm\n", |
1977 | 1977 | "equal to the square-root of the $R^2$ scores. We found empirically that\n", |
1978 | 1978 | "this rescaling best matches results obtained with a regularization shared\n", |
1979 | | - "accross voxels. This rescaling also removes the need to select only best\n", |
| 1979 | + "across voxels. This rescaling also removes the need to select only best\n", |
1980 | 1980 | "performing voxels, because voxels with low prediction accuracies are rescaled\n", |
1981 | 1981 | "to have a low norm.\n", |
1982 | 1982 | "\n" |
|
2749 | 2749 | "Then, we plot the comparison of model prediction accuracies with a 2D\n", |
2750 | 2750 | "histogram. All ~70k voxels are represented in this histogram, where the\n", |
2751 | 2751 | "diagonal corresponds to identical prediction accuracy for both models. A\n", |
2752 | | - "distibution deviating from the diagonal means that one model has better\n", |
| 2752 | + "distribution deviating from the diagonal means that one model has better\n", |
2753 | 2753 | "prediction accuracy than the other.\n", |
2754 | 2754 | "\n" |
2755 | 2755 | ] |
|
3285 | 3285 | "We can also plot the comparison of model prediction accuracies with a 2D\n", |
3286 | 3286 | "histogram. All ~70k voxels are represented in this histogram, where the\n", |
3287 | 3287 | "diagonal corresponds to identical prediction accuracy for both models. A\n", |
3288 | | - "distibution deviating from the diagonal means that one model has better\n", |
| 3288 | + "distribution deviating from the diagonal means that one model has better\n", |
3289 | 3289 | "predictive performance than the other.\n", |
3290 | 3290 | "\n" |
3291 | 3291 | ] |
|
4028 | 4028 | "Here we plot the comparison of model prediction accuracies with a 2D\n", |
4029 | 4029 | "histogram. All 70k voxels are represented in this histogram, where the\n", |
4030 | 4030 | "diagonal corresponds to identical model prediction accuracy for both models.\n", |
4031 | | - "A distibution deviating from the diagonal means that one model has better\n", |
| 4031 | + "A distribution deviating from the diagonal means that one model has better\n", |
4032 | 4032 | "predictive performance than the other.\n", |
4033 | 4033 | "\n" |
4034 | 4034 | ] |
|
0 commit comments