Skip to main content

kl_divergence_py

Function kl_divergence_py 

Source
pub fn kl_divergence_py(
    p: &Bound<'_, PyArray1<f64>>,
    q: &Bound<'_, PyArray1<f64>>,
) -> PyResult<f64>
Expand description

Compute Kullback-Leibler divergence between two probability distributions