garage.tf.distributions.categorical module

class Categorical(dim, name=None)[source]

Bases: garage.tf.distributions.base.Distribution

cross_entropy_sym(old_dist_info_vars, new_dist_info_vars, name=None)[source]
dim
dist_info_specs
entropy(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(x_var, dist_info_vars, name=None)[source]
sample(dist_info)[source]
sample_sym(dist_info, name=None)[source]
from_onehot(x_var)[source]