Skip to content

Recovering computational parameters with custom network #218

Answered by LegrandNico
Harris-D asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Harris-D

Thank you for reaching out. It is indeed possible to sample any custom network to infer parameter estimates, it simply requires:

  • writing a response function
  • wrapping this response function in a PyTensor Op so it can be inserted in a PyMC graph.

You can find details on how to write a response function in this tutorial - the response function should return the log probability of your observation given a set of parameters.

Then you might create a PyMC Op for this function, and the gradient of this function. You can find an example in the categorical HGF tutorial and in this notebook (using the grad function, that is easier to work with). You can also refer to these tutorials f…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Harris-D
Comment options

Answer selected by LegrandNico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants