a2rl.utils.conditional_entropy#

a2rl.utils.conditional_entropy(Y, X)[source]#

The conditional entropy of the input series given a conditioning series H(Y|X).

Parameters:
  • Y (ndarray) – tokenized input 1D array. The entropy is calculated on this series.

  • X (ndarray) – tokenized input 1D array. The conditioning array.

Return type:

float

Returns:

The conditonal entropy