predict_naive_bn: Naive Bayes Classifier

Description Usage Arguments Value

Description

A function of Naive Bayes Classifier for numeric only independents.

Usage

1
predict_naive_bn(fit, newdata, threshold)

Arguments

fit

a data.table class modelling dataset; only support numeric independents.

newdata

a data.table class dataset with target variable; only support numeric independents.

threshold

a positive numeric, usually small; if the variance of independent is 0, then use this value to replace it to avoid perfect division.

Value

a list of modeling result. It contains the following components: predict: a prediction result table.


xinzhou1023/nbcont documentation built on May 4, 2019, 1:07 p.m.