Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMNIST: unexpected behavior of "duplicate" flag #294

Open
mhastu opened this issue Dec 2, 2024 · 0 comments
Open

SMNIST: unexpected behavior of "duplicate" flag #294

mhastu opened this issue Dec 2, 2024 · 0 comments

Comments

@mhastu
Copy link

mhastu commented Dec 2, 2024

In the SMNIST dataset, per default, the "duplicate" flag is set, which means two spikes are emitted per threshold crossing. This, however, silently also doubles all the spike timings, i.e. the spikes are fed at half the speed into a model, which is seen in the following snippet:

        # If we should duplicate each spike
        if self.duplicate:
            # Repeat spike indices
            spike_idx = np.repeat(spike_idx, 2)

            # Double spike times
            double_spike_time = spike_time * 2

            # Interleave
            spike_time = np.empty(2 * double_spike_time.shape[0], dtype=np.int64)
            spike_time[0::2] = double_spike_time
            spike_time[1::2] = double_spike_time + 1

We might want to

  • half dt and add half dt to the original spike timings and document this in the class description string
  • keep the behavior as it is and document the spike timing doubling in the class description string
  • default the "duplicate" flag to False, independently of the above suggestions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant