https://github.com/mobeets/nullspacecontrol
https://github.com/mobeets/nullspacecontrol
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mobeets/nullspacecontrol
- Owner: mobeets
- Created: 2016-01-04T17:00:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-06-07T03:41:16.000Z (about 8 years ago)
- Last Synced: 2025-03-02T04:33:37.291Z (over 1 year ago)
- Language: Matlab
- Size: 726 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Setup
```
setpref('factorSpace', 'data_directory', '/path/to/data');
DATADIR = getpref('factorSpace', 'data_directory');
```
Data session files are structured as follows (n.b. `*` is a wildcard operator):
```
/DATADIR
/Jeffy
/20120302
*simpleData_combined.mat
kalmanInitParamsFA*.mat
/20120303
...
/Lincoln
/Nelson
...
```
### Processing new sessions
To process a list of session files for some dates, e.g., `dts = {'20160101', '20160102'}`, run the following:
1. __Preprocess__: `cellfun(@io.saveDataByData, dts);`
2. __Fit behavioral asymptotes__: Edit and run `behav.asymptotesAll`, making sure to add to the existing file `'data/asymptotes/bySession.mat'`.
3. __Fit IME__: Run `imefit.fitAll` for your `dts` with `opts = struct('doCv', false, 'doSave', true, 'fitPostLearnOnly', true)`. For each `dtstr`, you should verify there is now a file in `fullfile(DATADIR, 'ime', [dtstr '.mat'])`