Oblynx / HierarchicalTemporalMemory.jl

A simple, high-level Julia implementation of Numenta HTM algorithms
https://oblynx.github.io/HierarchicalTemporalMemory.jl
MIT License
21 stars 3 forks source link

Efficiently select and modify SparseSynapses #10

Closed Oblynx closed 5 years ago

Oblynx commented 5 years ago

Slicing and broadcasting as one would do on a dense matrix doesn't work here, because broadcasting affects zero elements as well. 2 options:

  1. Modify broadcasting for SparseSynapses
    • Need to wrap slices in sparse synapses!
  2. Work on the CSR data structures directly (low-level)
Oblynx commented 5 years ago

Affects #6

Oblynx commented 5 years ago

Addressed in #11 with the function sparse_foreach