seq_gen3 generates action sequences according to a recurrent neural network
seq_gen3(n, events = letters, rnn_type = "lstm", K = 10,
weights = NULL, max_len = 100, initial_state = NULL,
start_index = 1, end_index = length(events), include_time = FALSE,
time_intv_dist = list("exp", 1), gpu = FALSE, parallel = FALSE,
seed = 12345)An integer. The number of action sequences to be generated.
A character vector specifying the set of N possible
actions. Default is letters.
the type of recurrent unit to be used for generating sequences.
"lstm" for the long-short term memory unit. "gru" for the gated
recurrent unit.
the latent dimension of the recurrent unit.
a list containing the weights in the embedding layer, the recurrent unit, the fully connected layer. If not (properly) specified, randomly generated weights are used.
Maximum length of generated sequences.
a list containing the initial state of the recurrent neural
network. If rnn_type="lstm", it contains two 1 by K matrices. If
rnn_type="gru", it contains one 1 by K matrix. If not specified,
all the elements are set to zero.
Index of the action indicating the start of an item in
events.
Index of the action indicating the end of an item in
events.
logical. Indicate if timestamp sequences should be generated. Default is FALSE.
A list specifying the distribution of the inter-arrival time.
logical. If TRUE, use gpu for training when available. Default is FALSE.
logical. If TRUE, allow cpu parallel computing. Default is FALSE.
random generator seed.
A list containing the following elements
an object of class "proc" with time_seqs=NULL.
a list containing the weights used for generating sequences.