[pymvpa] _clf_internals question

Michael Hanke michael.hanke at gmail.com
Sat Apr 25 12:13:27 UTC 2009


Hi Per,

On Sat, Apr 25, 2009 at 07:25:33AM -0400, Per B. Sederberg wrote:
> Howdy folks:
> 
> As you might have seen, I recently added preliminary support for the
> GLMNET regression/classification algorithm as seen in the following
> paper:
> 
> http://www-stat.stanford.edu/~hastie/Papers/glmnet.pdf

Thanks for adding this one.

> In refining the implementation (which is wrapping the R code from the
> authors) I've run into a minor issue that I'm not sure how to resolve.
>  Depending on how you parameterize the algorithm, it can either
> perform a multinomial logistic regression style classification (and
> hence would want the 'multiclass' internal, and possibly 'binary',
> too) or a simple gaussian regression that is meant for continuous data
> (and hence would want the 'regression' internal set.)
> 
> Should I make two other instances of the class, similar to what is
> done for SVMs, that separate this out: i.e., a GLMNET_Reg and
> GLMNET_Class for regression and classification?

This seems to be the easiest way.

> That way I can add them to the warehouse and have them take part in
> the unittest battery.  Speaking of unittests, is adding this
> classifier to the warehouse all that is needed to get basic unittests
> running on it?

Yes, that should be it.


Cheers,

Michael

-- 
GPG key:  1024D/3144BE0F Michael Hanke
http://apsy.gse.uni-magdeburg.de/hanke
ICQ: 48230050



More information about the Pkg-ExpPsy-PyMVPA mailing list