Skip to contents

Needed as an input to the [layer_multi_embedding()]

Usage

dict_size(data, categorical)

Arguments

data

A data.frame object

categorical

List of the categorical variables

Examples

dict_size(m5::tiny_m5, c('event_name_1', 'event_type_1'))
#> event_name_1 event_type_1 
#>           31            5