Previous topic

bioa.util.validation.jensen_shannon_divergence

Next topic

bioa.util.validation.root_mean_square_deviation

This Page

bioa.util.validation.kullback_leibler_divergence

kullback_leibler_divergence(real, predicted)[source]

Relative entropy between the real frequencies and the predicted frequencies.

Parameters :

real : dict

A dictionary mapping quasispecies to frequencies.

predicted : dict

the calculated dictionary mapping quasispecies to frequencies.

Returns :

divergence : float

The “distance” between the two distributions. Formally, the quality of the approximation of one distribution by the other distribution.