added lambda parameter (weight of unlabeled data)