I refactored the usage of num_samples and temperature in SGLD (and SGNHT). We now only pass along a temperature, which if not set defaults to the optimal temperature.
I renamed the elasticity parameter in SGLD to localization.
I added a few warnings (burnin, weird temperature)
I fixed OnlineLLCEstimator not to return an average of a moving average
If init_loss is not supplied to sample() or any of the estimate() functions, we calculate it explicitly on one batch. This allows burn-in to work, btw.
Refactored some tests, added in a new seeding test
Fixed the requested issues, only major change is both estimate() functions now live in sampler.py rather than in llc.py to get rid of a circular import.
This PR includes a few changes:
num_samples
andtemperature
in SGLD (and SGNHT). We now only pass along a temperature, which if not set defaults to the optimal temperature.elasticity
parameter in SGLD tolocalization
.OnlineLLCEstimator
not to return an average of a moving averagesample()
or any of theestimate()
functions, we calculate it explicitly on one batch. This allows burn-in to work, btw.