e22aef4d42d1d20a093240933181f627dcd830e7,snntoolbox/core/inisim.py,,update_neurons,#Any#Any#Any#,64

Before Change


    Update neurons according to activation function.

    if "activation" in self.get_config() and \
            self.get_config()["activation"] == "softmax":
        output_spikes = softmax_activation(self, time, updates)
    else:
        output_spikes = linear_activation(self, time, updates)

After Change


        if self.activation_str == "softmax":
            output_spikes = softmax_activation(self, time, updates)
        elif self.activation_str == "binary_sigmoid":
            output_spikes = binary_sigmoid_activation(self, time, updates)
        elif self.activation_str == "binary_tanh":
            output_spikes = binary_tanh_activation(self, time, updates)
        else:
            output_spikes = linear_activation(self, time, updates)
    else:
        output_spikes = linear_activation(self, time, updates)

    // Store refractory
    new_refractory = T.set_subtensor(
        self.refrac_until[output_spikes.nonzero()], time + self.tau_refrac)
    updates.append((self.refrac_until, new_refractory))

    updates.append((self.spiketrain, output_spikes * (time + settings["dt"])))
    updates.append((self.spikecounts, self.spikecounts + output_spikes))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: e22aef4d42d1d20a093240933181f627dcd830e7
Time: 2016-10-13
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/core/inisim.py
Class Name:
Method Name: update_neurons


Project Name: senarvi/theanolm
Commit Name: f46ab87701457b1d3deafe8ce811bab369e20e0b
Time: 2016-05-20
Author: seppo.git@marjaniemi.com
File Name: theanolm/optimizers/basicoptimizer.py
Class Name: BasicOptimizer
Method Name: __init__


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: e22aef4d42d1d20a093240933181f627dcd830e7
Time: 2016-10-13
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/core/inisim.py
Class Name:
Method Name: softmax_activation