A Variational Approach for Learning from Positive and Unlabeled Data