From 73dbb0343a895345a80d49da9d48edac8858e87a Mon Sep 17 00:00:00 2001 From: philblunsom Date: Mon, 19 Jul 2010 18:33:29 +0000 Subject: 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 --- gi/pyp-topics/src/mpi-pyp-topics.hh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gi/pyp-topics/src/mpi-pyp-topics.hh') 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 #include #include +#include +#include +#include #include #include + #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 gen_type; -- cgit v1.2.3