Frozen Categorical

../_images/frozen_categorical.gif
class golem.FrozenCategorical

Simple categorical distribution. Categories will be encoded alphabetically as an ordered variable. In practice, because true categorical variables are not yet supported in sklearn, we implement this distribution as a discrete one with the first category being encoded as 0, the second as 1, et cetera, in alphabetical order.

Parameters
  • categories (array) – List of categories.

  • probabilities (array) – List of probabilities corresponding to each category.

Methods

pdf

Probabilities.

cdf

Cumulative density function.