py/stats.py: only print 3 decimal places.
This commit is contained in:
parent
dfd8098844
commit
1ab746907b
1 changed files with 2 additions and 2 deletions
|
|
@ -28,9 +28,9 @@ for game in rlgall.gamelist:
|
|||
for i in range(0, 10000, 1000):
|
||||
actual = len([ s for s in scores if i <= s < i + 1000 ])
|
||||
predicted = (cdf(i + 1000) - cdf(i)) * count
|
||||
print("{0:5}: {1:4} {2}".format(i, actual, predicted))
|
||||
print("{0:5}: {1:4} {2:.3}".format(i, actual, predicted))
|
||||
high = max(scores)
|
||||
print("Max: {0} {1}\n".format(high, 1 - cdf(high)))
|
||||
print("Max: {0} {1:.3}\n".format(high, 1 - cdf(high)))
|
||||
|
||||
cur.close()
|
||||
conn.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue