From 7f51f139f2d75729d9b3e8b45ad91d21c07dd7c8 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sun, 17 Oct 2021 15:52:52 +0200 Subject: [PATCH] Actually, we will also train on whitepapers (because otherwise I would have to fix an ugly bug) --- caliGraph.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/caliGraph.py b/caliGraph.py index cc7e2dd..890bc3c 100755 --- a/caliGraph.py +++ b/caliGraph.py @@ -795,7 +795,7 @@ def waveFlow(G, node, n, dist, menge, firstEdge=False): if node in bestlist or node in keeplist: waveFlow(G, node, m, dist, menge, firstEdge=firstEdge) -def evaluateFitness(books, debugPrint=False, ignoreWhitepapers=True): +def evaluateFitness(books, debugPrint=False): global weights G = buildBookGraph(books) graphAddAuthors(G, books) @@ -804,9 +804,6 @@ def evaluateFitness(books, debugPrint=False, ignoreWhitepapers=True): graphAddSeries(G, books) graphAddTags(G, books) - if ignoreWhitepapers: - removeWhitepapers(G) - ratedBooks = [n for n in list(G.nodes) if 'rating' in G.nodes[n] and G.nodes[n]['rating'] != None] boundsLoss = 0 linSepLoss = []