示例#1
0
        public RBMTrainer(MnistDataMgr dataMgr, RBM rbm)
        {
            _dataMgr = dataMgr;
            _rbm     = rbm;

            _rnd = new Random();
        }
示例#2
0
文件: RBM.cs 项目: dtbinh/SVNBackup
 public RBM(RBM rmb)
 {
     _visible             = rmb._visible;
     _hidden              = rmb._hidden;
     _weightVisibleHidden = rmb._weightVisibleHidden;
     _visibleBias         = rmb._visibleBias;
     _hiddenBias          = rmb._hiddenBias;
 }
示例#3
0
 public LRBM(double learningRate, int[] layerNbr, int relaxStep = 1)
 {
     _rbms = new List <RBM>();
     for (int i = 0; i < layerNbr.Length - 1; i++)
     {
         RBM rbm = new RBM(learningRate, layerNbr[i], layerNbr[i + 1], relaxStep);
         rbm._index = i;
         _rbms.Add(rbm);
     }
 }