diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-05-27 15:34:44 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-05-27 15:34:44 -0400 |
commit | 71c4918f05a4b380dfaebfabcc1847c1c6d497dd (patch) | |
tree | cd2a0c9c9175ddf8100b1c64d689e540f50eeae9 /utils/ccrp.h | |
parent | ab38dc57a6a64aa7ef60a845a4176e18e1ac7f27 (diff) |
clean up
Diffstat (limited to 'utils/ccrp.h')
-rw-r--r-- | utils/ccrp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ccrp.h b/utils/ccrp.h index 8635b422..1d41a3ef 100644 --- a/utils/ccrp.h +++ b/utils/ccrp.h @@ -232,7 +232,7 @@ class CCRP { if (num_customers() == 0) return; DiscountResampler dr(*this); StrengthResampler sr(*this); - for (int iter = 0; iter < nloop; ++iter) { + for (unsigned iter = 0; iter < nloop; ++iter) { if (has_strength_prior()) { strength_ = slice_sampler1d(sr, strength_, *rng, -discount_ + std::numeric_limits<double>::min(), std::numeric_limits<double>::infinity(), 0.0, niterations, 100*niterations); |