Created
April 1, 2010 02:03
-
-
Save satra/351220 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [127]: zm_samples.shape | |
Out[127]: (22, 50) | |
In [128]: grpinfo.shape | |
Out[128]: (22,) | |
In [129]: grpinfo[0] | |
Out[129]: 'a' | |
In [130]: ds = dataset_wizard(zm_samples, targets=grpinfo, chunks=1) | |
In [131]: clf = kNN(k=1, dfx=one_minus_correlation, voting='majority') | |
In [132]: terr = TransferError(clf) | |
In [133]: hspl = HalfSplitter() | |
In [134]: cvte = CrossValidatedTransferError(terr, splitter=hspl) | |
In [135]: cv_results = cvte(ds) | |
--------------------------------------------------------------------------- | |
AttributeError Traceback (most recent call last) | |
/mindhive/nklab/projects/ellison/zfMRI/scripts/getroiinfo.py in <module>() | |
----> 1 | |
2 | |
3 | |
4 | |
5 | |
/software/python/2.6/lib/python2.6/site-packages/pymvpa-0.5.0.dev-py2.6-linux-x86_64.egg/mvpa/measures/base.pyc in __call__(self, dataset) | |
110 container applying a post-processing mapper if such is defined. | |
111 """ | |
--> 112 result = self._call(dataset) | |
113 result = self._postcall(dataset, result) | |
114 | |
/software/python/2.6/lib/python2.6/site-packages/pymvpa-0.5.0.dev-py2.6-linux-x86_64.egg/mvpa/algorithms/cvtranserror.pyc in _call(self, dataset) | |
172 for c in split[0].sa[self.__splitter.splitattr].unique]), | |
173 ','.join([str(c) | |
--> 174 for c in split[1].sa[self.__splitter.splitattr].unique]))) | |
175 | |
176 # only train classifier if splitter provides something in first | |
AttributeError: 'NoneType' object has no attribute 'sa' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment