MCPcopy Create free account

hub / github.com/DSL-Lab/GRBM / functions

Functions47 in github.com/DSL-Lab/GRBM

↓ 17 callersMethodget_var
(self)
grbm.py:52
↓ 8 callersMethodprob_h_given_v
(self, v, var)
grbm.py:120
↓ 3 callersFunctioncosine_schedule
(eta_min=0, eta_max=1, T=10)
utils.py:44
↓ 3 callersMethodenergy_grad_param
(self, v, h)
grbm.py:94
↓ 3 callersMethodmarginal_energy
(self, v)
grbm.py:71
↓ 3 callersMethodprob_v_given_h
(self, h)
grbm.py:124
↓ 2 callersMethodGibbs_Langevin_sampling_vh
(self, v, num_steps=10,
grbm.py:223
↓ 2 callersMethodGibbs_sampling_vh
(self, v, num_steps=10, burn_in=0)
grbm.py:171
↓ 2 callersMethodLangevin_sampling_v
(self, v, num_steps=10, et
grbm.py:189
↓ 2 callersMethodenergy
(self, v, h)
grbm.py:62
↓ 2 callersMethodlog_prob
(self, x)
gmm.py:47
↓ 2 callersMethodmarginal_energy_grad_v
(self, v)
grbm.py:87
↓ 2 callersMethodsampling
(self, num_samples)
gmm.py:56
↓ 2 callersMethodset_Langevin_adjust_step
(self, step)
grbm.py:58
↓ 2 callersFunctionvis_2D_samples
(samples, config, tags=None)
utils.py:138
↓ 1 callersMethodCD_grad
(self, v)
grbm.py:350
↓ 1 callersFunctioncreate_dataset
(config)
main.py:52
↓ 1 callersMethodenergy_grad_v
(self, v, h)
grbm.py:80
↓ 1 callersFunctionfig2img
(fig)
utils.py:59
↓ 1 callersFunctionget_logger
(logger_name="exp_logger")
utils.py:40
↓ 1 callersFunctionload
(model, results_folder, epoch)
main.py:26
↓ 1 callersMethodlog_gaussian
log density of single (diagonal-covariance) multivariate Gaussian
gmm.py:41
↓ 1 callersMethodlog_metropolis_ratio_Gibbs_Langevin
Metropolis-Hasting ratio of accepting the move from old to new state
grbm.py:128
↓ 1 callersMethodlog_metropolis_ratio_Langevin_one_step
Metropolis-Hasting ratio of accepting the move from old to new state
grbm.py:158
↓ 1 callersMethodmarginal_energy_grad_param
(self, v)
grbm.py:106
↓ 1 callersMethodnegative_grad
(self, v)
grbm.py:314
↓ 1 callersMethodpositive_grad
(self, v)
grbm.py:308
↓ 1 callersMethodreconstruction
(self, v)
grbm.py:265
↓ 1 callersMethodreset_parameters
(self)
grbm.py:43
↓ 1 callersFunctionsave
(model, results_folder, epoch)
main.py:21
↓ 1 callersFunctionsave_gif_fancy
(imgs, nrow, save_name)
utils.py:83
↓ 1 callersFunctionsetup_logging
Setup logging
utils.py:16
↓ 1 callersFunctionshow_img
(matrix, title)
utils.py:68
↓ 1 callersFunctiontrain
(model, train_loader, optimizer, config)
main.py:31
↓ 1 callersFunctiontrain_model
Let us train a GRBM and see how it performs
main.py:121
↓ 1 callersFunctionunnormalize_img_tuple
(img_tuple, mean, std)
utils.py:51
↓ 1 callersFunctionvis_density_GMM
(model, config)
utils.py:149
↓ 1 callersFunctionvis_density_GRBM
(model, config, epoch=None)
utils.py:175
↓ 1 callersFunctionvisualize_sampling
(model, epoch, config, tag=None, is_show_gif=True)
utils.py:98
Method__getitem__
(self, idx)
gmm.py:15
Method__init__
(self, visible_size, hidden_size, CD_step=1,
grbm.py:10
Method__init__
(self, samples)
gmm.py:9
Method__init__
p(x) = sum_i w[i] N(mu[i], sigma[i]^2 * I) config: w: shape K X 1, mixture coefficients, must sum to 1 m
gmm.py:24
Method__len__
(self)
gmm.py:12
Methodlangevin_sampling
(self, x, num_steps=10, eta=1.0e+0, is_anneal=False)
gmm.py:63
Methodsampling
(self, v_init, num_steps=1, save_gap=1)
grbm.py:272
Methodset_Langevin_eta
(self, eta)
grbm.py:55