garage.tf.distributions.recurrent_categorical module

class RecurrentCategorical(dim, name='RecurrentCategorical')[source]

Bases: garage.tf.distributions.base.Distribution

dim
dist_info_specs
entropy(dist_info)[source]
entropy_sym(dist_info_vars, name=None)[source]
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=None)[source]

Compute the symbolic KL divergence of two categorical distributions

likelihood_ratio_sym(x_var, old_dist_info_vars, new_dist_info_vars, name=None)[source]
log_likelihood(xs, dist_info)[source]
log_likelihood_sym(xs, dist_info_vars, name=None)[source]