Godtone
Joined 17 December 2020
m missing punctuation lol |
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 = lambda x,w=weighting: iv_complexity(x)**w | ||
global ivs_cache | global ivs_cache | ||
global ivs_int_cache | global ivs_int_cache | ||