[pymvpa] permutation distribution

Yaroslav Halchenko debian at onerussian.com
Wed Mar 10 16:48:59 UTC 2010


On Wed, 10 Mar 2010, John Clithero wrote:
>    Hi PyMVPA users,
damn... I haven't actually USED it for a while... can't reply then I
guess ;)

>    cv_terr = CrossValidatedTransferError(
>                    TransferError(clf),
>                    NFoldSplitter(),
>                    enable_states=['dist_samples'],
>                    null_dist=MCNullDist(permutations=num_perm,tail='left'))
>    print 'Corresponding p-value : ', cv_terr.null_prob

>    How do I call the set of values that are used to calculate the p-value?
>    In other words, I'd like to plot all values from the permutations
>    (e.g., histogram).
>    "cv_terr.null_dist" does not seem to do the trick here.

move enable_states=['dist_samples'] into MCNullDist definition -- that
is where you want to get the actual values, right?
then simply run and access them from there:
cv_terr.null_dist.dist_samples

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





More information about the Pkg-ExpPsy-PyMVPA mailing list