harmonium Module
Code for exponential family harmoniums
Follows Welling, Rosen-Zvi, Hinton 2005
-
class infpy.dbn.harmonium.Harmonium(observed, hidden)[source]
Bases: object
An exponential family harmonium with hidden and observed variables
Follows Welling, Rosen-Zvi, Hinton 2005
-
lambda_hat(j, observed_values)[source]
The natural parameters of a hidden variable taking quadratic term for
interactions into account
-
theta_hat(i, hidden_values)[source]
The natural parameters of an observed variable taking quadratic term for
interactions into account
-
infpy.dbn.harmonium.contrastive_divergence_iteration(harmonium, observed_data, eta)[source]
One iteration of contrastive divergence