summaryrefslogtreecommitdiff
path: root/gi/clda/src/crp_test.cc
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-25 23:43:30 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-25 23:43:30 +0000
commitf5dbba7e5e17ccb0b1f00e44e8262d8eed43647a (patch)
tree33d03daa4355013e5c2048327a49b51e89de33b9 /gi/clda/src/crp_test.cc
parente808b3cad4a308039343d39126eb518fc404d987 (diff)
waste of time. priors on PYP hyperparameters with MJ's slice sampler.
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@622 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/clda/src/crp_test.cc')
-rw-r--r--gi/clda/src/crp_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gi/clda/src/crp_test.cc b/gi/clda/src/crp_test.cc
index ed384f81..561cd4dd 100644
--- a/gi/clda/src/crp_test.cc
+++ b/gi/clda/src/crp_test.cc
@@ -90,6 +90,12 @@ TEST_F(CRPTest, Exchangability) {
cerr << i << ' ' << (hist[i]) << endl;
}
+TEST_F(CRPTest, LP) {
+ CCRP<string> crp(1,1,1,1,0.1,50.0);
+ crp.increment("foo", 1.0, &rng);
+ cerr << crp.log_crp_prob() << endl;
+}
+
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();