...and bingo!

This commit is contained in:
2017-09-28 00:46:19 -03:00
parent 9781e3ceed
commit 29b5987c4f

View File

@ -166,6 +166,14 @@ class Temperature(object):
model for either xyz or iijjkk or some other problem, and one
improvement there means disaster here.
Something tells me to invert again to 1-entropy... and bingo!
iijjll: 59 (avg time 797.4, avg temp 19.8)
iijjkl: 41 (avg time 696.1, avg temp 28.5)
Need to play with this more... and WTF is f anyways?
"""
if value == 0 or value == 0.5 or self.value() == 0:
@ -176,4 +184,4 @@ class Temperature(object):
a = math.sqrt(coldness)
c = (10 - a) / 100
f = (c + 1) * value
return (-f * math.log2(f)) # max(f, 0.0000)
return (1 - (-f * math.log2(f))) # max(f, 0.0000)