05fc3863f9b6c5b9a0393368fb02e999f1fc4d32,innvestigate/analyzer/relevance_based/relevance_rule.py,AlphaBetaRule,__init__,#AlphaBetaRule#Any#Any#Any#Any#Any#,214

Before Change




    def __init__(self, layer, state, alpha=None, beta=None, bias=True):
        alpha, beta = rutils.assert_infer_lrp_alpha_beta_param(alpha, beta, self)
        self._alpha = alpha
        self._beta = beta

        // prepare positive and negative weights for computing positive

After Change


        // One is the original form and two with only the positive or
        // negative weights.
        if copy_weights:
            weights = layer.get_weights()[:-1]
            positive_weights = [x * (x > 0) for x in weights]
            negative_weights = [x * (x < 0) for x in weights]
        else:
            weights = layer.weights[:-1]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: albermax/innvestigate
Commit Name: 05fc3863f9b6c5b9a0393368fb02e999f1fc4d32
Time: 2018-04-15
Author: work.alber.maximilian@gmail.com
File Name: innvestigate/analyzer/relevance_based/relevance_rule.py
Class Name: AlphaBetaRule
Method Name: __init__


Project Name: rtavenar/tslearn
Commit Name: 0167220b8f9a942e942c4894fab01dd1fdf26804
Time: 2020-05-22
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/tests/test_shapelets.py
Class Name:
Method Name: test_shapelets


Project Name: AIRLab-POLIMI/mushroom
Commit Name: e98df967b1f6adea7e7aae2f5999d7e5548bb870
Time: 2018-06-28
Author: carloderamo@gmail.com
File Name: tests/algorithms/test_actor_critic.py
Class Name:
Method Name: test_copdac_q