Learn R Programming

cleanUpdTSeq (version 1.10.2)

PASclassifier-class: Class "PASclassifier"

Description

An object of class "PASclassifier" represents the output of buildClassifier

Arguments

Objects from the Class

Objects can be created by calls of the form new("PASclassifier", classifier, info).

Slots

classifier
Object of class "naiveBayes" The output of naiveBayes. An object of class "naiveBayes" including components:
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.
info
Object of class modelInfo

Methods

$, $<-
Get or set the slot of PASclassifier

Examples

Run this code
data(classifier)
classifier$info$upstream
classifier$info$wordSize
classifier$info$alphabet

Run the code above in your browser using DataLab