powered by
Calculate the vocabulary size, i.e. the sum of number of activities, outcome labels and padding keys
vocab_size(processed_df)
an integer number of vocabulary size to define the Transformer model.
integer
A processed dataset of class ppred_examples_df from prepare_examples().
ppred_examples_df
prepare_examples()
library(processpredictR) library(eventdataR) df <- prepare_examples(patients) vocab_size(df)
Run the code above in your browser using DataLab