garage.tf.distributions.bernoulli module

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

Bases: garage.tf.distributions.base.Distribution

dim
dist_info_keys
entropy(dist_info)[source]
kl(old_dist_info, new_dist_info)[source]

Compute the KL divergence of two distributions

kl_sym(old_dist_info_vars, new_dist_info_vars, name=None)[source]

Compute the symbolic KL divergence of two 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]