[Debtags-commits] [svn] r1875 - python
Enrico Zini
enrico at costa.debian.org
Mon Aug 28 22:57:25 UTC 2006
Author: enrico
Date: Mon Aug 28 22:57:24 2006
New Revision: 1875
Modified:
python/ (props changed)
python/Debtags.py
Log:
r3225 at viaza: enrico | 2006-08-28 23:56:51 +0100
Fixed same thinko in the computation of relevant tag
Modified: python/Debtags.py
==============================================================================
--- python/Debtags.py (original)
+++ python/Debtags.py Mon Aug 28 22:57:24 2006
@@ -91,7 +91,8 @@
# Weighted by the square root of the relevance, to downplay the very
# common tags a bit
- return lambda tag: float(sub.card(tag)) / float(full.card(tag)) * math.sqrt(full.card(tag) / float(full.tagCount()))
+ #return lambda tag: float(sub.card(tag)) / float(full.card(tag)) * math.sqrt(full.card(tag) / float(full.tagCount()))
+ return lambda tag: float(sub.card(tag)) / float(full.card(tag)) * math.sqrt(full.card(tag) / float(full.packageCount()))
class DB:
More information about the Debtags-commits
mailing list