Thank you Michael. Both of those seem like plausible techniques and make sense. Once again I'm surprised by the flexibility of PyMVPA :)<div><br></div><div>Thanks!</div><div><br></div><div>Cheers</div><div>Jason<br><br>
On Wednesday, March 26, 2014, Michael Hanke <<a href="mailto:mih@debian.org">mih@debian.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>

<br>
On Tue, Mar 25, 2014 at 12:58:27PM -0400, Jason Ozubko wrote:<br>
> The classifiers in PyMVPA all seem to be targeted at classifying patterns<br>
> into nominal categories.  Is there anything that can be done when you have<br>
> a linear "category"?<br>
<br>
Two ideas:<br>
<br>
1. Use a regression. PyMVPA handles regressions and classifiers in very<br>
   similar ways, hence in most cases you can just replace a classifier<br>
   instance with a regression. Here is an example on how to use any<br>
   regression algorithm implemented in scikit-learn within PyMVPA:<br>
<br>
   <a href="http://www.pymvpa.org/examples/skl_regression_demo.html" target="_blank">http://www.pymvpa.org/examples/skl_regression_demo.html</a><br>
<br>
2. Keep doing classification, but use a custom error function. So if the<br>
   "distance" from the target value within you linear "category" is<br>
   meaningful, you can assign an error function like this one:<br>
<br>
   def eucd(targets, predictions):<br>
       return targets - predictions<br>
<br>
Does that make sense in your context?<br>
<br>
Michael<br>
<br>
--<br>
J.-Prof. Dr. Michael Hanke<br>
Psychoinformatik Labor,    Institut für  Psychologie II<br>
Otto-von-Guericke-Universität Magdeburg,  Universitätsplatz 2, Geb.24<br>
Tel.: +49(0)391-67-18481 Fax: +49(0)391-67-11947  GPG: 4096R/7FFB9E9B<br>
<br>
_______________________________________________<br>
Pkg-ExpPsy-PyMVPA mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'Pkg-ExpPsy-PyMVPA@lists.alioth.debian.org')">Pkg-ExpPsy-PyMVPA@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa</a><br>
</blockquote></div>