tests/testthat/test-detectionQuality.R

context("detectionQuality")

test_that("confusionMatrix works",
          {
              if(require("caret") & require("e1071")){
                  train <- geccoIC2018Train[15000:17000,]
                  edObject <- detectEvents(train[,-c(1,11)],windowSize = 500, nIterationsRefit = 200,verbosityLevel = 2,
                                           postProcessorControl = list(nStandardDeviationseventThreshold = 3))
                  stat <- qualityStatistics(edObject, train$EVENT)
                  expect_equal(typeof(stat), "list")
              }
          })

Try the EventDetectR package in your browser

Any scripts or data that you put into this service are public.

EventDetectR documentation built on Jan. 13, 2021, 9:02 a.m.