a2rl.utils.entropy#

a2rl.utils.entropy(Y)[source]#

The entropy of the input series.

Parameters:

Y (ndarray) – tokenized input 1D array.

Return type:

float

Returns:

The entropy