public RBMTrainer(MnistDataMgr dataMgr, RBM rbm) { _dataMgr = dataMgr; _rbm = rbm; _rnd = new Random(); }
public RBM(RBM rmb) { _visible = rmb._visible; _hidden = rmb._hidden; _weightVisibleHidden = rmb._weightVisibleHidden; _visibleBias = rmb._visibleBias; _hiddenBias = rmb._hiddenBias; }
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); } }