rnsb_es {sweater}R Documentation

Calculation the Kullback-Leibler divergence

Description

This function calculates the Kullback-Leibler divergence of the predicted negative probabilities, P, from the uniform distribution. If possible, please use calculate_es() instead.

Usage

rnsb_es(x)

Arguments

x

an rnsb object from the rnsb function.

Value

the Kullback-Leibler divergence.

References

Sweeney, C., & Najafian, M. (2019, July). A transparent framework for evaluating unintended demographic bias in word embeddings. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (pp. 1662-1667).


[Package sweater version 0.1.8 Index]