fe50dfc3e52a9d31827e10a1ee4b2aec3ff087f7,innvestigate/utils/keras/graph.py,,get_layer_neuronwise_io,#Any#Any#Any#Any#,188
Before Change
tmp = ret_Ys
// Create Xs with backward pass.
// (n, channels) dot (dimension, channels).T = (n, dimensions)
if contains_bias(layer):
layer_wo_bias = copy_layer(layer, keep_bias=False)
tmp = iutils.listify(kutils.easy_apply(layer_wo_bias, Xs))
tmp = [reshape(x) for x in tmp]
kernel = kernel.reshape((-1, n_channels))
dense = keras.layers.Dense(kernel.shape[0], use_bias=False)
ret_Xs = [dense(x) for x in tmp]
else:
After Change
layer.strides,
layer.dilation_rate,
layer.padding)
reshape = ilayers.Reshape((-1, np.product(kernel.shape[:3])) )
ret_Xs = [reshape(extract_patches(x)) for x in Xs]
if return_o:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: albermax/innvestigate
Commit Name: fe50dfc3e52a9d31827e10a1ee4b2aec3ff087f7
Time: 2018-02-15
Author: alber.maximilian@gmail.com
File Name: innvestigate/utils/keras/graph.py
Class Name:
Method Name: get_layer_neuronwise_io
Project Name: J535D165/recordlinkage
Commit Name: 798d71d25f579604bda909cf2297727f1bf3a1df
Time: 2017-11-12
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/indexing.py
Class Name: SortedNeighbourhoodIndex
Method Name: _link_index
Project Name: J535D165/recordlinkage
Commit Name: f7a88a2d7e1c37bfba5e6f7dd72b8a75ae9fa50a
Time: 2018-02-25
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/base.py
Class Name: BaseCompare
Method Name: _compute