[pymvpa] _clf_internals question

Per B. Sederberg persed at princeton.edu
Sat Apr 25 11:25:33 UTC 2009


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

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?

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?

Thanks,
Per



More information about the Pkg-ExpPsy-PyMVPA mailing list