[pymvpa] Unbalanced Datasets

Bill Broderick billbrod at gmail.com
Wed Apr 22 17:43:58 UTC 2015


Hi all,

I think my first question was broader than it needed to be, so hopefully
this is more to the point.

I'm trying to run MVPA on a classification with unbalanced classes, using a
Linear SVM, and would like to weight the error signals to correct for
unbalanced-ness. With PyMVPA's Linear CSVMC (
http://www.pymvpa.org/generated/mvpa2.clfs.svm.LinearCSVMC.html), it looks
like there's a weight and weight_label parameter that would do what I would
like, but I cannot find any usage examples. Can someone provide me with one?

For example, if I have a dataset with three times as many examples in class
A as in class B, how would I set up the Linear CSVMC to weight the error in
class B as three times larger?

Thanks,
William
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20150422/1dd7a48b/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list