8871dc2edc70509ad61943293a05e4018006f8de,pymanopt/manifolds/sphere.py,Sphere,__init__,#Sphere#,23

Before Change



    def __init__(self, *shape):
        self._shape = shape
        if len(shape) == 0:
            raise TypeError("Need shape parameters.")
        elif len(shape) == 1:
            self._name = "Sphere manifold of {}-vectors".format(*shape)
        elif len(shape) == 2:
            self._name = "Sphere manifold of {}x{} matrices".format(*shape)
        else:
            self._name = "Sphere manifold of shape " + str(shape) + " tensors"

    def __str__(self):
        return self._name

    @property

After Change


    __doc__ = _Sphere.__doc__

    def __init__(self, *shape):
        super().__init__(*shape)


class _SphereSubspaceIntersectionManifold(_Sphere):
    def __init__(self, projector, name, dimension):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pymanopt/pymanopt
Commit Name: 8871dc2edc70509ad61943293a05e4018006f8de
Time: 2020-01-25
Author: niklas.koep@gmail.com
File Name: pymanopt/manifolds/sphere.py
Class Name: Sphere
Method Name: __init__


Project Name: markovmodel/PyEMMA
Commit Name: fb858d97347da7fe73103668e2276c584f93677b
Time: 2016-12-14
Author: feliks.nueske@fu-berlin.de
File Name: pyemma/msm/estimators/maximum_likelihood_msm.py
Class Name: MaximumLikelihoodMSM
Method Name: __init__


Project Name: bashtage/linearmodels
Commit Name: 3dcd0e531d051152d4422688d9a715a1901f9a86
Time: 2017-04-21
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/iv/results.py
Class Name: IVModelComparison
Method Name: __init__