View source: R/har_eval_soft.R
har_eval_soft | R Documentation |
Evaluation of event detection using SoftED doi:10.48550/arXiv.2304.00439
har_eval_soft(sw_size = 15)
sw_size |
tolerance window size |
har_eval_soft
object
library(daltoolbox)
#loading the example database
data(examples_anomalies)
#Using the simple
dataset <- examples_anomalies$simple
head(dataset)
# setting up time change point using GARCH
model <- hcp_garch()
# fitting the model
model <- fit(model, dataset$serie)
# making detections
detection <- detect(model, dataset$serie)
# filtering detected events
print(detection[(detection$event),])
# evaluating the detections
evaluation <- evaluate(har_eval_soft(), detection$event, dataset$event)
print(evaluation$confMatrix)
# ploting the results
grf <- har_plot(model, dataset$serie, detection, dataset$event)
plot(grf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.