Class-prior Estimation for Learning from Positive and Unlabeled Data