Free energy inference engine and code

I just found this, pretty cool!

THE FREE ENERGY PRINCIPLE AND ACTIVE INFERENCE

INTRODUCING: THE DEEP ACTIVE INFERENCE AGENT

I’d like to know your thoughts, and if you’d want to talk over the code here?