Closed osorensen closed 2 months ago
The code on lines 227-229 looks wrong. We should sample one index among many, but instead we sample many indexes and take the one which equals 1.
https://github.com/ocbe-uio/BayesMallows/blob/771fa30c97a9e109dedcd5adc6bb16b7d65cc48a/src/rank_proposal.cpp#L209-L243
The code does exactly what it should, just in an obscure way.
The code on lines 227-229 looks wrong. We should sample one index among many, but instead we sample many indexes and take the one which equals 1.
https://github.com/ocbe-uio/BayesMallows/blob/771fa30c97a9e109dedcd5adc6bb16b7d65cc48a/src/rank_proposal.cpp#L209-L243