Where do the automatic tuning values in metropolis.py come from?

Thank you for the answer.
When you say they only happen during the tuning phase, you mean the ‘burn-in’ phase (length=500 by default) ?
After that the algorithm does not go through this part of the code anymore?

Also, are these arbitrary numbers based on a paper?