fnb.update {fastNaiveBayes}R Documentation

Update function

Description

Update function

Usage

fnb.update(object, x, y, sparse = FALSE, check = TRUE)

## Default S3 method:
fnb.update(object, x, y, sparse = FALSE, check = TRUE)

## S3 method for class 'fnb.bernoulli'
fnb.update(object, x, y, sparse = FALSE, check = TRUE)

## S3 method for class 'fnb.multinomial'
fnb.update(object, x, y, sparse = FALSE, check = TRUE)

## S3 method for class 'fnb.gaussian'
fnb.update(object, x, y, sparse = FALSE, check = TRUE)

## S3 method for class 'fnb.poisson'
fnb.update(object, x, y, sparse = FALSE, check = TRUE)

## S3 method for class 'fastNaiveBayes'
fnb.update(object, x, y, sparse = FALSE, check = TRUE)

Arguments

object

fitted model

x

numeric matrix

y

factor of classes

sparse

boolean, set to true to use sparse matrices

check

boolean, set to true to enable formal checks on input


[Package fastNaiveBayes version 2.2.1 Index]