lace.ColumnMetadata.categorical
- ColumnMetadata.categorical(k, value_map=None, prior=None, hyper=None)
Create categorical column metadata
- Parameters:
name (str) – The name of the column
k (int) – The number of categories
value_map (ValueMap, optional) – A map from possible values to unsigned integers. If
None
(default), it is assumed the values to this column take on values in [0, k-1].prior (CategoricalPrior, optional) – The prior on the data. If
None
(default), a prior will be drawn from thehyper
hyper (CategoricalHyper, optional) – The prior on the data. If
None
(default) andprior
is defined, the prior parameters will be locked.