|
18 | 18 | %% --- using the Common Spatial Pattern method --- |
19 | 19 |
|
20 | 20 | % load the data set (BCI2000 format) |
21 | | -traindata = io_loadset('bcilab:/userdata/tutorial/imag_movements1/calib/DanielS001R01.dat'); |
| 21 | +traindata = io_loadset('bcilab:/userdata/tutorial/imag_movements1/calib/DanielS001R01.dat','channels',1:29); |
22 | 22 |
|
23 | 23 | % define the approach (here: Common Spatial Patterns without any customization) |
24 | 24 | myapproach = 'CSP'; |
|
33 | 33 | %% --- using the Common Spatial Pattern method with some custom options --- |
34 | 34 |
|
35 | 35 | % load the data set (BCI2000 format) |
36 | | -traindata = io_loadset('bcilab:/userdata/tutorial/imag_movements1/calib/DanielS001R01.dat'); |
| 36 | +traindata = io_loadset('bcilab:/userdata/tutorial/imag_movements1/calib/DanielS001R01.dat','channels',1:29); |
37 | 37 |
|
38 | 38 | % define the approach |
39 | 39 | % Note: The settings found in the GUI "Review/Edit Approach" Panel can be translated literally |
|
81 | 81 | % may run into a local optimum or over-fit spuriously correlated bands |
82 | 82 |
|
83 | 83 | % load the data set |
84 | | -traindata = io_loadset('bcilab:/userdata/tutorial/imag_movements1/calib/DanielS001R01.dat'); |
| 84 | +traindata = io_loadset('bcilab:/userdata/tutorial/imag_movements1/calib/DanielS001R01.dat','channels',1:29); |
85 | 85 |
|
86 | 86 | % define the approach |
87 | 87 | myapproach = {'SpecCSP' 'SignalProcessing',{'EpochExtraction',[0.5 3]}}; |
|
97 | 97 | % ( click into the figure to stop the update (and make sure that your click was registered) ) |
98 | 98 |
|
99 | 99 | % load feedback session |
100 | | -testdata = io_loadset('bcilab:/userdata/tutorial/imag_movements1/feedback/DanielS001R01.dat'); |
| 100 | +testdata = io_loadset('bcilab:/userdata/tutorial/imag_movements1/feedback/DanielS001R01.dat','channels',1:29); |
101 | 101 |
|
102 | 102 | % play it back in real time |
103 | 103 | run_readdataset('Dataset',testdata); |
|
115 | 115 | % (the number of pattern pairs found optimal should be 3 in this case) |
116 | 116 |
|
117 | 117 | % load the data set (BCI2000 format) |
118 | | -traindata = io_loadset('bcilab:/userdata/tutorial/imag_movements1/calib/DanielS001R01.dat'); |
| 118 | +traindata = io_loadset('bcilab:/userdata/tutorial/imag_movements1/calib/DanielS001R01.dat','channels',1:29); |
119 | 119 |
|
120 | 120 | % define approach |
121 | 121 | myapproach = {'CSP' 'Prediction',{'FeatureExtraction',{'PatternPairs',search(1,2,3)}}}; |
|
0 commit comments