This PR just adds the logic for handling duplicate entries to the FunctionLogger. This is equivalent to the lines 220 - 247 of the funlogger_vbmc.m in MATLAB.
I had to modify the init() as np.empty() sometimes was equal to 0, np.full([cache_size, 1], np.nan) works better.
This PR just adds the logic for handling duplicate entries to the FunctionLogger. This is equivalent to the lines 220 - 247 of the funlogger_vbmc.m in MATLAB.
I had to modify the init() as np.empty() sometimes was equal to 0,
np.full([cache_size, 1], np.nan)
works better.