add_data: Add training and testing data.

Description Usage Arguments Value Examples

View source: R/anomaly_detection.R

Description

add_data returns the added anomaly detection data structure with the training and testing data provided as arguments.

Usage

1
add_data(dt.ad, training_data, testing_data)

Arguments

dt.ad

An S3 data structure used in the package, see Summary.

training_data

A data.table with dt.ad$param$num_variables number of columns.

testing_data

A data.table with dt.ad$param$num_variables number of columns.

Value

An S3 object of mvad type.

Examples

1
2
3
dt.ad <- add_data(setup_model(),
                  data.table("v" = 1:10,"i" = 11:20, "t" = 21:30, "f" = 31:40),
                  data.table("v" = 1:5,"i" = 6:10, "t" = 11:15, "f" = 16:20))

lanl-ansi/MVAD documentation built on July 24, 2020, 3:45 a.m.