mean_field_categorical¶
- probly.decider.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 toE_{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
CategoricalDistributionapproximating the predictive distribution.- Type:
Mean-field approximation