[pymvpa] Regression estimates?

Yaroslav Halchenko debian at onerussian.com
Thu Mar 31 03:44:52 UTC 2011


On Wed, 30 Mar 2011, Per B. Sederberg wrote:
> clfr = GLMNET_R(alpha=.5, model_type='naive', enable_ca=['estimates'])

so it is a regression.  Wrap with RegressionAsClassifier to gain
classification ;)

thus metrics for regressions:

> -------> print(sclf.ca.stats)
> Statistics  Mean  Std   Min      Max
> ---------- ----- ----- -----    -----
> Data:
>    RMP_t   2.285 0.696  1.3       4
>    STD_t     0     0     0        0
>    >...<

> Also, I really just want to get the predictions/estimates of the
> classifier from each fold, but I don't know how to get that out.

those, since you have stats, are also available within
sclf.ca.stats.sets

-- 
=------------------------------------------------------------------=
Keep in touch                                     www.onerussian.com
Yaroslav Halchenko                 www.ohloh.net/accounts/yarikoptic



More information about the Pkg-ExpPsy-PyMVPA mailing list