pyhgf.response.total_gaussian_surprise#

pyhgf.response.total_gaussian_surprise(hgf, response_function_inputs=None, response_function_parameters=None)[source]#

Sum of the Gaussian surprise across the probabilistic network.

Note

The function returns jnp.inf if the model could not fit at a given time point.

Parameters:
  • hgf (HGF) – An instance of the HGF model.

  • response_function_inputs – The inputs to the response functions, not required here.

  • response_function_parameters – Additionnal parameters for the response function, not required here.

Returns:

The model’s surprise given the input data.

Return type:

surprise