pyhgf.response.first_level_binary_surprise#

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

Time series of binary surprises for all binary state nodes.

Note

The binary surprise is the default method to compute surprise when model_type==”binary”, therefore this method will only return the valid time points, and jnp.inf if the model could not fit.

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