Defines the model using the keras functional API. The following 4 process monitoring tasks are defined:
outcome
next_activity
next_time
remaining_time
remaining_trace
remaining_trace_s2s
create_model(
x_train,
custom = FALSE,
num_heads = 4,
output_dim_emb = 36,
dim_ff = 64,
...
)An object of class ppred_model and list containing a Transformer model (returned by keras::keras_model()) and some additional useful metrics.
data.frame: A processed data.frame from prepare_examples().
A number of attention heads of the keras::layer_embedding().
Dimension of the dense embedding of the keras::layer_embedding().
Dimensionality of the output space of the feedforward network part of the model (units argument of the keras::layer_dense()).
you can pass additional arguments to keras::keras_model() (ex.: name argument).