99c14eda7069a7f9771e8aef8027e24c71dfd364,innvestigate/analyzer/relevance_based/relevance_rule.py,FlatRule,__init__,#FlatRule#Any#Any#Any#,190

Before Change


        // The flat rule works with weights equal to one and
        // no biases.
        if copy_weights:
            weights = [np.ones_like(x) for x in layer.get_weights()[:-1]]
        else:
            weights = [K.ones_like(x) for x in layer.weights[:-1]]

        self._layer_wo_act_b = kgraph.copy_layer_wo_activation(
            layer,
            keep_bias=False,
            weights=weights,

After Change


        // The flat rule works with weights equal to one and
        // no biases.
        if copy_weights:
            weights = layer.get_weights()
            if layer.use_bias:
                weights = weights[:-1]
            weights = [np.ones_like(x) for x in weights]
        else:
            weights = layer.weights
            if layer.use_bias:
                weights = weights[:-1]
            weights = [K.ones_like(x) for x in weights]

        self._layer_wo_act_b = kgraph.copy_layer_wo_activation(
            layer,
            keep_bias=False,
            weights=weights,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: albermax/innvestigate
Commit Name: 99c14eda7069a7f9771e8aef8027e24c71dfd364
Time: 2018-12-11
Author: alber.maximilian@gmail.com
File Name: innvestigate/analyzer/relevance_based/relevance_rule.py
Class Name: FlatRule
Method Name: __init__


Project Name: albermax/innvestigate
Commit Name: 99c14eda7069a7f9771e8aef8027e24c71dfd364
Time: 2018-12-11
Author: alber.maximilian@gmail.com
File Name: innvestigate/analyzer/relevance_based/relevance_rule.py
Class Name: ZPlusFastRule
Method Name: __init__


Project Name: albermax/innvestigate
Commit Name: 99c14eda7069a7f9771e8aef8027e24c71dfd364
Time: 2018-12-11
Author: alber.maximilian@gmail.com
File Name: innvestigate/analyzer/relevance_based/relevance_rule.py
Class Name: BoundedRule
Method Name: __init__