HSC_PC_None: Straight-through pre-classifier

Description Usage Details Examples

View source: R/HSC_PC_None.R

Description

Extends the HSC_PC abstract class.

Usage

1

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

1
2
3
4
5
6
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)

SeqDetect documentation built on March 2, 2020, 5:08 p.m.