added code to tune lambda using labeled data