pseudodynamics.functions.eval_funs.KLD_density¶
- pseudodynamics.functions.eval_funs.KLD_density(u_b, u_simulate, sanity_check=True)[source]¶
Normalize the density and compute the KL-divergence between observation and prediction
- Parameters:
u_b (ndarray, [n_time, n_cell] , observed density)
u_simulate (ndarray, [n_time, n_cell], inferred desity)
sanity_check (bool, whether check shape and positivity)
- Returns:
KLD_ls : ndarray, [n_time, ]