garage.tf.distributions.recurrent_categorical module¶
-
class
RecurrentCategorical
(dim, name='RecurrentCategorical')[source]¶ Bases:
garage.tf.distributions.distribution.Distribution
-
entropy
(dist_info)[source]¶ Entropy of a distribution.
Parameters: dist_info (dict) – Parameters of a distribution. Returns: Entropy of the distribution. Return type: float
-
entropy_sym
(dist_info_vars, name='entropy_sym')[source]¶ Symbolic entropy of a distribution.
Parameters: Returns: Symbolic entropy of the distribution.
Return type: tf.Tensor
-
kl
(old_dist_info, new_dist_info)[source]¶ Compute the KL divergence of two categorical distributions
-
kl_sym
(old_dist_info_vars, new_dist_info_vars, name='kl_sym')[source]¶ Compute the symbolic KL divergence of two categorical distributions
-
likelihood_ratio_sym
(x_var, old_dist_info_vars, new_dist_info_vars, name='likelihood_ratio_sym')[source]¶ Symbolic likelihood ratio.
Parameters: Returns: Symbolic likelihood ratio.
Return type: tf.Tensor
-