6cb12a25ba993e6be2964f04948b0b9deb7ce6a4,pixyz/distributions/distributions.py,MultiplyDistribution,__repr__,#MultiplyDistribution#,655

Before Change



    def __repr__(self):
        if isinstance(self._parent, MultiplyDistribution):
            text = self._parent.__repr__()
        else:
            text = "{} ({}): {}".format(self._parent.prob_text, self._parent.distribution_name, self._parent.__repr__())
        text += "\n"

        if isinstance(self._child, MultiplyDistribution):
            text += self._child.__repr__()
        else:
            text += "{} ({}): {}".format(self._child.prob_text, self._child.distribution_name, self._child.__repr__())
        return text


class ReplaceVarDistribution(Distribution):

After Change


                         " so you must set sum_dim=True.".format(self._parent.prob_text, self._child.prob_text))

    def __repr__(self):
        return self._parent.__repr__() + "\n" + self._child.__repr__()


class ReplaceVarDistribution(Distribution):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: masa-su/pixyz
Commit Name: 6cb12a25ba993e6be2964f04948b0b9deb7ce6a4
Time: 2019-05-22
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: pixyz/distributions/distributions.py
Class Name: MultiplyDistribution
Method Name: __repr__


Project Name: pymanopt/pymanopt
Commit Name: 2efc48def04f842d5802caffda493734711d2738
Time: 2020-01-25
Author: niklas.koep@gmail.com
File Name: pymanopt/manifolds/product.py
Class Name: _ProductTangentVector
Method Name: __repr__


Project Name: pymanopt/pymanopt
Commit Name: 2efc48def04f842d5802caffda493734711d2738
Time: 2020-01-25
Author: niklas.koep@gmail.com
File Name: pymanopt/manifolds/fixed_rank.py
Class Name: _FixedRankTangentVector
Method Name: __repr__