Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Connector fields from Vector{Vector{...}} to Vector{...} #504

Merged
merged 14 commits into from
Dec 20, 2024

Conversation

harisorgn
Copy link
Member

Improves performance of connector_from_graph by storing Vector{Connector} in composite bloxs and waiting until the final step before system construction to reduce(merge!, ::Vector{Connector}) for most cases (connection rules between composite bloxs will return a reduction and such rules may be called before the final step if these composite bloxs are inside other composite bloxs e.g. CorticalBlox.

@harisorgn harisorgn merged commit 355d24d into master Dec 20, 2024
6 checks passed
@harisorgn harisorgn deleted the ho/connector_vector branch December 20, 2024 14:42
david-hofmann pushed a commit that referenced this pull request Jan 2, 2025
…#504)

* use `AdjacencyMatrix` instead of `get_adjacency`

* store `Vector{Connector}` in composite bloxs without reducing

* change `Vector{Vector}` to `Vector` for all `Connector` fields

* adapt system construction to new `Connector` fields

* `get_connector` always returns `Vector{Connector}`

* accumulate connection eqs per blox like `BloxConnector` used to

* adapt RL to new `Connector`

* fix show Connector

* fix RL test

* change adjacency colormap to grays

* add `get_connector`(s) util functions

* use correct connectors getter

* add token weight for Striatum=>Striatum connection

* use correct connectors getter
david-hofmann pushed a commit that referenced this pull request Jan 3, 2025
…#504)

* use `AdjacencyMatrix` instead of `get_adjacency`

* store `Vector{Connector}` in composite bloxs without reducing

* change `Vector{Vector}` to `Vector` for all `Connector` fields

* adapt system construction to new `Connector` fields

* `get_connector` always returns `Vector{Connector}`

* accumulate connection eqs per blox like `BloxConnector` used to

* adapt RL to new `Connector`

* fix show Connector

* fix RL test

* change adjacency colormap to grays

* add `get_connector`(s) util functions

* use correct connectors getter

* add token weight for Striatum=>Striatum connection

* use correct connectors getter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant