コード例 #1
0
ファイル: base.py プロジェクト: B-Rich/PyMVPA
    def __init__(self, null_dist=None, **kwargs):
        """
        Parameters
        ----------
        null_dist : instance of distribution estimator
          The estimated distribution is used to assign a probability for a
          certain value of the computed measure.
        """
        Learner.__init__(self, **kwargs)

        null_dist_ = auto_null_dist(null_dist)
        if __debug__:
            debug('SA', 'Assigning null_dist %s whenever original given was %s'
                  % (null_dist_, null_dist))
        self.__null_dist = null_dist_
コード例 #2
0
ファイル: base.py プロジェクト: geeragh/PyMVPA
    def __init__(self, postproc=None, null_dist=None, **kwargs):
        """Does nothing special.

        Parameters
        ----------
        postproc : Mapper instance
          Mapper to perform post-processing of results. This mapper is applied
          in `__call__()` to perform a final processing step on the to be
          returned dataset measure. If None, nothing is done.
        null_dist : instance of distribution estimator
          The estimated distribution is used to assign a probability for a
          certain value of the computed measure.
        """
        ClassWithCollections.__init__(self, **kwargs)

        self.__postproc = postproc
        """Functor to be called in return statement of all subclass __call__()
        methods."""
        null_dist_ = auto_null_dist(null_dist)
        if __debug__:
            debug('SA', 'Assigning null_dist %s whenever original given was %s'
                  % (null_dist_, null_dist))
        self.__null_dist = null_dist_
コード例 #3
0
    def __init__(self, postproc=None, null_dist=None, **kwargs):
        """Does nothing special.

        Parameters
        ----------
        postproc : Mapper instance
          Mapper to perform post-processing of results. This mapper is applied
          in `__call__()` to perform a final processing step on the to be
          returned dataset measure. If None, nothing is done.
        null_dist : instance of distribution estimator
          The estimated distribution is used to assign a probability for a
          certain value of the computed measure.
        """
        ClassWithCollections.__init__(self, **kwargs)

        self.__postproc = postproc
        """Functor to be called in return statement of all subclass __call__()
        methods."""
        null_dist_ = auto_null_dist(null_dist)
        if __debug__:
            debug('SA', 'Assigning null_dist %s whenever original given was %s'
                  % (null_dist_, null_dist))
        self.__null_dist = null_dist_