garage.tf.distributions package

class Distribution[source]

Bases: object

dim
dist_info_keys
dist_info_specs
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)[source]

Compute the symbolic KL divergence of two distributions

likelihood_ratio_sym(x_var, old_dist_info_vars, new_dist_info_vars)[source]
log_likelihood(xs, dist_info)[source]
log_likelihood_sym(x_var, dist_info_vars)[source]
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]
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]
class DiagonalGaussian(dim, name='DiagonalGaussian')[source]

Bases: garage.tf.distributions.base.Distribution

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

alias of garage.tf.distributions.diagonal_gaussian.DiagonalGaussian