Variational bootstrap for classification