naiveBayes-class {cleanUpdTSeq} | R Documentation

## Class `"naiveBayes"`

### Description

An object of class `"naiveBayes"` represents the conditional a-posterior probabilities of a categorical class variable given independent predictor variables using the Bayes rule.

### Objects from the Class

Objects can be created by calls of the form `new("naiveBayes", apriori, tables, levels, call)`.

### Slots

`apriori`

  Class distribution for the dependent variable.

`tables`

  A list of tables, one for each predictor variable. For each categorical variable a table giving, for each attribute level, the conditional probabilities given the target class. For each numeric variable, a table giving, for each target class, mean and standard deviation of the (sub-)variable.

### Methods

$, $<-

  Get or set the slot of `naiveBayes`

[Package cleanUpdTSeq version 1.22.2 Index]