infer-actively / pymdp

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

an error in the official documentation #125

Closed Sangxiaofu closed 7 months ago

Sangxiaofu commented 7 months ago

Dear sir, In the official document "Active Inference Demo: Epistemological Chains",

Starting with the 0-th modality, the Location observation modality: A[0]

A[0] = np.tile(np.expand_dims(np.eye(num_grid_points), (-2, -1)), (1, 1, num_states[1], num_states[2]))

i run it but with the error "A matrix is not normalized (i.e. A.sum(axis = 0) must all be equal to 1.0)",this looks initialized but not normalized

conorheins commented 7 months ago

Hi @Sangxiaofu -- I see you closed this issue. I was planning on looking into this, unless you can confirm that it's not a problem anymore?