Testing GPFA method on simulated data

버전 1.0.0.0 (6.39 KB) 작성자: Valentina Unakafova
Example of testing GPFA method on simulated data
다운로드 수: 91
업데이트 날짜: 2017/8/3

라이선스 보기

Testing GPFA method
This code is programmed according to description in the last section in [BCS] (Simulation with error floor). The aim is to help understanding how to use GPFA package [1] and to test it on simulated data (an example for using HighDim package is also provided).

[BCS] Byron, M.Y., Cunningham, J.P., Santhanam, G., et. al, 2009. Gaussian-process factor analysis for low-dimensional single-trial analysis of neural population activity. In Advances in neural information processing systems (pp. 1881-1888).
[1] GPFA and HighDim packages, https://users.ece.cmu.edu/~byronyu/software.shtml

HOW TO USE THE CODE?
1 Make sure that you have downloaded GPFA and HighDim packages from https://users.ece.cmu.edu/~byronyu/software.shtml
and added them to MATLAB path.
2 Run the sections step by step and check if the underlying dimension is detected correctly (if prediction error has its minimum at nDims value after performing full cross-validation section, nDims is set to 5 in GPFAsimulations.m for an example)
3 Change parameters of input data and run the example again to check whether the underlying dimension is detected correctly. One can change, for example
3.1 dimension of input data nDims (then change dimensions of A and B, correspondingly)
3.2 frequency A or amplitude B of sinusoids
3.3 number of units nUnits
3.4 covariance matrix R of noise
3.5 bin width binWidth
3.6 length of trial trialLength in ms

DESCRIPTION OF CODE SECTIONS:
1 Generate simulated data
2 Plot simulated data
3 Prepare data in proper format for GPFA
4 Launch GPFA on simulated data
5 Launch full cross-validation
6 Preparing data for HighData toolbox
7 Example for using previously-fit model parameters for extracting neural trajectories

Please, see further examples and explanations of GPFA and HighDim method at https://users.ece.cmu.edu/~byronyu/software.shtml and in [BCS]

인용 양식

Valentina Unakafova (2024). Testing GPFA method on simulated data (https://www.mathworks.com/matlabcentral/fileexchange/63976-testing-gpfa-method-on-simulated-data), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2016a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Biotech and Pharmaceutical에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0