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

NaNs in HGF gradients - sampling fails #147

Closed LegrandNico closed 11 months ago

LegrandNico commented 11 months ago

When using NaNs as input, the gradient of HGF networks sometimes fails, and so does the sampling (e.g. in the multiarmed bandit example).

LegrandNico commented 11 months ago

Fixed in #149