pyhgf.response.binary_softmax#

pyhgf.response.binary_softmax(hgf, response_function_inputs=typing.Union[jax.Array, numpy.ndarray, numpy.bool, numpy.number, bool, int, float, complex], response_function_parameters=typing.Union[jax.Array, numpy.ndarray, numpy.bool, numpy.number, bool, int, float, complex])[source]#

Surprise under the binary sofmax model.

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

  • response_function_inputs – The inputs to the response functions, here containing the decision from the paraticipant at time k [0 or 1].

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

Returns:

The surprise under the binary sofmax model.

Return type:

surprise