cnrl / CoNeX

Cortical Network for everything!
MIT License
3 stars 0 forks source link

fix: restrict kwta #45

Closed saeedark closed 8 months ago

saeedark commented 9 months ago

Previously, k distinct values were allowed. Therefore, if the number of neurons with the smallest winner membrane potential were more than one, all of them would emit spikes. This leads to having more than k neurons spiking in the same time step.

This PR should eliminate this kind of behavior.