Learn R Programming

SeqDetect (version 1.0.7)

HSC_PC_None: Straight-through pre-classifier

Description

Extends the HSC_PC abstract class.

Usage

HSC_PC_None()

Arguments

Details

A pre-classifier class that does not contain any classifier. It passes an input event stream straight through without any modifications. The only thing is to check whether the input event stream contains .clazz field, which should carry classification and input symbols for Sequence Detector ETTs.

Examples

Run this code
# NOT RUN {
event_stream <- data.frame(product=c("P45","P134","P45","P134","P134","P45","P134"),
                           sales=c(2,12,18,16,18,24,8),
                           alert=c(NA,NA,NA,NA,NA,"Alert P45","Alert P134"),
                           .clazz=c(2,12,18,16,18,24,8))
pc <- HSC_PC_None()
cons_stream <- classify(pc,event_stream)
# }

Run the code above in your browser using DataLab