|
1333 | 1333 | "hyperparameter selection. Thus, the process is called a *cross-validation*.\n", |
1334 | 1334 | "\n", |
1335 | 1335 | "Learn more about hyperparameter selection and cross-validation on the\n", |
1336 | | - "`scikit-learn documentation\n", |
1337 | | - "<https://scikit-learn.org/stable/modules/cross_validation.html>`_.\n", |
| 1336 | + "[scikit-learn documentation](https://scikit-learn.org/stable/modules/cross_validation.html).\n", |
1338 | 1337 | "\n" |
1339 | 1338 | ] |
1340 | 1339 | }, |
|
1390 | 1389 | "include nouns (such as \"woman\", \"car\", or \"building\") and verbs (such as\n", |
1391 | 1390 | "\"talking\", \"touching\", or \"walking\"), for a total of 1705 distinct category\n", |
1392 | 1391 | "labels. To interpret our model, labels can be organized in a graph of semantic\n", |
1393 | | - "relashionship based on the `Wordnet <https://wordnet.princeton.edu/>`_ dataset.\n", |
| 1392 | + "relashionship based on the [Wordnet](https://wordnet.princeton.edu/) dataset.\n", |
1394 | 1393 | "\n", |
1395 | 1394 | "*Summary:* We first concatenate the features with multiple temporal delays to\n", |
1396 | 1395 | "account for the slow hemodynamic response. We then use linear regression to fit\n", |
|
1688 | 1687 | "optimize a single score across all voxels (targets). Thus, in the\n", |
1689 | 1688 | "multiple-target case, ``GridSearchCV`` can only optimize (for example) the\n", |
1690 | 1689 | "mean score over targets. Here, we want to find a different optimal\n", |
1691 | | - "hyperparameter per target/voxel, so we use the package `himalaya\n", |
1692 | | - "<https://github.com/gallantlab/himalaya>`_ which implements a\n", |
| 1690 | + "hyperparameter per target/voxel, so we use the package [himalaya](https://github.com/gallantlab/himalaya) which implements a\n", |
1693 | 1691 | "``scikit-learn`` compatible estimator ``KernelRidgeCV``, with hyperparameter\n", |
1694 | 1692 | "selection independently on each target.\n", |
1695 | 1693 | "\n" |
|
1809 | 1807 | "``pipeline.fit``, ``pipeline.predict``, etc. Using a ``Pipeline`` can be\n", |
1810 | 1808 | "useful to clarify the different steps, avoid cross-validation mistakes, or\n", |
1811 | 1809 | "automatically cache intermediate results. See the ``scikit-learn``\n", |
1812 | | - "`documentation <https://scikit-learn.org/stable/modules/compose.html>`_ for\n", |
| 1810 | + "[documentation](https://scikit-learn.org/stable/modules/compose.html) for\n", |
1813 | 1811 | "more information.\n", |
1814 | 1812 | "\n" |
1815 | 1813 | ] |
|
3518 | 3516 | "unknown, we use two regularization hyperparameters (one per feature space) in a\n", |
3519 | 3517 | "model called banded ridge regression [1]_. Just like with ridge regression, we\n", |
3520 | 3518 | "optimize the hyperparameters over cross-validation. An efficient implementation\n", |
3521 | | - "of this model is available in the `himalaya\n", |
3522 | | - "<https://github.com/gallantlab/himalaya>`_ package.\n", |
| 3519 | + "of this model is available in the [himalaya](https://github.com/gallantlab/himalaya) package.\n", |
3523 | 3520 | "\n", |
3524 | 3521 | "*Running time:* This example is more computationally intensive than the\n", |
3525 | 3522 | "previous examples. With a GPU backend, model fitting takes around 6 minutes.\n", |
|
4287 | 4284 | "name": "python", |
4288 | 4285 | "nbconvert_exporter": "python", |
4289 | 4286 | "pygments_lexer": "ipython3", |
4290 | | - "version": "3.10.9" |
| 4287 | + "version": "3.8.3" |
4291 | 4288 | }, |
4292 | 4289 | "name": "_merged" |
4293 | 4290 | }, |
|
0 commit comments