├── LICENSE ├── README.md ├── bayes_cnn.py ├── data └── readme.txt ├── figures ├── path_v5.png └── simulation.png ├── models ├── __init__.py ├── cifar │ ├── __init__.py │ ├── __init__.py~ │ ├── alexnet.py~ │ ├── preresnet.py~ │ ├── preresnetimagenet.py~ │ ├── resnet.py │ ├── wideresnet.py~ │ └── wrn.py ├── fashion │ ├── __init__.py │ ├── __init__.py~ │ ├── alexnet.py~ │ ├── preresnet.py~ │ ├── preresnetimagenet.py~ │ ├── resnet.py │ ├── resnet.py~ │ ├── resnext.py~ │ ├── wideresnet.py~ │ ├── wrn.py │ └── wrn.py~ └── model_zoo.py ├── output ├── cifar10_resnet_20_swap_batch_256_chain_2_lr_2e-6_T_0.01_lr_anneal_0.984_anneal_1.02_F_anneal_1.02_F_jump_0.7_LRgap_0.66_Tgap_0.2_F_3e5_alpha_0.3_seed_61731_94.79_swap_7 └── cifar10_resnet_20_swap_batch_256_chain_2_lr_2e-6_T_0.01_lr_anneal_0.984_anneal_1.02_F_anneal_1.02_F_jump_1_LRgap_0.66_Tgap_0.2_F_1e300_alpha_0.3_seed_54023_94.40_swap_19732 ├── semi_supervised_learning ├── README.md ├── bayesian_gan_resgmcmc.py ├── bgan_models.py ├── bgan_util.py ├── dcgan_ops.py ├── dcgan_utils.py ├── environment.yml └── ml_dcgan.py ├── sgmcmc.py ├── simulation └── reSGLD_Gaussian_mixture.r ├── tools ├── .bak │ ├── neural_network.py │ └── neural_network.pyc ├── __init__.py ├── bak │ ├── SGHMC_Bayesian.py │ ├── SGHMC_Bayesian_v2.py │ ├── SGHMC_EM_Bayesian.py │ ├── SGHMC_EM_Bayesian_imgNet.py │ ├── SGHMC_pytorch.py │ └── sgHMC.py ├── sgrld │ └── sgrld │ │ ├── ._COPYING │ │ ├── ._processwiki.py │ │ ├── ._readme.txt │ │ ├── ._run_wiki.py │ │ ├── ._samplers.py │ │ ├── ._setup.py │ │ ├── ._util_funcs.pyx │ │ ├── ._wiki.vocab │ │ ├── ._wikirandom.py │ │ ├── COPYING │ │ ├── processwiki.py │ │ ├── readme.txt │ │ ├── run_wiki.py │ │ ├── samplers.py │ │ ├── setup.py │ │ ├── util_funcs.pyx │ │ ├── wiki.vocab │ │ └── wikirandom.py ├── torch_tools.py ├── torch_tools_ahlfors.py └── transforms.py ├── trainer.py └── utils ├── __init__.py ├── chains_operation.py ├── data_manipulation.py ├── data_operation.py ├── kernels.py ├── misc.py └── pytorch_label.py /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/README.md -------------------------------------------------------------------------------- /bayes_cnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/bayes_cnn.py -------------------------------------------------------------------------------- /data/readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/data/readme.txt -------------------------------------------------------------------------------- /figures/path_v5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/figures/path_v5.png -------------------------------------------------------------------------------- /figures/simulation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/figures/simulation.png -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/cifar/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/cifar/__init__.py -------------------------------------------------------------------------------- /models/cifar/__init__.py~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/cifar/__init__.py~ -------------------------------------------------------------------------------- /models/cifar/alexnet.py~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/cifar/alexnet.py~ -------------------------------------------------------------------------------- /models/cifar/preresnet.py~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/cifar/preresnet.py~ -------------------------------------------------------------------------------- /models/cifar/preresnetimagenet.py~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/cifar/preresnetimagenet.py~ -------------------------------------------------------------------------------- /models/cifar/resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/cifar/resnet.py -------------------------------------------------------------------------------- /models/cifar/wideresnet.py~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/cifar/wideresnet.py~ -------------------------------------------------------------------------------- /models/cifar/wrn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/cifar/wrn.py -------------------------------------------------------------------------------- /models/fashion/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/fashion/__init__.py -------------------------------------------------------------------------------- /models/fashion/__init__.py~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/fashion/__init__.py~ -------------------------------------------------------------------------------- /models/fashion/alexnet.py~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/fashion/alexnet.py~ -------------------------------------------------------------------------------- /models/fashion/preresnet.py~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/fashion/preresnet.py~ -------------------------------------------------------------------------------- /models/fashion/preresnetimagenet.py~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/fashion/preresnetimagenet.py~ -------------------------------------------------------------------------------- /models/fashion/resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/fashion/resnet.py -------------------------------------------------------------------------------- /models/fashion/resnet.py~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/fashion/resnet.py~ -------------------------------------------------------------------------------- /models/fashion/resnext.py~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/fashion/resnext.py~ -------------------------------------------------------------------------------- /models/fashion/wideresnet.py~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/fashion/wideresnet.py~ -------------------------------------------------------------------------------- /models/fashion/wrn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/fashion/wrn.py -------------------------------------------------------------------------------- /models/fashion/wrn.py~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/fashion/wrn.py~ -------------------------------------------------------------------------------- /models/model_zoo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/models/model_zoo.py -------------------------------------------------------------------------------- /output/cifar10_resnet_20_swap_batch_256_chain_2_lr_2e-6_T_0.01_lr_anneal_0.984_anneal_1.02_F_anneal_1.02_F_jump_0.7_LRgap_0.66_Tgap_0.2_F_3e5_alpha_0.3_seed_61731_94.79_swap_7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/output/cifar10_resnet_20_swap_batch_256_chain_2_lr_2e-6_T_0.01_lr_anneal_0.984_anneal_1.02_F_anneal_1.02_F_jump_0.7_LRgap_0.66_Tgap_0.2_F_3e5_alpha_0.3_seed_61731_94.79_swap_7 -------------------------------------------------------------------------------- /output/cifar10_resnet_20_swap_batch_256_chain_2_lr_2e-6_T_0.01_lr_anneal_0.984_anneal_1.02_F_anneal_1.02_F_jump_1_LRgap_0.66_Tgap_0.2_F_1e300_alpha_0.3_seed_54023_94.40_swap_19732: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/output/cifar10_resnet_20_swap_batch_256_chain_2_lr_2e-6_T_0.01_lr_anneal_0.984_anneal_1.02_F_anneal_1.02_F_jump_1_LRgap_0.66_Tgap_0.2_F_1e300_alpha_0.3_seed_54023_94.40_swap_19732 -------------------------------------------------------------------------------- /semi_supervised_learning/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/semi_supervised_learning/README.md -------------------------------------------------------------------------------- /semi_supervised_learning/bayesian_gan_resgmcmc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/semi_supervised_learning/bayesian_gan_resgmcmc.py -------------------------------------------------------------------------------- /semi_supervised_learning/bgan_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/semi_supervised_learning/bgan_models.py -------------------------------------------------------------------------------- /semi_supervised_learning/bgan_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/semi_supervised_learning/bgan_util.py -------------------------------------------------------------------------------- /semi_supervised_learning/dcgan_ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/semi_supervised_learning/dcgan_ops.py -------------------------------------------------------------------------------- /semi_supervised_learning/dcgan_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/semi_supervised_learning/dcgan_utils.py -------------------------------------------------------------------------------- /semi_supervised_learning/environment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/semi_supervised_learning/environment.yml -------------------------------------------------------------------------------- /semi_supervised_learning/ml_dcgan.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/semi_supervised_learning/ml_dcgan.py -------------------------------------------------------------------------------- /sgmcmc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/sgmcmc.py -------------------------------------------------------------------------------- /simulation/reSGLD_Gaussian_mixture.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/simulation/reSGLD_Gaussian_mixture.r -------------------------------------------------------------------------------- /tools/.bak/neural_network.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/.bak/neural_network.py -------------------------------------------------------------------------------- /tools/.bak/neural_network.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/.bak/neural_network.pyc -------------------------------------------------------------------------------- /tools/__init__.py: -------------------------------------------------------------------------------- 1 | from .torch_tools import * 2 | -------------------------------------------------------------------------------- /tools/bak/SGHMC_Bayesian.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/bak/SGHMC_Bayesian.py -------------------------------------------------------------------------------- /tools/bak/SGHMC_Bayesian_v2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/bak/SGHMC_Bayesian_v2.py -------------------------------------------------------------------------------- /tools/bak/SGHMC_EM_Bayesian.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/bak/SGHMC_EM_Bayesian.py -------------------------------------------------------------------------------- /tools/bak/SGHMC_EM_Bayesian_imgNet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/bak/SGHMC_EM_Bayesian_imgNet.py -------------------------------------------------------------------------------- /tools/bak/SGHMC_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/bak/SGHMC_pytorch.py -------------------------------------------------------------------------------- /tools/bak/sgHMC.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/bak/sgHMC.py -------------------------------------------------------------------------------- /tools/sgrld/sgrld/._COPYING: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/._COPYING -------------------------------------------------------------------------------- /tools/sgrld/sgrld/._processwiki.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/._processwiki.py -------------------------------------------------------------------------------- /tools/sgrld/sgrld/._readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/._readme.txt -------------------------------------------------------------------------------- /tools/sgrld/sgrld/._run_wiki.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/._run_wiki.py -------------------------------------------------------------------------------- /tools/sgrld/sgrld/._samplers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/._samplers.py -------------------------------------------------------------------------------- /tools/sgrld/sgrld/._setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/._setup.py -------------------------------------------------------------------------------- /tools/sgrld/sgrld/._util_funcs.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/._util_funcs.pyx -------------------------------------------------------------------------------- /tools/sgrld/sgrld/._wiki.vocab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/._wiki.vocab -------------------------------------------------------------------------------- /tools/sgrld/sgrld/._wikirandom.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/._wikirandom.py -------------------------------------------------------------------------------- /tools/sgrld/sgrld/COPYING: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/COPYING -------------------------------------------------------------------------------- /tools/sgrld/sgrld/processwiki.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/processwiki.py -------------------------------------------------------------------------------- /tools/sgrld/sgrld/readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/readme.txt -------------------------------------------------------------------------------- /tools/sgrld/sgrld/run_wiki.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/run_wiki.py -------------------------------------------------------------------------------- /tools/sgrld/sgrld/samplers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/samplers.py -------------------------------------------------------------------------------- /tools/sgrld/sgrld/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/setup.py -------------------------------------------------------------------------------- /tools/sgrld/sgrld/util_funcs.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/util_funcs.pyx -------------------------------------------------------------------------------- /tools/sgrld/sgrld/wiki.vocab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/wiki.vocab -------------------------------------------------------------------------------- /tools/sgrld/sgrld/wikirandom.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/sgrld/sgrld/wikirandom.py -------------------------------------------------------------------------------- /tools/torch_tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/torch_tools.py -------------------------------------------------------------------------------- /tools/torch_tools_ahlfors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/torch_tools_ahlfors.py -------------------------------------------------------------------------------- /tools/transforms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/tools/transforms.py -------------------------------------------------------------------------------- /trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/trainer.py -------------------------------------------------------------------------------- /utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/utils/__init__.py -------------------------------------------------------------------------------- /utils/chains_operation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/utils/chains_operation.py -------------------------------------------------------------------------------- /utils/data_manipulation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/utils/data_manipulation.py -------------------------------------------------------------------------------- /utils/data_operation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/utils/data_operation.py -------------------------------------------------------------------------------- /utils/kernels.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/utils/kernels.py -------------------------------------------------------------------------------- /utils/misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/utils/misc.py -------------------------------------------------------------------------------- /utils/pytorch_label.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC/HEAD/utils/pytorch_label.py --------------------------------------------------------------------------------