diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-03-09 23:13:09 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-03-09 23:13:09 -0500 |
commit | 5f9f400f4359bc14f7231d6eabd76b7ceee737aa (patch) | |
tree | 7e94ab9d1240183d713b0fbc58a99495ada5d5a7 /utils | |
parent | e8f1e4e75dd8e27b81fd4e68116a38830547c2c4 (diff) |
logging after alignment
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ccrp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/ccrp.h b/utils/ccrp.h index 439d7e1e..4a8b80e7 100644 --- a/utils/ccrp.h +++ b/utils/ccrp.h @@ -221,6 +221,7 @@ class CCRP { void resample_hyperparameters(MT19937* rng, const unsigned nloop = 5, const unsigned niterations = 10) { assert(has_discount_prior() || has_strength_prior()); + if (num_customers() == 0) return; DiscountResampler dr(*this); StrengthResampler sr(*this); for (int iter = 0; iter < nloop; ++iter) { |