Godtone (talk | contribs)
m missing punctuation lol
Godtone (talk | contribs)
m →My Python 3 code: fix again... defaulting an argument in Python 3 apparently works to do the equivalent of capturing a variable
Line 1,356: Line 1,356:
weighting = -0.5 # as we may square after when doing a MSE, we use the square root
weighting = -0.5 # as we may square after when doing a MSE, we use the square root
if type(weighting) in [int,float]:
if type(weighting) in [int,float]:
weighting = lambda x: iv_complexity(x)**weighting
weighting = lambda x,w=weighting: iv_complexity(x)**w
global ivs_cache
global ivs_cache
global ivs_int_cache
global ivs_int_cache