Has anyone else been having problems getting the interactive demo of the Linear-IF neuron to run?
When I run it in colab, simply nothing happens (I’ve run all previous cells).
When I run it in Jupyter (where I’m running all code in parallel), I get the following error:
ValueError: zero-size array to reduction operation minimum which has no identity
-
Full error text:
ValueError Traceback (most recent call last)
~\Anaconda3\lib\site-packages\ipywidgets\widgets\interaction.py in update(self, *args)
254 value = widget.get_interact_value()
255 self.kwargs[widget._kwarg] = value
–> 256 self.result = self.f(**self.kwargs)
257 show_inline_matplotlib_plots()
258 if self.auto_display and self.result is not None:
in plot_lif_neuron(n_steps, alpha, rate)
20 def plot_lif_neuron(n_steps=1000, alpha=0.01, rate=10):
21 v, spike_times = _lif_neuron(int(n_steps), alpha, rate)
—> 22 plot_neuron_stats(v, spike_times)
in plot_neuron_stats(v, spike_times)
53 # ISI distribution
54 isi = np.diff(spike_times)
—> 55 n_bins = np.arange(isi.min(), isi.max() + 2) - .5
56 counts, bins = np.histogram(isi, n_bins)
57 vlines = []
~\Anaconda3\lib\site-packages\numpy\core_methods.py in _amin(a, axis, out, keepdims, initial, where)
32 def _amin(a, axis=None, out=None, keepdims=False,
33 initial=_NoValue, where=True):
—> 34 return umr_minimum(a, axis, None, out, keepdims, initial, where)
35
36 def _sum(a, axis=None, dtype=None, out=None, keepdims=False,
ValueError: zero-size array to reduction operation minimum which has no identity