diff --git a/caliGraph.py b/caliGraph.py index 04713c1..e8f39f8 100755 --- a/caliGraph.py +++ b/caliGraph.py @@ -622,6 +622,7 @@ def recommendNBooksTagBased(G, mu, std, n, removeTopListsB=True): removeDangling(G, alsoBooks=True) removeKeepBest(G, n+math.ceil(n/20), maxDistForRead=1.5) removeUselessReadBooks(G) + removeUselessTags(G) removeKeepBest(G, n, maxDistForRead=1.25) scaleBooksByRating(G) @@ -636,19 +637,20 @@ def recommendNBooks(G, mu, std, n, removeTopListsB=True, removeUselessRecommende removeHighSpanTags(G, 12) removeHighSpanReadBooks(G, 6) removeDangling(G, alsoBooks=False) - pruneRecommenders(G, 12) + pruneRecommenders(G, 13) pruneTags(G, 13) removeBad(G, mu, groups=['book']) removeUselessReadBooks(G) pruneTags(G, 12) pruneAuthorCons(G, int(n/5)) - pruneRecommenders(G, 11) + pruneRecommenders(G, 12 - min(5, n/20)) removeUselessTags(G) if removeTopListsB: removeTopLists(G) removeDangling(G, alsoBooks=True) - removeKeepBest(G, n+math.ceil(n/20), maxDistForRead=1.5) + removeKeepBest(G, n+math.ceil(n/20)+3, maxDistForRead=1.5) removeUselessReadBooks(G) + removeEdge(G) removeKeepBest(G, n, maxDistForRead=1.25) scaleBooksByRating(G)