deconvatac.tl.metrics

deconvatac.tl.metrics#

Functions#

rmse(→ float)

Compute RMSE on true and predicted cell type proportions.

jsd(→ float)

Compute Jensen-Shannon divergence on true and predicted cell type proportions.

Module Contents#

deconvatac.tl.metrics.rmse(true: pandas.DataFrame | numpy.ndarray, predicted: pandas.DataFrame | numpy.ndarray) float#

Compute RMSE on true and predicted cell type proportions.

Parameters#

true

True cell type proportions.

predicted

Predicted cell type proportions.

Returns#

Root mean squared error.

deconvatac.tl.metrics.jsd(true: pandas.DataFrame | numpy.ndarray, predicted: pandas.DataFrame | numpy.ndarray) float#

Compute Jensen-Shannon divergence on true and predicted cell type proportions.

Parameters#

true

True cell type proportions.

predicted

Predicted cell type proportions.

Returns#

Jensen-Shannon divergence.