nll_nb: NLL NB for a single data point

Description Usage Arguments

View source: R/nll_nb.R

Description

This is an auxiliary function to calculate the negative log likelihood of the Naive Bayes model for a single data point given mle of parameters. That is, the function returns partial value of nll, without calculating log(px). The complete value of nll is calculated in mml_nb().

Usage

1
nll_nb(dataPoint, pars, xIndices, yIndex)

Arguments

dataPoint

A single data point in the given data set.

pars

A list of MLE of NB parameters.

xIndices

A vector of input variables' indices.

yIndex

The index of the output variable.


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