[pymvpa] top-n match lists

Yaroslav Halchenko debian at onerussian.com
Thu Jan 7 17:50:28 UTC 2010


Hi Tara,

Unfortunately ATM we simply do not have such feature unified and
exposed at all, but it sounds like a nice feature to have!  Probably
something like 'predictions_ranked'  where for each prediction it would
not only store the winner but all labels ordered accordingly.

I have filed the request under
http://github.com/hanke/PyMVPA/issues#issue/8

Meanwhile you can make use of 'values' state variable.  The difficulty
might be that the content of values is not unified across the
classifiers, but it is somewhat obvious for most (e.g. for SMLR it would
be probabilities from logistic regressions per each label in the order
of your ds.uniquelabels, so you would need just to argsort each one of
them with [::-1] to get in reverse order ;) ). What classifier do you
have in mind though?

-- 
                                  .-.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]





More information about the Pkg-ExpPsy-PyMVPA mailing list