30 #ifndef SHARK_UNSUPERVISED_RBM_SAMPLING_MARKOVCHAIN_H 31 #define SHARK_UNSUPERVISED_RBM_SAMPLING_MARKOVCHAIN_H 36 #include "Impl/SampleTypes.h" 42 template<
class Operator>
45 typedef typename Operator::HiddenSample HiddenSample;
46 typedef typename Operator::VisibleSample VisibleSample;
53 typedef typename Operator::RBM
RBM;
64 SampleBatch m_samples;
75 std::size_t visibles=m_operator.rbm()->numberOfVN();
76 std::size_t hiddens=m_operator.rbm()->numberOfHN();
80 return m_samples.size();
87 std::size_t visibles=m_operator.rbm()->numberOfVN();
88 RealMatrix sampleData(m_samples.size(),visibles);
90 for(std::size_t i = 0; i != m_samples.size(); ++i){
100 m_operator.createSample(m_samples.hidden,m_samples.visible,sampleData);
106 void step(
unsigned int numberOfSteps){
107 m_operator.stepVH(m_samples.hidden,m_samples.visible,numberOfSteps,blas::repeat(1.0,
batchSize()));