c1e7fb95a360ba4b9af65b173a829c48dbc893a7,Python/phate/phate.py,PHATE,diff_op,#PHATE#,176

Before Change


        
        if self.graph is not None:
            if isinstance(self.graph, graphtools.LandmarkGraph):
                return self.graph.landmark_op
            else:
                return self.graph.diff_op
        else:
            raise NotFittedError("This PHATE instance is not fitted yet. Call "

After Change


        
        if self.graph is not None:
            if isinstance(self.graph, graphtools.graphs.LandmarkGraph):
                diff_op = self.graph.landmark_op
            else:
                diff_op = self.graph.diff_op
            if sparse.issparse(diff_op):
                diff_op = diff_op.toarray()
            return diff_op
        else:
            raise NotFittedError("This PHATE instance is not fitted yet. Call "
                                 ""fit" with appropriate arguments before "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: KrishnaswamyLab/PHATE
Commit Name: c1e7fb95a360ba4b9af65b173a829c48dbc893a7
Time: 2018-05-30
Author: scottgigante@gmail.com
File Name: Python/phate/phate.py
Class Name: PHATE
Method Name: diff_op


Project Name: automl/auto-sklearn
Commit Name: 869ab3bc5e31d983f2a7d4f475439e8d62dc048f
Time: 2015-10-07
Author: feurerm@informatik.uni-freiburg.de
File Name: ParamSklearn/components/data_preprocessing/one_hot_encoding.py
Class Name: OneHotEncoder
Method Name: transform


Project Name: automl/auto-sklearn
Commit Name: c1119d49f9ca21b2517469234d9ebf7305560686
Time: 2017-11-21
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/pipeline/components/data_preprocessing/one_hot_encoding/one_hot_encoding.py
Class Name: OneHotEncoder
Method Name: fit_transform