summaryrefslogtreecommitdiff
path: root/utils/ccrp.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-03-15 22:47:04 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2012-03-15 22:47:04 -0400
commit0b598b997a7c1d2d9dc255cc2ff1bf9bb2c425a1 (patch)
treeceaafcb454dd9c6671ad1797330b089006c6a0a0 /utils/ccrp.h
parentdfbc278c1057555fda9312291c8024049e00b7d8 (diff)
bayes bayes bayes
Diffstat (limited to 'utils/ccrp.h')
-rw-r--r--utils/ccrp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/ccrp.h b/utils/ccrp.h
index 4a8b80e7..390d4994 100644
--- a/utils/ccrp.h
+++ b/utils/ccrp.h
@@ -55,6 +55,10 @@ class CCRP {
double discount() const { return discount_; }
double strength() const { return strength_; }
+ void set_hyperparameters(double d, double s) {
+ discount_ = d; strength_ = s;
+ check_hyperparameters();
+ }
void set_discount(double d) { discount_ = d; check_hyperparameters(); }
void set_strength(double a) { strength_ = a; check_hyperparameters(); }