c6ee8ee45b7b854fa2731b6f238e223ec24e1cab,yellowbrick/features/manifold.py,Manifold,transform,#Manifold#,344

Before Change


        Xprime : array-like of shape (n, 2)
            Returns the 2-dimensional embedding of the instances.
        
        try:
            return self.manifold.transform(X)
        except AttributeError as e:
            raise AttributeError(str(e) + " try using fit_transform instead.")

    def draw(self, X, y=None):
        
        Draws the points described by X and colored by the points in y. Can be
        called multiple times before finalize to add more scatter plots to the

After Change


        it is yet to be implemented in sklearn.
        
        // Because some manifolds do not have transform we cannot call super
        try:
            Xp = self.manifold.transform(X)
            self.draw(Xp, y)
            return Xp
        except NotFittedError:
             raise NotFitted.from_estimator(self, "transform")
        except AttributeError:
            name = self.manifold.__class__.__name__
            raise ModelError((
                "{} requires data to be simultaneously fit and transformed, "
                "use fit_transform instead").format(name)
            )
                    
        return Xp

    def draw(self, Xp, y=None):
        // Calls draw method from super class which draws scatter plot.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: DistrictDataLabs/yellowbrick
Commit Name: c6ee8ee45b7b854fa2731b6f238e223ec24e1cab
Time: 2019-07-27
Author: 43993586+naresh-bachwani@users.noreply.github.com
File Name: yellowbrick/features/manifold.py
Class Name: Manifold
Method Name: transform


Project Name: WheatonCS/Lexos
Commit Name: dd49738a24b82717c8b279612d9833c33cc7d529
Time: 2017-08-08
Author: 13501393281@163.com
File Name: lexos/helpers/general_functions.py
Class Name:
Method Name: decode_bytes


Project Name: jonas-koehler/s2cnn
Commit Name: d750d66fb998a44316000908f213ae73c53de97f
Time: 2018-03-03
Author: geiger.mario@gmail.com
File Name: examples/shrec17/dataset.py
Class Name: CacheNPY
Method Name: __call__