98611fa50a2929757207121f440dad6651265e47,stellargraph/utils/saliency_maps/saliency.py,GradientSaliency,get_link_masks,#GradientSaliency#Any#Any#Any#Any#,106

Before Change



        // Execute the function to compute the gradient
        if self.is_sparse and not sp.issparse(A_val):
            A_val = sp.lil_matrix(A_val)
        gradients = self.compute_link_gradients(
            [X_val, out_indices, A_val, 0, class_of_interest]
        )
        return gradients[0]

After Change


        out_indices = np.array([[node_idx]])

        // Execute the function to compute the gradient
        if self.is_sparse:
            raise NotImplementedError("Sparse matrix support is not yet implemented")

        gradients = self.compute_link_gradients(
            [X_val, out_indices, A_val, 0, class_of_interest]
        )
        return gradients[0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: stellargraph/stellargraph
Commit Name: 98611fa50a2929757207121f440dad6651265e47
Time: 2019-06-24
Author: andrew.docherty@data61.csiro.au
File Name: stellargraph/utils/saliency_maps/saliency.py
Class Name: GradientSaliency
Method Name: get_link_masks


Project Name: stellargraph/stellargraph
Commit Name: 9f9a07de2499c47a0ba9b78675880c17c42d714f
Time: 2020-03-18
Author: Huon.Wilson@data61.csiro.au
File Name: stellargraph/mapper/mini_batch_node_generators.py
Class Name: ClusterNodeSequence
Method Name: __getitem__


Project Name: deeptools/HiCExplorer
Commit Name: 108925e377867296d0a816d14540d59bc4f0c618
Time: 2018-12-04
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/hicTransform.py
Class Name:
Method Name: main