Giter VIP home page Giter VIP logo

cpc_activeinference2018's Introduction

CPC_ActiveInference2018

Active Inference Tutorial from the Computational Psychiatry Conference in Zurich 2018 (http://www.translationalneuromodeling.org/cpcourse/)

This tutorial contains three parts ('Practical_*' I to III) plus some auxiliary SPM-functions that were adjusted for these particular examples (mainly adjusting some of the figures). The only other requirement to run the code in Matlab is SPM12 and particularly the DEM toolbox of SPM.

Practical_I.m illustrates how to implement a task as active inference, where an agent has to solve the trade-off between gaining information about the world and maximising reward. This information-gain refers to 'hidden state exploration', which allows agents to perform accurate inference about the current hidden state (context). Practical_I_Solutions.m contains some additional tasks that explore the role of different parts of the computational architecture in modelling behaviour of this task, such as an agent's prior preferences, learning rate or precision.

Practical_II.m illustrates model inversion (parameter estimation) based on simulated behaviour in the task that was introduced in Practical_I.m. This includes routines for parameter estimation based on variational Bayes, design optimisation for parameter recovery, inference on group differences and cross validation.

Practical_III.m illustrates a second task with a different type of information-gain, namely 'model-parameter exploration', where an agent performs goal-directed exploration to decrease uncertainty about a particular option and thus active learning.

The background and the different examples are also discussed and introduced in Practical_ActiveInference.pdf

Practical_I.m and Practical_III.m reproduce some of the simulations discussed here: https://www.biorxiv.org/content/early/2018/09/07/411272, which focuses on the distinction between active inference and active learning in more detail.

See https://video.ethz.ch/lectures/d-itet/2019/autumn/227-0971-00L/56dbb21a-9367-44e0-805e-d3cb200ba9c3.html for a talk covering parts of this material and providing some introductory notes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.