Skip to content

Provide effective way to query presynaptic cells from Connections #668

@breznak

Description

@breznak

Newly added code from #609 introduces python htm.advanced.algorithms.Connections which is a wrapper to bindings' Connections with a few extra methods.

  • review and port useful methods to C++ Connections (and bindings)
    • and optionally remove the htm.advanced Connections if no longer needed
  • for speedup, an effective way to query presynaptic cells from Connections is needed:
    Currently done as (slow):

The bottleneck is in listing all the presynaptic cells of a segment which I implemented as presynamptic_cells = np.array([permanences.presynapticCellForSynapse(synapse) for synapse in permanences.synapsesForSegment(segment)]
This is called many, many times and hence takes 25% of the run time. ~fcr

Metadata

Metadata

Assignees

Labels

CPColumn poolercodecode enhancement, optimization, cleanup..programmer stuffcommunityoptimization

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions