preprocess_test_data: Preprocess time series data prepare for test learned bayesian...

Description Usage Arguments Value Examples

View source: R/main.R

Description

Preprocess time series data prepare for test learned bayesian network

Usage

1
2
3
4
5
6
7
8
9
preprocess_test_data(
  data,
  continuous_variables,
  discrete_variables,
  desire_layers,
  time_column = NULL,
  normalize_type = NULL,
  normalizers = NULL
)

Arguments

data

A data frame, each row is a time value and observations

desire_layers

Number layers of bayesian network, at least is 2

time_column

Column name of "data", which values is time stamp, default is NULL

normalize_type

Normalization type for continuous variables, "mean_normalization", "min_max" or "standardisation", default is NULL

normalizers

Normalize parameters, default is NULL

continuous_variable_names

Column names of continuous variables

discrete_variable_names

Column names of discrete variables

Value

An list object, each element is processed data frame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(wrmbn)
data("preprocessed")
head(data)
continuous_variables <- preprocessed$continuous_variables
discrete_variables <- preprocessed$discrete_variables
desire_layers <- preprocessed$desire_layers
time_column <- "date"
normalize_type <- preprocessed$normalize_tye
normalizers <- preprocessed$normalizers
test_data <- preprocess_test_data(data, continuous_variables, discrete_variables, desire_layers,
                                  time_column, normalize_type, normalizers)

bayes-modeling/wrmbn documentation built on Dec. 19, 2021, 6:45 a.m.