Semiparametric method in predicting loss given default