Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DSL-Lab/GRBM
/ functions
Functions
47 in github.com/DSL-Lab/GRBM
⨍
Functions
47
◇
Types & classes
3
↓ 17 callers
Method
get_var
(self)
grbm.py:52
↓ 8 callers
Method
prob_h_given_v
(self, v, var)
grbm.py:120
↓ 3 callers
Function
cosine_schedule
(eta_min=0, eta_max=1, T=10)
utils.py:44
↓ 3 callers
Method
energy_grad_param
(self, v, h)
grbm.py:94
↓ 3 callers
Method
marginal_energy
(self, v)
grbm.py:71
↓ 3 callers
Method
prob_v_given_h
(self, h)
grbm.py:124
↓ 2 callers
Method
Gibbs_Langevin_sampling_vh
(self, v, num_steps=10,
grbm.py:223
↓ 2 callers
Method
Gibbs_sampling_vh
(self, v, num_steps=10, burn_in=0)
grbm.py:171
↓ 2 callers
Method
Langevin_sampling_v
(self, v, num_steps=10, et
grbm.py:189
↓ 2 callers
Method
energy
(self, v, h)
grbm.py:62
↓ 2 callers
Method
log_prob
(self, x)
gmm.py:47
↓ 2 callers
Method
marginal_energy_grad_v
(self, v)
grbm.py:87
↓ 2 callers
Method
sampling
(self, num_samples)
gmm.py:56
↓ 2 callers
Method
set_Langevin_adjust_step
(self, step)
grbm.py:58
↓ 2 callers
Function
vis_2D_samples
(samples, config, tags=None)
utils.py:138
↓ 1 callers
Method
CD_grad
(self, v)
grbm.py:350
↓ 1 callers
Function
create_dataset
(config)
main.py:52
↓ 1 callers
Method
energy_grad_v
(self, v, h)
grbm.py:80
↓ 1 callers
Function
fig2img
(fig)
utils.py:59
↓ 1 callers
Function
get_logger
(logger_name="exp_logger")
utils.py:40
↓ 1 callers
Function
load
(model, results_folder, epoch)
main.py:26
↓ 1 callers
Method
log_gaussian
log density of single (diagonal-covariance) multivariate Gaussian
gmm.py:41
↓ 1 callers
Method
log_metropolis_ratio_Gibbs_Langevin
Metropolis-Hasting ratio of accepting the move from old to new state
grbm.py:128
↓ 1 callers
Method
log_metropolis_ratio_Langevin_one_step
Metropolis-Hasting ratio of accepting the move from old to new state
grbm.py:158
↓ 1 callers
Method
marginal_energy_grad_param
(self, v)
grbm.py:106
↓ 1 callers
Method
negative_grad
(self, v)
grbm.py:314
↓ 1 callers
Method
positive_grad
(self, v)
grbm.py:308
↓ 1 callers
Method
reconstruction
(self, v)
grbm.py:265
↓ 1 callers
Method
reset_parameters
(self)
grbm.py:43
↓ 1 callers
Function
save
(model, results_folder, epoch)
main.py:21
↓ 1 callers
Function
save_gif_fancy
(imgs, nrow, save_name)
utils.py:83
↓ 1 callers
Function
setup_logging
Setup logging
utils.py:16
↓ 1 callers
Function
show_img
(matrix, title)
utils.py:68
↓ 1 callers
Function
train
(model, train_loader, optimizer, config)
main.py:31
↓ 1 callers
Function
train_model
Let us train a GRBM and see how it performs
main.py:121
↓ 1 callers
Function
unnormalize_img_tuple
(img_tuple, mean, std)
utils.py:51
↓ 1 callers
Function
vis_density_GMM
(model, config)
utils.py:149
↓ 1 callers
Function
vis_density_GRBM
(model, config, epoch=None)
utils.py:175
↓ 1 callers
Function
visualize_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
Method
langevin_sampling
(self, x, num_steps=10, eta=1.0e+0, is_anneal=False)
gmm.py:63
Method
sampling
(self, v_init, num_steps=1, save_gap=1)
grbm.py:272
Method
set_Langevin_eta
(self, eta)
grbm.py:55