vocab_size {processpredictR} | R Documentation |
Calculate the vocabulary size, i.e. the sum of number of activities, outcome labels and padding keys
Description
Calculate the vocabulary size, i.e. the sum of number of activities, outcome labels and padding keys
Usage
vocab_size(processed_df)
Arguments
processed_df |
A processed dataset of class |
Value
an integer
number of vocabulary size to define the Transformer model.
Examples
library(processpredictR)
library(eventdataR)
df <- prepare_examples(patients)
vocab_size(df)
[Package processpredictR version 0.1.0 Index]