seq_gen3 {ProcData} | R Documentation |
RNN action sequence generator
Description
seq_gen3
generates action sequences according to a recurrent neural network
Usage
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))
Arguments
n |
An integer. The number of action sequences to be generated. |
events |
A character vector specifying the set of |
rnn_type |
the type of recurrent unit to be used for generating sequences.
|
K |
the latent dimension of the recurrent unit. |
weights |
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. |
max_len |
Maximum length of generated sequences. |
initial_state |
a list containing the initial state of the recurrent neural
network. If |
start_index |
Index of the action indicating the start of an item in
|
end_index |
Index of the action indicating the end of an item in
|
include_time |
logical. Indicate if timestamp sequences should be generated. Default is FALSE. |
time_intv_dist |
A list specifying the distribution of the inter-arrival time. |
Value
A list containing the following elements
seqs |
an object of class |
weights |
a list containing the weights used for generating sequences. |
See Also
Other sequence generators: seq_gen2
,
seq_gen