Runnable examples  skeleton files¶
All functions 

Anatomical dataset basics In this example, load a brain as a CoSMoMVPA datset and visualize it in matlab 

Double dipping 

oddeven classification with LDA classifier 

Twoclass classification with naive baysian classifier 

Classification using svm 

RSA Tutorial Compare DSMs 

Exercise with cosmo_correlation_measure Splithalf correlation analysis using cosmo_correlation_measure 

Cross validation example with multiple classifiers This example runs cross validation and shows confusion matrix using multiple classifiers 

Cross validation measure example This example runs cross validation with the cosmo_crossvalidation_measure function, using a classifier with nfold crossvalidation. It shows the confusion matrices using multiple classifiers 

Crossvalidation searchlight 

Dataset basics 

Example of demeaning 

An example of using feature selection with a classifier 

Demo: fMRI searchlights with splithalf correlation 

Dataset Basics Load datasets using cosmo_fmri_dataset 

Searchlight using a data measure 

MEEG time generalization multiple comparison correction This example shows MVPA analyses performed on MEEG data. 

MEEG time generalization in a region (in spacetime) of interest 

MEEG timefrequency searchlight 

MEEG timelock searchlight 

Multiple comparison correction with ThresholdFree Cluster Enhancement 

nfold crossvalidation classification with LDA classifier 

NIFTI basics In this example, load a brain and visualize it in matlab 

Dataset Basics Run operations on datasets 

Permutation test example 

ROI neighborhood example 

RSA Visualize 

Searchlight for representational similarity analysis 

Dataset Basics (setting sample attributes) 

Searchlight analysis in the volume 

Show sphere offsets for used in spherical neighborhood 

Spherical searchlight this example implements a spherical searchlight using cosmo_spherical_neighborhood and performs crossvalidation with a nearest neigh classifier 

Volumetric fMRI Searchlight 

Roibased MVPA for single subject (run_split_half_correlations_single_sub) 

roibased MVPA with groupanalysis 

Demo: fMRI surfacebased searchlights with LDA classifier 