Tweaks to recommendation-display
This commit is contained in:
parent
31cc8ce31c
commit
2bb2e15b73
@ -622,6 +622,7 @@ def recommendNBooksTagBased(G, mu, std, n, removeTopListsB=True):
|
|||||||
removeDangling(G, alsoBooks=True)
|
removeDangling(G, alsoBooks=True)
|
||||||
removeKeepBest(G, n+math.ceil(n/20), maxDistForRead=1.5)
|
removeKeepBest(G, n+math.ceil(n/20), maxDistForRead=1.5)
|
||||||
removeUselessReadBooks(G)
|
removeUselessReadBooks(G)
|
||||||
|
removeUselessTags(G)
|
||||||
removeKeepBest(G, n, maxDistForRead=1.25)
|
removeKeepBest(G, n, maxDistForRead=1.25)
|
||||||
|
|
||||||
scaleBooksByRating(G)
|
scaleBooksByRating(G)
|
||||||
@ -636,19 +637,20 @@ def recommendNBooks(G, mu, std, n, removeTopListsB=True, removeUselessRecommende
|
|||||||
removeHighSpanTags(G, 12)
|
removeHighSpanTags(G, 12)
|
||||||
removeHighSpanReadBooks(G, 6)
|
removeHighSpanReadBooks(G, 6)
|
||||||
removeDangling(G, alsoBooks=False)
|
removeDangling(G, alsoBooks=False)
|
||||||
pruneRecommenders(G, 12)
|
pruneRecommenders(G, 13)
|
||||||
pruneTags(G, 13)
|
pruneTags(G, 13)
|
||||||
removeBad(G, mu, groups=['book'])
|
removeBad(G, mu, groups=['book'])
|
||||||
removeUselessReadBooks(G)
|
removeUselessReadBooks(G)
|
||||||
pruneTags(G, 12)
|
pruneTags(G, 12)
|
||||||
pruneAuthorCons(G, int(n/5))
|
pruneAuthorCons(G, int(n/5))
|
||||||
pruneRecommenders(G, 11)
|
pruneRecommenders(G, 12 - min(5, n/20))
|
||||||
removeUselessTags(G)
|
removeUselessTags(G)
|
||||||
if removeTopListsB:
|
if removeTopListsB:
|
||||||
removeTopLists(G)
|
removeTopLists(G)
|
||||||
removeDangling(G, alsoBooks=True)
|
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)
|
removeUselessReadBooks(G)
|
||||||
|
removeEdge(G)
|
||||||
removeKeepBest(G, n, maxDistForRead=1.25)
|
removeKeepBest(G, n, maxDistForRead=1.25)
|
||||||
|
|
||||||
scaleBooksByRating(G)
|
scaleBooksByRating(G)
|
||||||
|
Loading…
Reference in New Issue
Block a user