[pymvpa] Can't access an enabled classifier attribute.

Roberto Guidotti robbenson18 at gmail.com
Tue Nov 27 11:55:47 UTC 2012


Dear all,

I've a problem with classifier's conditional attributes (it is possibly due
to a bad command understanding, by myself, I admit!):

clf = LinearCSVMC(C=1, probability=1, enable_ca=['probabilities'])
cvte = CrossValidation(clf, NFoldPartitioner(cvtype = 1),
enable_ca=['stats', 'repetition_results'])
train_err = cvte(evds)

When I try to see inside the conditional attributes of my trained
classifier clf with the command below
probabilities = clf.ca.probabilities

I have this exception
UnknownStateError: Unknown yet value of probabilities

Instead using a classifier defined as:
clf = LinearCSVMC(C=1, probability=1, enable_ca=['probabilities',
'training_stats'])

I could store my probabilities.

Am I doing all the things well?

Thank you
Roberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20121127/bf2e349c/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list