aprx_kld: Approximation of the KL-Divergence between two distributions.

Description Usage Arguments

View source: R/aprx_kld.R

Description

This function approximates from the learned distribution to the true distribution. This is not the full kld, it is the last term in Acid and de Campos (2003)'s paper on page 37. This function only approximates the kld, because the distributions are estimated by MLE. The reason to not use the true distribution is to get fast calculation by approximating the joint distributions from data.

Usage

1
aprx_kld(data, cptsLearned, logBase = 2, smth = 1e-10)

Arguments

data

A categorical dataset.

cptsLearned

The estimated distribution of a learned BN.

logBase

The base of logarithm. Default is 2.

smth

A small value to get rid of 0 occurence.


kelvinyangli/mbmml documentation built on June 29, 2020, 3:12 a.m.