|
14 | 14 | *Motion-energy features:* Motion-energy features result from filtering a video |
15 | 15 | stimulus with spatio-temporal Gabor filters. A pyramid of filters is used to |
16 | 16 | compute the motion-energy features at multiple spatial and temporal scales. |
| 17 | +Motion-energy features were introduced in [1]_. |
17 | 18 |
|
18 | 19 | *Summary:* We first concatenate the features with multiple delays, to account |
19 | 20 | for the slow hemodynamic response. A linear regression model then weights each |
|
24 | 25 | cross-validation. Finally, the model generalization performance is evaluated on |
25 | 26 | a held-out test set, comparing the model predictions with the ground-truth fMRI |
26 | 27 | responses. |
27 | | -
|
28 | | -.. [1] Nishimoto, S., Vu, A. T., Naselaris, T., Benjamini, Y., Yu, B., & |
29 | | - Gallant, J. L. (2011). Reconstructing visual experiences from brain |
30 | | - activity evoked by natural movies. Current Biology, 21(19), 1641-1646. |
31 | 28 | """ |
32 | 29 | # sphinx_gallery_thumbnail_number = 2 |
33 | 30 | ############################################################################### |
|
241 | 238 | scores_nodelay = backend.to_numpy(scores_nodelay) |
242 | 239 |
|
243 | 240 | ############################################################################### |
244 | | -# Here we plot the comparison of model performances with a 2D histogram. |
245 | | -# All ~70k voxels are represented in this histogram, where the diagonal |
246 | | -# corresponds to identical performance for both models. A distibution deviating |
247 | | -# from the diagonal means that one model has better predictive performances |
248 | | -# than the other. |
| 241 | +# Here we plot the comparison of model performances with a 2D histogram. All |
| 242 | +# ~70k voxels are represented in this histogram, where the diagonal corresponds |
| 243 | +# to identical performance for both models. A distibution deviating from the |
| 244 | +# diagonal means that one model has better predictive performances than the |
| 245 | +# other. |
249 | 246 |
|
250 | 247 | from voxelwise_tutorials.viz import plot_hist2d |
251 | 248 |
|
252 | 249 | ax = plot_hist2d(scores_nodelay, scores) |
253 | 250 | ax.set(title='Generalization R2 scores', xlabel='model without delays', |
254 | 251 | ylabel='model with delays') |
255 | 252 | plt.show() |
| 253 | + |
| 254 | +############################################################################### |
| 255 | +# References |
| 256 | +# ---------- |
| 257 | +# |
| 258 | +# .. [1] Nishimoto, S., Vu, A. T., Naselaris, T., Benjamini, Y., Yu, |
| 259 | +# B., & Gallant, J. L. (2011). Reconstructing visual experiences from brain |
| 260 | +# activity evoked by natural movies. Current Biology, 21(19), 1641-1646. |
0 commit comments