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 = []