We now display se instead of std in the web-view; smol changes to the
penalties while training
This commit is contained in:
parent
795c0b5d18
commit
d5a6aadbb5
@ -511,7 +511,7 @@ def addScoreToLabels(G):
|
||||
node['label'] += " ("+str(node['rating'])+")"
|
||||
else:
|
||||
if 'score' in node and node['score'] != None:
|
||||
node['label'] += " (~{:.2f}±{:.1f})".format(node['score'], node['std'])
|
||||
node['label'] += " (~{:.2f}±{:.1f})".format(node['score'], node['se'] if 'se' in node else 0.0)
|
||||
else:
|
||||
node['label'] += " (~0±∞)"
|
||||
|
||||
@ -694,9 +694,11 @@ def evaluateFitness(books):
|
||||
G.nodes[m]['rating'] = None
|
||||
mu, std = genScores(G, books)
|
||||
if G.nodes[m]['score'] > rating: # over estimated
|
||||
errSq.append(((rating - G.nodes[m]['score'])**2)*1.5)
|
||||
errSq.append(((rating - G.nodes[m]['score'])**2)*1.25)
|
||||
else:
|
||||
errSq.append((rating - G.nodes[m]['score'])**2)
|
||||
if rating > 10.0:
|
||||
errSq[-1] *= 1.5
|
||||
G.nodes[m]['rating'] = rating
|
||||
return sum(errSq) / len(errSq)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user