Improve assign_labels accuracy and performance by Machuka · Pull Request #737 · BindsNET/bindsnet

added 4 commits

February 11, 2026 20:52
Resolved a bug where silent neurons defaulted to the first class label. Optimized indexing to prevent unnecessary host-to-device transfers and added robust NaN handling for firing rate proportions.
Reverted variable names to original.
Reverted variable names to original
Switched from '-1' sentinel value for silent neurons to randomly assigned labels. Also added noise for random tie-breaking in neuron assignments.

@Machuka