Tweaks to recommendation-display

This commit is contained in:
Dominik Moritz Roth 2021-09-25 20:15:14 +02:00
parent 31cc8ce31c
commit 2bb2e15b73

View File

@ -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)