pyhgf.response.binary_softmax#

pyhgf.response.binary_softmax(hgf: 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]) float[source]#

Surprise under the binary sofmax model.

Parameters:
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:
surprise

The surprise under the binary sofmax model.