infer-actively / pymdp

A Python implementation of active inference for Markov Decision Processes
MIT License
420 stars 83 forks source link

Incorrect error message when ensuring normalization of D array/vectors #80

Open conorheins opened 2 years ago

conorheins commented 2 years ago

In line 180 of agent.py, error message should be changed to:

"D vector is not normalized (i.e. D[f].sum() must all equal 1.0)"

Originally posted by @helenegu in https://github.com/infer-actively/pymdp/issues/73#issuecomment-1165899263