Learn R Programming

sweater (version 0.1.8)

rnsb_es: 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)

Value

the Kullback-Leibler divergence.

Arguments

x

an rnsb object from the rnsb function.

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).