modified some parts related to calculating holdout likelihood.