compute loglikelihood for a 10% development set. needs refactoring.