ilabcode / pyhgf

PyHGF: A neural network library for predictive coding
https://ilabcode.github.io/pyhgf/
GNU General Public License v3.0
53 stars 17 forks source link

Replace input nodes with state nodes receiving observations #239

Closed LegrandNico closed 1 month ago

LegrandNico commented 1 month ago

This PR remove input nodes from the API. All nodes are state nodes that can receive observations or be influenced by other nodes, at each time point. Most of the changes are internal, but this will simplify network construction in the future and come with performance improvements.

This also:

Close #231 Close #221

codecov-commenter commented 1 month ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 95.23810% with 15 lines in your changes missing coverage. Please review.

Project coverage is 95.39%. Comparing base (a8d2350) to head (831cd4a).

Files with missing lines Patch % Lines
src/pyhgf/model/network.py 89.09% 6 Missing :warning:
src/pyhgf/plots.py 88.88% 6 Missing :warning:
src/pyhgf/utils.py 96.51% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #239 +/- ## ========================================== - Coverage 95.64% 95.39% -0.25% ========================================== Files 23 22 -1 Lines 1194 1130 -64 ========================================== - Hits 1142 1078 -64 Misses 52 52 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.