Gravar-mail: Estimation of credit risk for mortgage portfolios: selection and optimization of machine learning models