summaryrefslogtreecommitdiff
path: root/gi/pyp-topics/src/mpi-pyp-topics.hh
diff options
context:
space:
mode:
authorphilblunsom <philblunsom@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-19 18:33:29 +0000
committerphilblunsom <philblunsom@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-19 18:33:29 +0000
commit73dbb0343a895345a80d49da9d48edac8858e87a (patch)
treed33164f980f79218bb57153daaa563ec6d6cf1cb /gi/pyp-topics/src/mpi-pyp-topics.hh
parentcf868a29d10942c62b4041e5931e68f868a4b96d (diff)
Vaguely working distributed implementation. Hierarchical topics doesn't yet work correctly.
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@317 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/pyp-topics/src/mpi-pyp-topics.hh')
-rw-r--r--gi/pyp-topics/src/mpi-pyp-topics.hh10
1 files changed, 9 insertions, 1 deletions
diff --git a/gi/pyp-topics/src/mpi-pyp-topics.hh b/gi/pyp-topics/src/mpi-pyp-topics.hh
index a85a776d..4a4433e6 100644
--- a/gi/pyp-topics/src/mpi-pyp-topics.hh
+++ b/gi/pyp-topics/src/mpi-pyp-topics.hh
@@ -8,9 +8,13 @@
#include <boost/random/uniform_real.hpp>
#include <boost/random/variate_generator.hpp>
#include <boost/random/mersenne_twister.hpp>
+#include <boost/random/inversive_congruential.hpp>
+#include <boost/random/linear_congruential.hpp>
+#include <boost/random/lagged_fibonacci.hpp>
#include <boost/mpi/environment.hpp>
#include <boost/mpi/communicator.hpp>
+
#include "mpi-pyp.hh"
#include "corpus.hh"
@@ -62,6 +66,8 @@ public:
std::ostream& print_document_topics(std::ostream& out) const;
std::ostream& print_topic_terms(std::ostream& out) const;
+ void synchronise();
+
private:
F word_pyps_p0(const Term& term, int topic, int level) const;
@@ -78,7 +84,9 @@ private:
unsigned long m_seed;
- typedef boost::mt19937 base_generator_type;
+ //typedef boost::mt19937 base_generator_type;
+ //typedef boost::hellekalek1995 base_generator_type;
+ typedef boost::lagged_fibonacci607 base_generator_type;
typedef boost::uniform_real<> uni_dist_type;
typedef boost::variate_generator<base_generator_type&, uni_dist_type> gen_type;