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 | ef614a1d968aebbf463ed57876fee395b4c24635 (patch) | |
| tree | 603c9112772422aa4320933d7cc171135b11bb99 /utils | |
| parent | 600ff8e60086c5cc197fe302bfcea113ebd15565 (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) { | 
