mle_nb: MLE of NB parameters

Description Usage Arguments

View source: R/mle_nb.R

Description

Maximum likelihood of Naive Bayes parameters. Input parameters are always stored in front of output parameter in the returned list of parameters.

Usage

1
mle_nb(data, vars, xIndices, yIndex, smoothing = 0.5)

Arguments

data

A categorical data set.

vars

A vector of all variables.

xIndices

A vector of input variables indices.

yIndex

The output variable index.

smoothing

A value for parameter smoothing to avoid having 0 or 1 probabilities. 1 for laplacing smoothing, 0.5 for mml smoothing.


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