[pymvpa] Shrinkage LDA for PyMVPA
Michael Bannert
mbannert at tuebingen.mpg.de
Tue Jan 23 10:51:34 UTC 2018
Dear PyMVPA users,
Since I couldn't find an implementation of "shrinkage LDA" (e.g.,
Pereira & Botvinick, NeuroImage, 2011) in PyMVPA, I implemented my own
based on Gaussian Discriminant Analysis (gda.py). I figured it could be
helpful for other users as well?
It is considerably faster than using the scikit-learn implementation
through the SKLLearnerAdapter, which I have been using until now:
SKLLearnerAdapter(LinearDiscriminantAnalysis(solver='lsqr',
shrinkage='auto'))
It is also a little more flexible because you can choose between the
Ledoit-Wolf estimator and the Oracle Approximating Shrinkage.
May it be useful.
Cheers,
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gda.py
Type: text/x-python-script
Size: 12145 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20180123/4feb1d48/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: warehouse.py
Type: text/x-python-script
Size: 28845 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20180123/4feb1d48/attachment-0003.bin>
More information about the Pkg-ExpPsy-PyMVPA
mailing list