tensorflow玻尔兹曼机_玻尔兹曼机在TensorFlow中的例子

Boltzmann Machines

This repository implements generic and flexible RBM and DBM models with lots of features and reproduces some experiments from "Deep boltzmann machines" [1], "Learning with hierarchical-deep models" [2], "Learning multiple layers of features from tiny images" [3], and some others.

Table of contents

What's Implemented

Restricted Boltzmann Machines (RBM)

k-step Contrastive Divergence;

whether to sample or use probabilities for visible and hidden units;

variable learning rate, momentum and number of Gibbs steps per weight update;

regularization: L2 weight decay, dropout, sparsity targets;

different types of stochastic layers and RBMs: implement new type of stochastic units or create new RBM from existing types of units;

predefined stochastic layers: Bernoulli, Multinomial, Gaussian;

predefined RBMs: Bernoulli-Bernoulli, Bernoulli-Multinomial, Gaussian-Bernoulli;

initialize weights randomly, from np.ndarray-s or from another RBM;

can be modified for greedy layer-wise pretraining of DBM (see notes or [1] for details);

visualizations in Tensorboard (hover images for details) and more:

Deep Boltzmann Machines (DBM)

EM-like learning algorithm based on PCD and mean-field variational inference [1];

arbitrary number of layers of any types;

initialize from greedy layer-wise pretrained RBMs (no random initialization for now);

whether to sample or use probabilities for visible and hidden units;

variable learning rate, momentum and number of Gibbs steps per weight update;

regularization: L2 weight decay, maxnorm, sparsity targets;

estimate partition function using Annealed Importance Sampling [1];

estimate variational lower-bound (ELBO) using logẐ (currently only for 2-layer binary BM);

generate samples after training;

initialize negative particles (visible and hidden in all layers) from data;

DBM class can be used also for training RBM and its features: more powerful learning algorithm, estimating logẐ and ELBO, generating samples after training;

visualizations in Tensorboard (hover images for details) and more:

Common features

easy to use with sklearn-like interface;

easy to load and save models;

easy to reproduce (random_seed make reproducible both TensorFlow and numpy operations inside the model);

all models suppo

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值