dPCA-master

所属分类:其他
开发工具:matlab
文件大小:487KB
下载次数:38
上传日期:2019-03-09 09:51:34
上 传 者dasidjals
说明:  matlab实现动态PCA故障检测,matlab2018下可以运行
(Dynamic PCA fault detection is realized by matlab, which can run under Matlab 2018)

文件列表:
.travis.yml (973, 2018-05-02)
License.md (1068, 2018-05-02)
matlab (0, 2019-02-28)
matlab\dpca.m (7355, 2018-05-02)
matlab\dpca_classificationAccuracy.m (11157, 2018-05-02)
matlab\dpca_classificationPlot.m (5068, 2018-05-02)
matlab\dpca_classificationShuffled.m (8377, 2018-05-02)
matlab\dpca_demo.m (10205, 2018-05-02)
matlab\dpca_explainedVariance.m (7955, 2018-05-02)
matlab\dpca_getNoiseCovariance.m (1769, 2018-05-02)
matlab\dpca_getTestTrials.m (1675, 2018-05-02)
matlab\dpca_marginalize.m (8760, 2018-05-02)
matlab\dpca_optimizeLambda.m (10904, 2018-05-02)
matlab\dpca_perMarginalization.m (4682, 2018-05-02)
matlab\dpca_pinv.m (3385, 2018-05-02)
matlab\dpca_plot.m (16043, 2018-05-02)
matlab\dpca_plot_default.m (3802, 2018-05-02)
matlab\dpca_signifComponents.m (1774, 2018-05-02)
matlab\tmp_classification_accuracy.mat (13621, 2019-02-25)
matlab\tmp_optimalLambdas.mat (2527, 2019-02-25)
python (0, 2019-02-28)
python\dPCA (0, 2019-02-28)
python\dPCA\__init__.py (0, 2018-05-02)
python\dPCA\dPCA.py (40619, 2018-05-02)
python\dPCA\nan_shuffle.pyx (2038, 2018-05-02)
python\dPCA_demo.ipynb (577689, 2018-05-02)
python\requirements.txt (35, 2018-05-02)
python\setup.py (994, 2018-05-02)

demixed Principal Component Analysis (dPCA) =========================================== dPCA is a linear dimensionality reduction technique that automatically discovers and highlights the essential features of complex population activities. The population activity is decomposed into a few demixed components that capture most of the variance in the data and that highlight the dynamic tuning of the population to various task parameters, such as stimuli, decisions, rewards, etc. > D Kobak+, W Brendel+, C Constantinidis, CE Feierstein, A Kepecs, ZF Mainen, X-L Qi, R Romo, N Uchida, CK Machens
> **Demixed principal component analysis of neural population data**
> eLife 2016, https://elifesciences.org/content/5/e10***9
> (arXiv link: http://arxiv.org/abs/1410.6031) This repository provides easy to use Python and MATLAB implementations of dPCA as well as example code. ## Use dPCA Simple example code for surrogate data can be found in [**dpca_demo.ipynb**](http://nbviewer.ipython.org/github/wielandbrendel/dPCA/blob/master/python/dPCA_demo.ipynb) and **dpca_demo.m**. ### Python package The Python package is tested against Python 2.7 and Python 3.4. To install, first make sure that numpy, cython, scipy, sklearn, itertools and numexpr are avaible. Then copy the files from the Python subfolder to a location in the Python search path. Alternatively, from the terminal you can install the package by running: ``` $ cd /path/to/dPCA/python $ python setup.py install ``` API of dPCA is similar to sklearn. To use dPCA, you should first import dPCA, `from dpca import dPCA` then initialize it, `dpca = dPCA(labels, n_components, regularizer)` then call the fitting function on your data to get the latent components Z, `Z = dpca.fit_transform(X)`. The required initialization parameters are: - *X* - A multidimensional array containing the trial-averaged data. E.g. X[n,t,s,d] could correspond to the mean response of the *n*-th neuron at time *t* in trials with stimulus *s* and decision *d*. The observable (e.g. neuron index) needs to come first. - *labels* - Optional; list of characters with which to describe the parameter axes, e.g. 'tsd' to denote time, stimulus and decision axis. All marginalizations (e.g. time-stimulus) are refered to by subsets of those characters (e.g. 'ts'). - *n_components* - Dictionary or integer; if integer use the same number of components in each marginalization, otherwise every (key,value) pair refers to the number of components (value) in a marginalization (key). More detailed documentation, and additional options, can be found in **dpca.py**. ### MATLAB package Add the Matlab subfolder to the Matlab search path. Example code in `dpca_demo.m` generates surrogate data and provides a walkthrough for running PCA and dPCA analysis and plotting the results. ### Support Email wieland.brendel@bethgelab.org (Python) or dmitry.kobak@neuro.fchampalimaud.org (Matlab) with any questions. ### Contributors A big thanks for 3rd party contributions goes to **cboulay**.

近期下载者

相关文件


收藏者