someone one brought this up today: my search.sa.maybe code had a
reference to "e" and it was not clear if this was math.e (i.e. 2.718
etc) or the "e" from scoring the latest instance
now my lib.py does contain
e = math.e
but inside search.sa.maybe it is not clear if "e" is "math.e" or what.
so i the following change:
OLD: def maybe(old,new,t): return e**((old - new)*1.0/max(1,t)) < rand()
NEW: def maybe(old,new,t): return math.e**((old - new)*1.0/max(1,t)) < rand()
and it did not change the overall behavior of my runs.so, much ado about nothing
BUT
keep those bug fixes coming in. i do appreciate your attention to my code.
share & enjoy!
;-)
t
--
:: there are some who call me...
tim.m...@gmail.com
:: prof @ cs.ai.se.csee.wvu.usa.sol.virgo.all.nil
::
+1-304-376-2859
::
http://menzies.us (skype = menzies.tim)
<hubris>
vita= http://
goo.gl/8eNhY
pubs= http://
goo.gl/8KPKA
stats= http://
goo.gl/vggy1
wow = http://
goo.gl/2Wg9A
</hubris>