From 6d502af0294fd0af3917364d84bd538b859f7ae3 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Thu, 10 Feb 2022 18:18:05 +0100 Subject: [PATCH] Tweaking Recommendation-Visualization --- caliGraph.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/caliGraph.py b/caliGraph.py index b10961f..72013ad 100755 --- a/caliGraph.py +++ b/caliGraph.py @@ -751,28 +751,28 @@ def recommendNBooks(G, mu, std, n, removeTopListsB=True, removeUselessRecommende removeEdge(G) removeHighSpanTags(G, 8) removeHighSpanReadBooks(G, 14) + pruneTags(G, 7) removeDangling(G, alsoBooks=False) pruneRecommenders(G, 12) removeThinRecs(G, 3) - pruneTags(G, 9) removeBad(G, mu, groups=['book']) removeUselessReadBooks(G) - pruneTags(G, 8) pruneAuthorCons(G, int(n/5)+3) pruneRecommenders(G, 12 - min(4, n/20)) removeUselessSeries(G, mu) removeUselessTags(G) + pruneTags(G, 6) if removeTopListsB: removeTopLists(G) removeDangling(G, alsoBooks=True) removeKeepBest(G, n+math.ceil(n/20)+3, maxDistForRead=1.5) removeEdge(G) - removeKeepBest(G, n+1, maxDistForRead=1.25) + removeKeepBest(G, n+2, maxDistForRead=1.25) removeUselessSeries(G, mu) removeUselessTags(G) removeUselessReadBooks(G) removeKeepBest(G, n, maxDistForRead=1.25) - removeThinRecs(G, 2) + removeThinRecs(G, 3) scaleBooksByRating(G) scaleOpinionsByRating(G)