Computational methods for unbiased risk estimation