e0e0edc8d1b6478acfce87702592d4c084dc2ee4,Python/phate/phate.py,PHATE,fit,#PHATE#Any#,476

Before Change


            n_landmark = self.n_landmark

        if self.graph is not None:
            if self.X is not None and not (X != self.X).sum() == 0:
                
                If the same data is used, we can reuse existing kernel and
                diffusion matrices. Otherwise we have to recompute.
                
                self.graph = None
        else:
            try:
                self.graph.set_params(
                    decay=self.a, knn=self.k + 1, distance=self.knn_dist,

After Change


                    log_info("Using precomputed graph and diffusion operator...")
                except ValueError as e:
                    // something changed that should have invalidated the graph
                    log_debug("Reset graph due to {}".format(str(e)))
                    self.graph = None

        self.X = X
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: KrishnaswamyLab/PHATE
Commit Name: e0e0edc8d1b6478acfce87702592d4c084dc2ee4
Time: 2018-05-31
Author: scottgigante@gmail.com
File Name: Python/phate/phate.py
Class Name: PHATE
Method Name: fit


Project Name: KrishnaswamyLab/PHATE
Commit Name: be95ff167e1ea0195e32beb0618228d18a4098eb
Time: 2018-05-28
Author: scottgigante@gmail.com
File Name: Python/phate/phate.py
Class Name: PHATE
Method Name: transform


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