2cd4ca6dc541b568f4d508542fa2cc79a58e5e68,snntoolbox/simulation/backends/inisim/temporal_pattern.py,,to_binary_numpy,#,146

Before Change



    x_binary = np.zeros([num_bits] + list(x.shape[1:]))

    powers = [2**-(i+1) for i in range(num_bits)]

    a = np.copy(x)

    for i in range(num_bits):
        mask = np.greater(a, powers[i])
        x_binary[i] = mask
        a -= mask * powers[i]

    return x_binary

After Change



    @property
    def class_name(self):
        Get class name.

        return self.__class__.__name__


class SpikeReshape(Reshape):
    Spike reshape layer.

    def __init__(self, target_shape, **kwargs):
        kwargs.pop(str("config"))
        Reshape.__init__(self, target_shape, **kwargs)

    @staticmethod
    def get_time():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 2cd4ca6dc541b568f4d508542fa2cc79a58e5e68
Time: 2020-06-03
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/backends/inisim/temporal_pattern.py
Class Name:
Method Name: to_binary_numpy


Project Name: neuropsychology/NeuroKit.py
Commit Name: 99fa9c26d5043dfef8b6157e3d891d7e918686d7
Time: 2017-07-03
Author: dom.mak19@gmail.com
File Name: neurokit/bio/bio_ecg.py
Class Name:
Method Name: ecg_process


Project Name: neuropsychology/NeuroKit.py
Commit Name: 99fa9c26d5043dfef8b6157e3d891d7e918686d7
Time: 2017-07-03
Author: dom.mak19@gmail.com
File Name: neurokit/bio/bio_rsp.py
Class Name:
Method Name: rsp_process