Learn R Programming

processpredictR (version 0.1.0)

vocab_size: 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)

Value

an integer number of vocabulary size to define the Transformer model.

Arguments

processed_df

A processed dataset of class ppred_examples_df from prepare_examples().

Examples

Run this code
library(processpredictR)
library(eventdataR)
df <- prepare_examples(patients)
vocab_size(df)

Run the code above in your browser using DataLab