transformLSTMinput: transformLSTMinput

Description Usage Arguments Details Value

Description

transforms a data.frame input into the correct format for the LSTM model

Usage

1
transformLSTMinput(dat, targetColumn, seq.length, seq.freq = seq.length)

Arguments

dat

data.frame with variables. Is assumed to be a time-series without gaps. Each column corresponds to one variable

targetColumn

Name of the column(s) that represents the regression target. All other columns are considered as inputs

seq.length

sequence length.

seq.freq

frequency of sequence starts. Defaults to sequence length.

Details

The last sequence is discarded if it is not complete. Sequences containing missing values are discarded.

Value

a list of two: 'x' is an array with input variables as required for mxLSTM. 'y' is an array of target values as required for mxLSTM.


MarkusBonsch/mxLSTM documentation built on May 28, 2019, 6:40 a.m.