Skip to contents

A wrapper around mlpack::nbc() that allows passing a formula.

Usage

naive_bayes(
  formula = NULL,
  data = NULL,
  incremental_variance = FALSE,
  x = NULL,
  y = NULL
)

Arguments

formula

A formula.

data

A data.frame.

incremental_variance

Logical; passed to mlpack::nbc().

x

Design matrix.

y

Response matrix.

Value

An object of class baritsu_nbc.