mean_field_categorical

probly.decider.categorical_distribution.mean_field_categorical = <flextype.singledispatch.Flexdispatch object>

representation -> CategoricalDistribution.

For a Gaussian-over-logits, returns softmax(mean / sqrt(1 + mean_field_factor * var)), the closed-form approximation to E_{m ~ N(mean, var)}[softmax(m)].

Parameters:
  • representation – The representation to convert.

  • mean_field_factor – Scaling factor for the variance contribution to the logit denominator. Defaults to 1.0.

Returns:

A CategoricalDistribution approximating the predictive distribution.

Type:

Mean-field approximation