cegme / grisham

We are looking at ways of modeling paper and user preferences.
2 stars 3 forks source link

Bug in DB KL computation #15

Open cegme opened 12 years ago

cegme commented 12 years ago

The query.php operation rank_realtime has some bugs in its calculation of KL divergence.

https://github.com/cegme/grisham/blob/master/web/query.php#L174-178

  1. The first is the inconsistency of the use of Pi and pi.
  2. Second, it looks like the sum should be around the whole query instead of just the first. #L175 should be